Debian Codegraph @

configure

raw symbols ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 setopt NO_GLOB_SUBST
21 else
22 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
23 fi
24 BIN_SH=xpg4; export BIN_SH # for Tru64
25 DUALCASE=1; export DUALCASE # for MKS sh
26
27
28 # PATH needs CR
29 # Avoid depending upon Character Ranges.
30 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33 as_cr_digits='0123456789'
34 as_cr_alnum=$as_cr_Letters$as_cr_digits
35
36 # The user is always right.
37 if test "${PATH_SEPARATOR+set}" != set; then
38 echo "#! /bin/sh" >conf$$.sh
39 echo "exit 0" >>conf$$.sh
40 chmod +x conf$$.sh
41 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42 PATH_SEPARATOR=';'
43 else
44 PATH_SEPARATOR=:
45 fi
46 rm -f conf$$.sh
47 fi
48
49 # Support unset when possible.
50 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
51 as_unset=unset
52 else
53 as_unset=false
54 fi
55
56
57 # IFS
58 # We need space, tab and new line, in precisely that order. Quoting is
59 # there to prevent editors from complaining about space-tab.
60 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
61 # splitting by setting IFS to empty value.)
62 as_nl='
63 '
64 IFS=" "" $as_nl"
65
66 # Find who we are. Look in the path if we contain no directory separator.
67 case $0 in
68 *[\\/]* ) as_myself=$0 ;;
69 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
70 for as_dir in $PATH
71 do
72 IFS=$as_save_IFS
73 test -z "$as_dir" && as_dir=.
74 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
75 done
76 IFS=$as_save_IFS
77
78 ;;
79 esac
80 # We did not find ourselves, most probably we were run as `sh COMMAND'
81 # in which case we are not to be found in the path.
82 if test "x$as_myself" = x; then
83 as_myself=$0
84 fi
85 if test ! -f "$as_myself"; then
86 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
87 { (exit 1); exit 1; }
88 fi
89
90 # Work around bugs in pre-3.0 UWIN ksh.
91 for as_var in ENV MAIL MAILPATH
92 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
93 done
94 PS1='$ '
95 PS2='> '
96 PS4='+ '
97
98 # NLS nuisances.
99 for as_var in \
100 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
101 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
102 LC_TELEPHONE LC_TIME
103 do
104 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
105 eval $as_var=C; export $as_var
106 else
107 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
108 fi
109 done
110
111 # Required to use basename.
112 if expr a : '\(a\)' >/dev/null 2>&1 &&
113 test "X`expr 00001 : '.*\(...\)'`" = X001; then
114 as_expr=expr
115 else
116 as_expr=false
117 fi
118
119 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
120 as_basename=basename
121 else
122 as_basename=false
123 fi
124
125
126 # Name of the executable.
127 as_me=`$as_basename -- "$0" ||
128 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
129 X"$0" : 'X\(//\)$' \| \
130 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
131 echo X/"$0" |
132 sed '/^.*\/\([^/][^/]*\)\/*$/{
133 s//\1/
134 q
135 }
136 /^X\/\(\/\/\)$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\).*/{
141 s//\1/
142 q
143 }
144 s/.*/./; q'`
145
146 # CDPATH.
147 $as_unset CDPATH
148
149
150 if test "x$CONFIG_SHELL" = x; then
151 if (eval ":") 2>/dev/null; then
152 as_have_required=yes
153 else
154 as_have_required=no
155 fi
156
157 if test $as_have_required = yes && (eval ":
158 (as_func_return () {
159 (exit \$1)
160 }
161 as_func_success () {
162 as_func_return 0
163 }
164 as_func_failure () {
165 as_func_return 1
166 }
167 as_func_ret_success () {
168 return 0
169 }
170 as_func_ret_failure () {
171 return 1
172 }
173
174 exitcode=0
175 if as_func_success; then
176 :
177 else
178 exitcode=1
179 echo as_func_success failed.
180 fi
181
182 if as_func_failure; then
183 exitcode=1
184 echo as_func_failure succeeded.
185 fi
186
187 if as_func_ret_success; then
188 :
189 else
190 exitcode=1
191 echo as_func_ret_success failed.
192 fi
193
194 if as_func_ret_failure; then
195 exitcode=1
196 echo as_func_ret_failure succeeded.
197 fi
198
199 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
200 :
201 else
202 exitcode=1
203 echo positional parameters were not saved.
204 fi
205
206 test \$exitcode = 0) || { (exit 1); exit 1; }
207
208 (
209 as_lineno_1=\$LINENO
210 as_lineno_2=\$LINENO
211 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
212 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
213 ") 2> /dev/null; then
214 :
215 else
216 as_candidate_shells=
217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 case $as_dir in
223 /*)
224 for as_base in sh bash ksh sh5; do
225 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
226 done;;
227 esac
228 done
229 IFS=$as_save_IFS
230
231
232 for as_shell in $as_candidate_shells $SHELL; do
233 # Try only shells that exist, to save several forks.
234 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
235 { ("$as_shell") 2> /dev/null <<\_ASEOF
236 # Be Bourne compatible
237 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
238 emulate sh
239 NULLCMD=:
240 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
241 # is contrary to our usage. Disable this feature.
242 alias -g '${1+"$@"}'='"$@"'
243 setopt NO_GLOB_SUBST
244 else
245 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
246 fi
247 BIN_SH=xpg4; export BIN_SH # for Tru64
248 DUALCASE=1; export DUALCASE # for MKS sh
249
250 :
251 _ASEOF
252 }; then
253 CONFIG_SHELL=$as_shell
254 as_have_required=yes
255 if { "$as_shell" 2> /dev/null <<\_ASEOF
256 # Be Bourne compatible
257 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
258 emulate sh
259 NULLCMD=:
260 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
261 # is contrary to our usage. Disable this feature.
262 alias -g '${1+"$@"}'='"$@"'
263 setopt NO_GLOB_SUBST
264 else
265 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
266 fi
267 BIN_SH=xpg4; export BIN_SH # for Tru64
268 DUALCASE=1; export DUALCASE # for MKS sh
269
270 :
271 (as_func_return () {
272 (exit $1)
273 }
274 as_func_success () {
275 as_func_return 0
276 }
277 as_func_failure () {
278 as_func_return 1
279 }
280 as_func_ret_success () {
281 return 0
282 }
283 as_func_ret_failure () {
284 return 1
285 }
286
287 exitcode=0
288 if as_func_success; then
289 :
290 else
291 exitcode=1
292 echo as_func_success failed.
293 fi
294
295 if as_func_failure; then
296 exitcode=1
297 echo as_func_failure succeeded.
298 fi
299
300 if as_func_ret_success; then
301 :
302 else
303 exitcode=1
304 echo as_func_ret_success failed.
305 fi
306
307 if as_func_ret_failure; then
308 exitcode=1
309 echo as_func_ret_failure succeeded.
310 fi
311
312 if ( set x; as_func_ret_success y && test x = "$1" ); then
313 :
314 else
315 exitcode=1
316 echo positional parameters were not saved.
317 fi
318
319 test $exitcode = 0) || { (exit 1); exit 1; }
320
321 (
322 as_lineno_1=$LINENO
323 as_lineno_2=$LINENO
324 test "x$as_lineno_1" != "x$as_lineno_2" &&
325 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
326
327 _ASEOF
328 }; then
329 break
330 fi
331
332 fi
333
334 done
335
336 if test "x$CONFIG_SHELL" != x; then
337 for as_var in BASH_ENV ENV
338 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
339 done
340 export CONFIG_SHELL
341 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
342 fi
343
344
345 if test $as_have_required = no; then
346 echo This script requires a shell more modern than all the
347 echo shells that I found on your system. Please install a
348 echo modern shell, or manually run the script under such a
349 echo shell if you do have one.
350 { (exit 1); exit 1; }
351 fi
352
353
354 fi
355
356 fi
357
358
359
360 (eval "as_func_return () {
361 (exit \$1)
362 }
363 as_func_success () {
364 as_func_return 0
365 }
366 as_func_failure () {
367 as_func_return 1
368 }
369 as_func_ret_success () {
370 return 0
371 }
372 as_func_ret_failure () {
373 return 1
374 }
375
376 exitcode=0
377 if as_func_success; then
378 :
379 else
380 exitcode=1
381 echo as_func_success failed.
382 fi
383
384 if as_func_failure; then
385 exitcode=1
386 echo as_func_failure succeeded.
387 fi
388
389 if as_func_ret_success; then
390 :
391 else
392 exitcode=1
393 echo as_func_ret_success failed.
394 fi
395
396 if as_func_ret_failure; then
397 exitcode=1
398 echo as_func_ret_failure succeeded.
399 fi
400
401 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
402 :
403 else
404 exitcode=1
405 echo positional parameters were not saved.
406 fi
407
408 test \$exitcode = 0") || {
409 echo No shell found that supports shell functions.
410 echo Please tell [email protected] about your system,
411 echo including any error possibly output before this
412 echo message
413 }
414
415
416
417 as_lineno_1=$LINENO
418 as_lineno_2=$LINENO
419 test "x$as_lineno_1" != "x$as_lineno_2" &&
420 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
421
422 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
423 # uniformly replaced by the line number. The first 'sed' inserts a
424 # line-number line after each line using $LINENO; the second 'sed'
425 # does the real work. The second script uses 'N' to pair each
426 # line-number line with the line containing $LINENO, and appends
427 # trailing '-' during substitution so that $LINENO is not a special
428 # case at line end.
429 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
430 # scripts with optimization help from Paolo Bonzini. Blame Lee
431 # E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
441 N
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
449 { (exit 1); exit 1; }; }
450
451 # Don't try to exec as it changes $[0], causing all sort of problems
452 # (the dirname of $[0] is not the place where we might find the
453 # original and so on. Autoconf is especially sensitive to this).
454 . "./$as_me.lineno"
455 # Exit status is that of the last command.
456 exit
457 }
458
459
460 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
461 as_dirname=dirname
462 else
463 as_dirname=false
464 fi
465
466 ECHO_C= ECHO_N= ECHO_T=
467 case `echo -n x` in
468 -n*)
469 case `echo 'x\c'` in
470 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
471 *) ECHO_C='\c';;
472 esac;;
473 *)
474 ECHO_N='-n';;
475 esac
476
477 if expr a : '\(a\)' >/dev/null 2>&1 &&
478 test "X`expr 00001 : '.*\(...\)'`" = X001; then
479 as_expr=expr
480 else
481 as_expr=false
482 fi
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
487 else
488 rm -f conf$$.dir
489 mkdir conf$$.dir
490 fi
491 echo >conf$$.file
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s='ln -s'
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499 as_ln_s='cp -p'
500 elif ln conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s=ln
502 else
503 as_ln_s='cp -p'
504 fi
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
507
508 if mkdir -p . 2>/dev/null; then
509 as_mkdir_p=:
510 else
511 test -d ./-p && rmdir ./-p
512 as_mkdir_p=false
513 fi
514
515 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
516 # systems may use methods other than mode bits to determine executability.
517 cat >conf$$.file <<_ASEOF
518 #! /bin/sh
519 exit 0
520 _ASEOF
521 chmod +x conf$$.file
522 if test -x conf$$.file >/dev/null 2>&1; then
523 as_executable_p="test -x"
524 else
525 as_executable_p=:
526 fi
527 rm -f conf$$.file
528
529 # Sed expression to map a string onto a valid CPP name.
530 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531
532 # Sed expression to map a string onto a valid variable name.
533 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534
535
536
537
538 # Check that we are running under the correct shell.
539 SHELL=${CONFIG_SHELL-/bin/sh}
540
541 case X$ECHO in
542 X*--fallback-echo)
543 # Remove one level of quotation (which was required for Make).
544 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
545 ;;
546 esac
547
548 echo=${ECHO-echo}
549 if test "X$1" = X--no-reexec; then
550 # Discard the --no-reexec flag, and continue.
551 shift
552 elif test "X$1" = X--fallback-echo; then
553 # Avoid inline document here, it may be left over
554 :
555 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
556 # Yippee, $echo works!
557 :
558 else
559 # Restart under the correct shell.
560 exec $SHELL "$0" --no-reexec ${1+"$@"}
561 fi
562
563 if test "X$1" = X--fallback-echo; then
564 # used as fallback echo
565 shift
566 cat <<EOF
567 $*
568 EOF
569 exit 0
570 fi
571
572 # The HP-UX ksh and POSIX shell print the target directory to stdout
573 # if CDPATH is set.
574 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
575
576 if test -z "$ECHO"; then
577 if test "X${echo_test_string+set}" != Xset; then
578 # find a string as large as possible, as long as the shell can cope with it
579 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
580 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
581 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
582 echo_test_string=`eval $cmd` &&
583 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
584 then
585 break
586 fi
587 done
588 fi
589
590 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
591 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
592 test "X$echo_testing_string" = "X$echo_test_string"; then
593 :
594 else
595 # The Solaris, AIX, and Digital Unix default echo programs unquote
596 # backslashes. This makes it impossible to quote backslashes using
597 # echo "$something" | sed 's/\\/\\\\/g'
598 #
599 # So, first we look for a working echo in the user's PATH.
600
601 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
602 for dir in $PATH /usr/ucb; do
603 IFS="$lt_save_ifs"
604 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
605 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
608 echo="$dir/echo"
609 break
610 fi
611 done
612 IFS="$lt_save_ifs"
613
614 if test "X$echo" = Xecho; then
615 # We didn't find a better echo, so look for alternatives.
616 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
617 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
618 test "X$echo_testing_string" = "X$echo_test_string"; then
619 # This shell has a builtin print -r that does the trick.
620 echo='print -r'
621 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
622 test "X$CONFIG_SHELL" != X/bin/ksh; then
623 # If we have ksh, try running configure again with it.
624 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
625 export ORIGINAL_CONFIG_SHELL
626 CONFIG_SHELL=/bin/ksh
627 export CONFIG_SHELL
628 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
629 else
630 # Try using printf.
631 echo='printf %s\n'
632 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
633 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
634 test "X$echo_testing_string" = "X$echo_test_string"; then
635 # Cool, printf works
636 :
637 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638 test "X$echo_testing_string" = 'X\t' &&
639 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640 test "X$echo_testing_string" = "X$echo_test_string"; then
641 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
642 export CONFIG_SHELL
643 SHELL="$CONFIG_SHELL"
644 export SHELL
645 echo="$CONFIG_SHELL $0 --fallback-echo"
646 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
647 test "X$echo_testing_string" = 'X\t' &&
648 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
649 test "X$echo_testing_string" = "X$echo_test_string"; then
650 echo="$CONFIG_SHELL $0 --fallback-echo"
651 else
652 # maybe with a smaller string...
653 prev=:
654
655 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
656 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
657 then
658 break
659 fi
660 prev="$cmd"
661 done
662
663 if test "$prev" != 'sed 50q "$0"'; then
664 echo_test_string=`eval $prev`
665 export echo_test_string
666 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
667 else
668 # Oops. We lost completely, so just stick with echo.
669 echo=echo
670 fi
671 fi
672 fi
673 fi
674 fi
675 fi
676
677 # Copy echo and quote the copy suitably for passing to libtool from
678 # the Makefile, instead of quoting the original, which is used later.
679 ECHO=$echo
680 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
681 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
682 fi
683
684
685
686
687 tagnames=${tagnames+${tagnames},}CXX
688
689 tagnames=${tagnames+${tagnames},}F77
690
691 exec 7<&0 </dev/null 6>&1
692
693 # Name of the host.
694 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
695 # so uname gets run too.
696 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
697
698 #
699 # Initializations.
700 #
701 ac_default_prefix=/usr/local
702 ac_clean_files=
703 ac_config_libobj_dir=.
704 LIBOBJS=
705 cross_compiling=no
706 subdirs=
707 MFLAGS=
708 MAKEFLAGS=
709 SHELL=${CONFIG_SHELL-/bin/sh}
710
711 # Identity of this package.
712 PACKAGE_NAME=
713 PACKAGE_TARNAME=
714 PACKAGE_VERSION=
715 PACKAGE_STRING=
716 PACKAGE_BUGREPORT=
717
718 ac_unique_file="libdv/parse.c"
719 # Factoring default headers for most tests.
720 ac_includes_default="\
721 #include <stdio.h>
722 #if HAVE_SYS_TYPES_H
723 # include <sys/types.h>
724 #endif
725 #if HAVE_SYS_STAT_H
726 # include <sys/stat.h>
727 #endif
728 #if STDC_HEADERS
729 # include <stdlib.h>
730 # include <stddef.h>
731 #else
732 # if HAVE_STDLIB_H
733 # include <stdlib.h>
734 # endif
735 #endif
736 #if HAVE_STRING_H
737 # if !STDC_HEADERS && HAVE_MEMORY_H
738 # include <memory.h>
739 # endif
740 # include <string.h>
741 #endif
742 #if HAVE_STRINGS_H
743 # include <strings.h>
744 #endif
745 #if HAVE_INTTYPES_H
746 # include <inttypes.h>
747 #endif
748 #if HAVE_STDINT_H
749 # include <stdint.h>
750 #endif
751 #if HAVE_UNISTD_H
752 # include <unistd.h>
753 #endif"
754
755 ac_subst_vars='SHELL
756 PATH_SEPARATOR
757 PACKAGE_NAME
758 PACKAGE_TARNAME
759 PACKAGE_VERSION
760 PACKAGE_STRING
761 PACKAGE_BUGREPORT
762 exec_prefix
763 prefix
764 program_transform_name
765 bindir
766 sbindir
767 libexecdir
768 datarootdir
769 datadir
770 sysconfdir
771 sharedstatedir
772 localstatedir
773 includedir
774 oldincludedir
775 docdir
776 infodir
777 htmldir
778 dvidir
779 pdfdir
780 psdir
781 libdir
782 localedir
783 mandir
784 DEFS
785 ECHO_C
786 ECHO_N
787 ECHO_T
788 LIBS
789 build_alias
790 host_alias
791 target_alias
792 build
793 build_cpu
794 build_vendor
795 build_os
796 host
797 host_cpu
798 host_vendor
799 host_os
800 target
801 target_cpu
802 target_vendor
803 target_os
804 INSTALL_PROGRAM
805 INSTALL_SCRIPT
806 INSTALL_DATA
807 CYGPATH_W
808 PACKAGE
809 VERSION
810 ACLOCAL
811 AUTOCONF
812 AUTOMAKE
813 AUTOHEADER
814 MAKEINFO
815 install_sh
816 STRIP
817 INSTALL_STRIP_PROGRAM
818 mkdir_p
819 AWK
820 SET_MAKE
821 am__leading_dot
822 AMTAR
823 am__tar
824 am__untar
825 MAINTAINER_MODE_TRUE
826 MAINTAINER_MODE_FALSE
827 MAINT
828 CFLAGS
829 CC
830 LDFLAGS
831 CPPFLAGS
832 ac_ct_CC
833 EXEEXT
834 OBJEXT
835 DEPDIR
836 am__include
837 am__quote
838 AMDEP_TRUE
839 AMDEP_FALSE
840 AMDEPBACKSLASH
841 CCDEPMODE
842 am__fastdepCC_TRUE
843 am__fastdepCC_FALSE
844 CCAS
845 CCASFLAGS
846 GREP
847 EGREP
848 LN_S
849 ECHO
850 AR
851 RANLIB
852 CPP
853 CXX
854 CXXFLAGS
855 ac_ct_CXX
856 CXXDEPMODE
857 am__fastdepCXX_TRUE
858 am__fastdepCXX_FALSE
859 CXXCPP
860 F77
861 FFLAGS
862 ac_ct_F77
863 LIBTOOL
864 HOST_X86_TRUE
865 HOST_X86_FALSE
866 HOST_X86_64_TRUE
867 HOST_X86_64_FALSE
868 PKG_CONFIG
869 GTK_CFLAGS
870 GTK_LIBS
871 HAVE_GTK_TRUE
872 HAVE_GTK_FALSE
873 SDL_CONFIG
874 SDL_CFLAGS
875 SDL_LIBS
876 XV_LIB
877 PTHREAD_LIBS
878 POPT_LIB
879 REQUIRES_NOPKGCONFIG
880 XMKMF
881 ac_aux_dir
882 RPM_RELEASE
883 LIBOBJS
884 LTLIBOBJS'
885 ac_subst_files=''
886 ac_precious_vars='build_alias
887 host_alias
888 target_alias
889 CC
890 CFLAGS
891 LDFLAGS
892 CPPFLAGS
893 CCAS
894 CCASFLAGS
895 CPP
896 CXX
897 CXXFLAGS
898 CCC
899 CXXCPP
900 F77
901 FFLAGS
902 PKG_CONFIG
903 GTK_CFLAGS
904 GTK_LIBS
905 XMKMF'
906
907
908 # Initialize some variables set by options.
909 ac_init_help=
910 ac_init_version=false
911 # The variables have the same names as the options, with
912 # dashes changed to underlines.
913 cache_file=/dev/null
914 exec_prefix=NONE
915 no_create=
916 no_recursion=
917 prefix=NONE
918 program_prefix=NONE
919 program_suffix=NONE
920 program_transform_name=s,x,x,
921 silent=
922 site=
923 srcdir=
924 verbose=
925 x_includes=NONE
926 x_libraries=NONE
927
928 # Installation directory options.
929 # These are left unexpanded so users can "make install exec_prefix=/foo"
930 # and all the variables that are supposed to be based on exec_prefix
931 # by default will actually change.
932 # Use braces instead of parens because sh, perl, etc. also accept them.
933 # (The list follows the same order as the GNU Coding Standards.)
934 bindir='${exec_prefix}/bin'
935 sbindir='${exec_prefix}/sbin'
936 libexecdir='${exec_prefix}/libexec'
937 datarootdir='${prefix}/share'
938 datadir='${datarootdir}'
939 sysconfdir='${prefix}/etc'
940 sharedstatedir='${prefix}/com'
941 localstatedir='${prefix}/var'
942 includedir='${prefix}/include'
943 oldincludedir='/usr/include'
944 docdir='${datarootdir}/doc/${PACKAGE}'
945 infodir='${datarootdir}/info'
946 htmldir='${docdir}'
947 dvidir='${docdir}'
948 pdfdir='${docdir}'
949 psdir='${docdir}'
950 libdir='${exec_prefix}/lib'
951 localedir='${datarootdir}/locale'
952 mandir='${datarootdir}/man'
953
954 ac_prev=
955 ac_dashdash=
956 for ac_option
957 do
958 # If the previous option needs an argument, assign it.
959 if test -n "$ac_prev"; then
960 eval $ac_prev=\$ac_option
961 ac_prev=
962 continue
963 fi
964
965 case $ac_option in
966 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
967 *) ac_optarg=yes ;;
968 esac
969
970 # Accept the important Cygnus configure options, so we can diagnose typos.
971
972 case $ac_dashdash$ac_option in
973 --)
974 ac_dashdash=yes ;;
975
976 -bindir | --bindir | --bindi | --bind | --bin | --bi)
977 ac_prev=bindir ;;
978 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
979 bindir=$ac_optarg ;;
980
981 -build | --build | --buil | --bui | --bu)
982 ac_prev=build_alias ;;
983 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
984 build_alias=$ac_optarg ;;
985
986 -cache-file | --cache-file | --cache-fil | --cache-fi \
987 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
988 ac_prev=cache_file ;;
989 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
990 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
991 cache_file=$ac_optarg ;;
992
993 --config-cache | -C)
994 cache_file=config.cache ;;
995
996 -datadir | --datadir | --datadi | --datad)
997 ac_prev=datadir ;;
998 -datadir=* | --datadir=* | --datadi=* | --datad=*)
999 datadir=$ac_optarg ;;
1000
1001 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1002 | --dataroo | --dataro | --datar)
1003 ac_prev=datarootdir ;;
1004 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1005 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1006 datarootdir=$ac_optarg ;;
1007
1008 -disable-* | --disable-*)
1009 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1010 # Reject names that are not valid shell variable names.
1011 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1012 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1013 { (exit 1); exit 1; }; }
1014 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1015 eval enable_$ac_feature=no ;;
1016
1017 -docdir | --docdir | --docdi | --doc | --do)
1018 ac_prev=docdir ;;
1019 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1020 docdir=$ac_optarg ;;
1021
1022 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1023 ac_prev=dvidir ;;
1024 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1025 dvidir=$ac_optarg ;;
1026
1027 -enable-* | --enable-*)
1028 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1029 # Reject names that are not valid shell variable names.
1030 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1031 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1032 { (exit 1); exit 1; }; }
1033 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1034 eval enable_$ac_feature=\$ac_optarg ;;
1035
1036 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1037 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1038 | --exec | --exe | --ex)
1039 ac_prev=exec_prefix ;;
1040 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1041 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1042 | --exec=* | --exe=* | --ex=*)
1043 exec_prefix=$ac_optarg ;;
1044
1045 -gas | --gas | --ga | --g)
1046 # Obsolete; use --with-gas.
1047 with_gas=yes ;;
1048
1049 -help | --help | --hel | --he | -h)
1050 ac_init_help=long ;;
1051 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1052 ac_init_help=recursive ;;
1053 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1054 ac_init_help=short ;;
1055
1056 -host | --host | --hos | --ho)
1057 ac_prev=host_alias ;;
1058 -host=* | --host=* | --hos=* | --ho=*)
1059 host_alias=$ac_optarg ;;
1060
1061 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1062 ac_prev=htmldir ;;
1063 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1064 | --ht=*)
1065 htmldir=$ac_optarg ;;
1066
1067 -includedir | --includedir | --includedi | --included | --include \
1068 | --includ | --inclu | --incl | --inc)
1069 ac_prev=includedir ;;
1070 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1071 | --includ=* | --inclu=* | --incl=* | --inc=*)
1072 includedir=$ac_optarg ;;
1073
1074 -infodir | --infodir | --infodi | --infod | --info | --inf)
1075 ac_prev=infodir ;;
1076 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1077 infodir=$ac_optarg ;;
1078
1079 -libdir | --libdir | --libdi | --libd)
1080 ac_prev=libdir ;;
1081 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1082 libdir=$ac_optarg ;;
1083
1084 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1085 | --libexe | --libex | --libe)
1086 ac_prev=libexecdir ;;
1087 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1088 | --libexe=* | --libex=* | --libe=*)
1089 libexecdir=$ac_optarg ;;
1090
1091 -localedir | --localedir | --localedi | --localed | --locale)
1092 ac_prev=localedir ;;
1093 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1094 localedir=$ac_optarg ;;
1095
1096 -localstatedir | --localstatedir | --localstatedi | --localstated \
1097 | --localstate | --localstat | --localsta | --localst | --locals)
1098 ac_prev=localstatedir ;;
1099 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1100 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1101 localstatedir=$ac_optarg ;;
1102
1103 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1104 ac_prev=mandir ;;
1105 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1106 mandir=$ac_optarg ;;
1107
1108 -nfp | --nfp | --nf)
1109 # Obsolete; use --without-fp.
1110 with_fp=no ;;
1111
1112 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1113 | --no-cr | --no-c | -n)
1114 no_create=yes ;;
1115
1116 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1117 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1118 no_recursion=yes ;;
1119
1120 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1121 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1122 | --oldin | --oldi | --old | --ol | --o)
1123 ac_prev=oldincludedir ;;
1124 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1125 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1126 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1127 oldincludedir=$ac_optarg ;;
1128
1129 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1130 ac_prev=prefix ;;
1131 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1132 prefix=$ac_optarg ;;
1133
1134 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1135 | --program-pre | --program-pr | --program-p)
1136 ac_prev=program_prefix ;;
1137 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1138 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1139 program_prefix=$ac_optarg ;;
1140
1141 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1142 | --program-suf | --program-su | --program-s)
1143 ac_prev=program_suffix ;;
1144 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1145 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1146 program_suffix=$ac_optarg ;;
1147
1148 -program-transform-name | --program-transform-name \
1149 | --program-transform-nam | --program-transform-na \
1150 | --program-transform-n | --program-transform- \
1151 | --program-transform | --program-transfor \
1152 | --program-transfo | --program-transf \
1153 | --program-trans | --program-tran \
1154 | --progr-tra | --program-tr | --program-t)
1155 ac_prev=program_transform_name ;;
1156 -program-transform-name=* | --program-transform-name=* \
1157 | --program-transform-nam=* | --program-transform-na=* \
1158 | --program-transform-n=* | --program-transform-=* \
1159 | --program-transform=* | --program-transfor=* \
1160 | --program-transfo=* | --program-transf=* \
1161 | --program-trans=* | --program-tran=* \
1162 | --progr-tra=* | --program-tr=* | --program-t=*)
1163 program_transform_name=$ac_optarg ;;
1164
1165 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1166 ac_prev=pdfdir ;;
1167 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1168 pdfdir=$ac_optarg ;;
1169
1170 -psdir | --psdir | --psdi | --psd | --ps)
1171 ac_prev=psdir ;;
1172 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1173 psdir=$ac_optarg ;;
1174
1175 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1176 | -silent | --silent | --silen | --sile | --sil)
1177 silent=yes ;;
1178
1179 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1180 ac_prev=sbindir ;;
1181 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1182 | --sbi=* | --sb=*)
1183 sbindir=$ac_optarg ;;
1184
1185 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1186 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1187 | --sharedst | --shareds | --shared | --share | --shar \
1188 | --sha | --sh)
1189 ac_prev=sharedstatedir ;;
1190 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1191 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1192 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1193 | --sha=* | --sh=*)
1194 sharedstatedir=$ac_optarg ;;
1195
1196 -site | --site | --sit)
1197 ac_prev=site ;;
1198 -site=* | --site=* | --sit=*)
1199 site=$ac_optarg ;;
1200
1201 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1202 ac_prev=srcdir ;;
1203 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1204 srcdir=$ac_optarg ;;
1205
1206 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1207 | --syscon | --sysco | --sysc | --sys | --sy)
1208 ac_prev=sysconfdir ;;
1209 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1210 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1211 sysconfdir=$ac_optarg ;;
1212
1213 -target | --target | --targe | --targ | --tar | --ta | --t)
1214 ac_prev=target_alias ;;
1215 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1216 target_alias=$ac_optarg ;;
1217
1218 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1219 verbose=yes ;;
1220
1221 -version | --version | --versio | --versi | --vers | -V)
1222 ac_init_version=: ;;
1223
1224 -with-* | --with-*)
1225 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1226 # Reject names that are not valid shell variable names.
1227 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1228 { echo "$as_me: error: invalid package name: $ac_package" >&2
1229 { (exit 1); exit 1; }; }
1230 ac_package=`echo $ac_package| sed 's/-/_/g'`
1231 eval with_$ac_package=\$ac_optarg ;;
1232
1233 -without-* | --without-*)
1234 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1235 # Reject names that are not valid shell variable names.
1236 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1237 { echo "$as_me: error: invalid package name: $ac_package" >&2
1238 { (exit 1); exit 1; }; }
1239 ac_package=`echo $ac_package | sed 's/-/_/g'`
1240 eval with_$ac_package=no ;;
1241
1242 --x)
1243 # Obsolete; use --with-x.
1244 with_x=yes ;;
1245
1246 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1247 | --x-incl | --x-inc | --x-in | --x-i)
1248 ac_prev=x_includes ;;
1249 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1250 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1251 x_includes=$ac_optarg ;;
1252
1253 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1254 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1255 ac_prev=x_libraries ;;
1256 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1257 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1258 x_libraries=$ac_optarg ;;
1259
1260 -*) { echo "$as_me: error: unrecognized option: $ac_option
1261 Try \`$0 --help' for more information." >&2
1262 { (exit 1); exit 1; }; }
1263 ;;
1264
1265 *=*)
1266 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1267 # Reject names that are not valid shell variable names.
1268 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1269 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1270 { (exit 1); exit 1; }; }
1271 eval $ac_envvar=\$ac_optarg
1272 export $ac_envvar ;;
1273
1274 *)
1275 # FIXME: should be removed in autoconf 3.0.
1276 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1277 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1278 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1279 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1280 ;;
1281
1282 esac
1283 done
1284
1285 if test -n "$ac_prev"; then
1286 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1287 { echo "$as_me: error: missing argument to $ac_option" >&2
1288 { (exit 1); exit 1; }; }
1289 fi
1290
1291 # Be sure to have absolute directory names.
1292 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1293 datadir sysconfdir sharedstatedir localstatedir includedir \
1294 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1295 libdir localedir mandir
1296 do
1297 eval ac_val=\$$ac_var
1298 case $ac_val in
1299 [\\/$]* | ?:[\\/]* ) continue;;
1300 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1301 esac
1302 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1303 { (exit 1); exit 1; }; }
1304 done
1305
1306 # There might be people who depend on the old broken behavior: `$host'
1307 # used to hold the argument of --host etc.
1308 # FIXME: To remove some day.
1309 build=$build_alias
1310 host=$host_alias
1311 target=$target_alias
1312
1313 # FIXME: To remove some day.
1314 if test "x$host_alias" != x; then
1315 if test "x$build_alias" = x; then
1316 cross_compiling=maybe
1317 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1318 If a cross compiler is detected then cross compile mode will be used." >&2
1319 elif test "x$build_alias" != "x$host_alias"; then
1320 cross_compiling=yes
1321 fi
1322 fi
1323
1324 ac_tool_prefix=
1325 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1326
1327 test "$silent" = yes && exec 6>/dev/null
1328
1329
1330 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1331 ac_ls_di=`ls -di .` &&
1332 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1333 { echo "$as_me: error: Working directory cannot be determined" >&2
1334 { (exit 1); exit 1; }; }
1335 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1336 { echo "$as_me: error: pwd does not report name of working directory" >&2
1337 { (exit 1); exit 1; }; }
1338
1339
1340 # Find the source files, if location was not specified.
1341 if test -z "$srcdir"; then
1342 ac_srcdir_defaulted=yes
1343 # Try the directory containing this script, then the parent directory.
1344 ac_confdir=`$as_dirname -- "$0" ||
1345 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1346 X"$0" : 'X\(//\)[^/]' \| \
1347 X"$0" : 'X\(//\)$' \| \
1348 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1349 echo X"$0" |
1350 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1351 s//\1/
1352 q
1353 }
1354 /^X\(\/\/\)[^/].*/{
1355 s//\1/
1356 q
1357 }
1358 /^X\(\/\/\)$/{
1359 s//\1/
1360 q
1361 }
1362 /^X\(\/\).*/{
1363 s//\1/
1364 q
1365 }
1366 s/.*/./; q'`
1367 srcdir=$ac_confdir
1368 if test ! -r "$srcdir/$ac_unique_file"; then
1369 srcdir=..
1370 fi
1371 else
1372 ac_srcdir_defaulted=no
1373 fi
1374 if test ! -r "$srcdir/$ac_unique_file"; then
1375 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1376 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1377 { (exit 1); exit 1; }; }
1378 fi
1379 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1380 ac_abs_confdir=`(
1381 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1382 { (exit 1); exit 1; }; }
1383 pwd)`
1384 # When building in place, set srcdir=.
1385 if test "$ac_abs_confdir" = "$ac_pwd"; then
1386 srcdir=.
1387 fi
1388 # Remove unnecessary trailing slashes from srcdir.
1389 # Double slashes in file names in object file debugging info
1390 # mess up M-x gdb in Emacs.
1391 case $srcdir in
1392 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1393 esac
1394 for ac_var in $ac_precious_vars; do
1395 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1396 eval ac_env_${ac_var}_value=\$${ac_var}
1397 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1398 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1399 done
1400
1401 #
1402 # Report the --help message.
1403 #
1404 if test "$ac_init_help" = "long"; then
1405 # Omit some internal or obsolete options to make the list less imposing.
1406 # This message is too long to be a string in the A/UX 3.1 sh.
1407 cat <<_ACEOF
1408 \`configure' configures this package to adapt to many kinds of systems.
1409
1410 Usage: $0 [OPTION]... [VAR=VALUE]...
1411
1412 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1413 VAR=VALUE. See below for descriptions of some of the useful variables.
1414
1415 Defaults for the options are specified in brackets.
1416
1417 Configuration:
1418 -h, --help display this help and exit
1419 --help=short display options specific to this package
1420 --help=recursive display the short help of all the included packages
1421 -V, --version display version information and exit
1422 -q, --quiet, --silent do not print \`checking...' messages
1423 --cache-file=FILE cache test results in FILE [disabled]
1424 -C, --config-cache alias for \`--cache-file=config.cache'
1425 -n, --no-create do not create output files
1426 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1427
1428 Installation directories:
1429 --prefix=PREFIX install architecture-independent files in PREFIX
1430 [$ac_default_prefix]
1431 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1432 [PREFIX]
1433
1434 By default, \`make install' will install all the files in
1435 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1436 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1437 for instance \`--prefix=\$HOME'.
1438
1439 For better control, use the options below.
1440
1441 Fine tuning of the installation directories:
1442 --bindir=DIR user executables [EPREFIX/bin]
1443 --sbindir=DIR system admin executables [EPREFIX/sbin]
1444 --libexecdir=DIR program executables [EPREFIX/libexec]
1445 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1446 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1447 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1448 --libdir=DIR object code libraries [EPREFIX/lib]
1449 --includedir=DIR C header files [PREFIX/include]
1450 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1451 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1452 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1453 --infodir=DIR info documentation [DATAROOTDIR/info]
1454 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1455 --mandir=DIR man documentation [DATAROOTDIR/man]
1456 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1457 --htmldir=DIR html documentation [DOCDIR]
1458 --dvidir=DIR dvi documentation [DOCDIR]
1459 --pdfdir=DIR pdf documentation [DOCDIR]
1460 --psdir=DIR ps documentation [DOCDIR]
1461 _ACEOF
1462
1463 cat <<\_ACEOF
1464
1465 Program names:
1466 --program-prefix=PREFIX prepend PREFIX to installed program names
1467 --program-suffix=SUFFIX append SUFFIX to installed program names
1468 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1469
1470 X features:
1471 --x-includes=DIR X include files are in DIR
1472 --x-libraries=DIR X library files are in DIR
1473
1474 System types:
1475 --build=BUILD configure for building on BUILD [guessed]
1476 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1477 --target=TARGET configure for building compilers for TARGET [HOST]
1478 _ACEOF
1479 fi
1480
1481 if test -n "$ac_init_help"; then
1482
1483 cat <<\_ACEOF
1484
1485 Optional Features:
1486 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1487 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1488 --enable-maintainer-mode enable make rules and dependencies not useful
1489 (and sometimes confusing) to the casual installer
1490 --disable-dependency-tracking speeds up one-time build
1491 --enable-dependency-tracking do not reject slow dependency extractors
1492 --enable-shared[=PKGS] build shared libraries [default=yes]
1493 --enable-static[=PKGS] build static libraries [default=yes]
1494 --enable-fast-install[=PKGS]
1495 optimize for fast installation [default=yes]
1496 --disable-libtool-lock avoid locking (might break parallel builds)
1497 --disable-asm disable use of architecture specific assembly code
1498 --enable-sdl enable use of SDL for display
1499 --disable-gtk disable use of gtk for display
1500 --disable-xv disable use of XVideo extension for display
1501 --enable-gprof enable compiler options for gprof profiling
1502 --disable-sdltest Do not try to compile and run a test SDL program
1503
1504 Optional Packages:
1505 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1506 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1507 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1508 --with-pic try to use only PIC/non-PIC objects [default=use
1509 both]
1510 --with-tags[=TAGS] include additional configurations [automatic]
1511 --with-pal-yuv=(YV12|YUY2) Select YUV format for IEC PAL (YUY2 by default)
1512 --with-debug=level Enable debugging.
1513 --without-debug Disable debugging (default).
1514 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1515 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1516 --with-x use the X Window System
1517
1518 Some influential environment variables:
1519 CC C compiler command
1520 CFLAGS C compiler flags
1521 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1522 nonstandard directory <lib dir>
1523 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1524 you have headers in a nonstandard directory <include dir>
1525 CCAS assembler compiler command (defaults to CC)
1526 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1527 CPP C preprocessor
1528 CXX C++ compiler command
1529 CXXFLAGS C++ compiler flags
1530 CXXCPP C++ preprocessor
1531 F77 Fortran 77 compiler command
1532 FFLAGS Fortran 77 compiler flags
1533 PKG_CONFIG path to pkg-config utility
1534 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1535 GTK_LIBS linker flags for GTK, overriding pkg-config
1536 XMKMF Path to xmkmf, Makefile generator for X Window System
1537
1538 Use these variables to override the choices made by `configure' or to help
1539 it to find libraries and programs with nonstandard names/locations.
1540
1541 _ACEOF
1542 ac_status=$?
1543 fi
1544
1545 if test "$ac_init_help" = "recursive"; then
1546 # If there are subdirs, report their specific --help.
1547 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1548 test -d "$ac_dir" || continue
1549 ac_builddir=.
1550
1551 case "$ac_dir" in
1552 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1553 *)
1554 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1555 # A ".." for each directory in $ac_dir_suffix.
1556 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1557 case $ac_top_builddir_sub in
1558 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1559 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1560 esac ;;
1561 esac
1562 ac_abs_top_builddir=$ac_pwd
1563 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1564 # for backward compatibility:
1565 ac_top_builddir=$ac_top_build_prefix
1566
1567 case $srcdir in
1568 .) # We are building in place.
1569 ac_srcdir=.
1570 ac_top_srcdir=$ac_top_builddir_sub
1571 ac_abs_top_srcdir=$ac_pwd ;;
1572 [\\/]* | ?:[\\/]* ) # Absolute name.
1573 ac_srcdir=$srcdir$ac_dir_suffix;
1574 ac_top_srcdir=$srcdir
1575 ac_abs_top_srcdir=$srcdir ;;
1576 *) # Relative name.
1577 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1578 ac_top_srcdir=$ac_top_build_prefix$srcdir
1579 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1580 esac
1581 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1582
1583 cd "$ac_dir" || { ac_status=$?; continue; }
1584 # Check for guested configure.
1585 if test -f "$ac_srcdir/configure.gnu"; then
1586 echo &&
1587 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1588 elif test -f "$ac_srcdir/configure"; then
1589 echo &&
1590 $SHELL "$ac_srcdir/configure" --help=recursive
1591 else
1592 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1593 fi || ac_status=$?
1594 cd "$ac_pwd" || { ac_status=$?; break; }
1595 done
1596 fi
1597
1598 test -n "$ac_init_help" && exit $ac_status
1599 if $ac_init_version; then
1600 cat <<\_ACEOF
1601 configure
1602 generated by GNU Autoconf 2.60
1603
1604 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1605 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1606 This configure script is free software; the Free Software Foundation
1607 gives unlimited permission to copy, distribute and modify it.
1608 _ACEOF
1609 exit
1610 fi
1611 cat >config.log <<_ACEOF
1612 This file contains any messages produced by compilers while
1613 running configure, to aid debugging if configure makes a mistake.
1614
1615 It was created by $as_me, which was
1616 generated by GNU Autoconf 2.60. Invocation command line was
1617
1618 $ $0 $@
1619
1620 _ACEOF
1621 exec 5>>config.log
1622 {
1623 cat <<_ASUNAME
1624 ## --------- ##
1625 ## Platform. ##
1626 ## --------- ##
1627
1628 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1629 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1630 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1631 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1632 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1633
1634 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1635 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1636
1637 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1638 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1639 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1640 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1641 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1642 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1643 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1644
1645 _ASUNAME
1646
1647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1648 for as_dir in $PATH
1649 do
1650 IFS=$as_save_IFS
1651 test -z "$as_dir" && as_dir=.
1652 echo "PATH: $as_dir"
1653 done
1654 IFS=$as_save_IFS
1655
1656 } >&5
1657
1658 cat >&5 <<_ACEOF
1659
1660
1661 ## ----------- ##
1662 ## Core tests. ##
1663 ## ----------- ##
1664
1665 _ACEOF
1666
1667
1668 # Keep a trace of the command line.
1669 # Strip out --no-create and --no-recursion so they do not pile up.
1670 # Strip out --silent because we don't want to record it for future runs.
1671 # Also quote any args containing shell meta-characters.
1672 # Make two passes to allow for proper duplicate-argument suppression.
1673 ac_configure_args=
1674 ac_configure_args0=
1675 ac_configure_args1=
1676 ac_must_keep_next=false
1677 for ac_pass in 1 2
1678 do
1679 for ac_arg
1680 do
1681 case $ac_arg in
1682 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1683 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1684 | -silent | --silent | --silen | --sile | --sil)
1685 continue ;;
1686 *\'*)
1687 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1688 esac
1689 case $ac_pass in
1690 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1691 2)
1692 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1693 if test $ac_must_keep_next = true; then
1694 ac_must_keep_next=false # Got value, back to normal.
1695 else
1696 case $ac_arg in
1697 *=* | --config-cache | -C | -disable-* | --disable-* \
1698 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1699 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1700 | -with-* | --with-* | -without-* | --without-* | --x)
1701 case "$ac_configure_args0 " in
1702 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1703 esac
1704 ;;
1705 -* ) ac_must_keep_next=true ;;
1706 esac
1707 fi
1708 ac_configure_args="$ac_configure_args '$ac_arg'"
1709 ;;
1710 esac
1711 done
1712 done
1713 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1714 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1715
1716 # When interrupted or exit'd, cleanup temporary files, and complete
1717 # config.log. We remove comments because anyway the quotes in there
1718 # would cause problems or look ugly.
1719 # WARNING: Use '\'' to represent an apostrophe within the trap.
1720 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1721 trap 'exit_status=$?
1722 # Save into config.log some information that might help in debugging.
1723 {
1724 echo
1725
1726 cat <<\_ASBOX
1727 ## ---------------- ##
1728 ## Cache variables. ##
1729 ## ---------------- ##
1730 _ASBOX
1731 echo
1732 # The following way of writing the cache mishandles newlines in values,
1733 (
1734 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1735 eval ac_val=\$$ac_var
1736 case $ac_val in #(
1737 *${as_nl}*)
1738 case $ac_var in #(
1739 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1740 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1741 esac
1742 case $ac_var in #(
1743 _ | IFS | as_nl) ;; #(
1744 *) $as_unset $ac_var ;;
1745 esac ;;
1746 esac
1747 done
1748 (set) 2>&1 |
1749 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1750 *${as_nl}ac_space=\ *)
1751 sed -n \
1752 "s/'\''/'\''\\\\'\'''\''/g;
1753 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1754 ;; #(
1755 *)
1756 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1757 ;;
1758 esac |
1759 sort
1760 )
1761 echo
1762
1763 cat <<\_ASBOX
1764 ## ----------------- ##
1765 ## Output variables. ##
1766 ## ----------------- ##
1767 _ASBOX
1768 echo
1769 for ac_var in $ac_subst_vars
1770 do
1771 eval ac_val=\$$ac_var
1772 case $ac_val in
1773 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1774 esac
1775 echo "$ac_var='\''$ac_val'\''"
1776 done | sort
1777 echo
1778
1779 if test -n "$ac_subst_files"; then
1780 cat <<\_ASBOX
1781 ## ------------------- ##
1782 ## File substitutions. ##
1783 ## ------------------- ##
1784 _ASBOX
1785 echo
1786 for ac_var in $ac_subst_files
1787 do
1788 eval ac_val=\$$ac_var
1789 case $ac_val in
1790 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1791 esac
1792 echo "$ac_var='\''$ac_val'\''"
1793 done | sort
1794 echo
1795 fi
1796
1797 if test -s confdefs.h; then
1798 cat <<\_ASBOX
1799 ## ----------- ##
1800 ## confdefs.h. ##
1801 ## ----------- ##
1802 _ASBOX
1803 echo
1804 cat confdefs.h
1805 echo
1806 fi
1807 test "$ac_signal" != 0 &&
1808 echo "$as_me: caught signal $ac_signal"
1809 echo "$as_me: exit $exit_status"
1810 } >&5
1811 rm -f core *.core core.conftest.* &&
1812 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1813 exit $exit_status
1814 ' 0
1815 for ac_signal in 1 2 13 15; do
1816 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1817 done
1818 ac_signal=0
1819
1820 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1821 rm -f -r conftest* confdefs.h
1822
1823 # Predefined preprocessor variables.
1824
1825 cat >>confdefs.h <<_ACEOF
1826 #define PACKAGE_NAME "$PACKAGE_NAME"
1827 _ACEOF
1828
1829
1830 cat >>confdefs.h <<_ACEOF
1831 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1832 _ACEOF
1833
1834
1835 cat >>confdefs.h <<_ACEOF
1836 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1837 _ACEOF
1838
1839
1840 cat >>confdefs.h <<_ACEOF
1841 #define PACKAGE_STRING "$PACKAGE_STRING"
1842 _ACEOF
1843
1844
1845 cat >>confdefs.h <<_ACEOF
1846 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1847 _ACEOF
1848
1849
1850 # Let the site file select an alternate cache file if it wants to.
1851 # Prefer explicitly selected file to automatically selected ones.
1852 if test -n "$CONFIG_SITE"; then
1853 set x "$CONFIG_SITE"
1854 elif test "x$prefix" != xNONE; then
1855 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1856 else
1857 set x "$ac_default_prefix/share/config.site" \
1858 "$ac_default_prefix/etc/config.site"
1859 fi
1860 shift
1861 for ac_site_file
1862 do
1863 if test -r "$ac_site_file"; then
1864 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1865 echo "$as_me: loading site script $ac_site_file" >&6;}
1866 sed 's/^/| /' "$ac_site_file" >&5
1867 . "$ac_site_file"
1868 fi
1869 done
1870
1871 if test -r "$cache_file"; then
1872 # Some versions of bash will fail to source /dev/null (special
1873 # files actually), so we avoid doing that.
1874 if test -f "$cache_file"; then
1875 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1876 echo "$as_me: loading cache $cache_file" >&6;}
1877 case $cache_file in
1878 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1879 *) . "./$cache_file";;
1880 esac
1881 fi
1882 else
1883 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1884 echo "$as_me: creating cache $cache_file" >&6;}
1885 >$cache_file
1886 fi
1887
1888 # Check that the precious variables saved in the cache have kept the same
1889 # value.
1890 ac_cache_corrupted=false
1891 for ac_var in $ac_precious_vars; do
1892 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1893 eval ac_new_set=\$ac_env_${ac_var}_set
1894 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1895 eval ac_new_val=\$ac_env_${ac_var}_value
1896 case $ac_old_set,$ac_new_set in
1897 set,)
1898 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1899 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1900 ac_cache_corrupted=: ;;
1901 ,set)
1902 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1903 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1904 ac_cache_corrupted=: ;;
1905 ,);;
1906 *)
1907 if test "x$ac_old_val" != "x$ac_new_val"; then
1908 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1909 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1910 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1911 echo "$as_me: former value: $ac_old_val" >&2;}
1912 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1913 echo "$as_me: current value: $ac_new_val" >&2;}
1914 ac_cache_corrupted=:
1915 fi;;
1916 esac
1917 # Pass precious variables to config.status.
1918 if test "$ac_new_set" = set; then
1919 case $ac_new_val in
1920 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1921 *) ac_arg=$ac_var=$ac_new_val ;;
1922 esac
1923 case " $ac_configure_args " in
1924 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1925 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1926 esac
1927 fi
1928 done
1929 if $ac_cache_corrupted; then
1930 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1931 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1932 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1933 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1934 { (exit 1); exit 1; }; }
1935 fi
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953 ac_ext=c
1954 ac_cpp='$CPP $CPPFLAGS'
1955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1958
1959
1960 ac_config_headers="$ac_config_headers config.h"
1961
1962
1963 RPM_RELEASE=1
1964 ac_aux_dir=
1965 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1966 if test -f "$ac_dir/install-sh"; then
1967 ac_aux_dir=$ac_dir
1968 ac_install_sh="$ac_aux_dir/install-sh -c"
1969 break
1970 elif test -f "$ac_dir/install.sh"; then
1971 ac_aux_dir=$ac_dir
1972 ac_install_sh="$ac_aux_dir/install.sh -c"
1973 break
1974 elif test -f "$ac_dir/shtool"; then
1975 ac_aux_dir=$ac_dir
1976 ac_install_sh="$ac_aux_dir/shtool install -c"
1977 break
1978 fi
1979 done
1980 if test -z "$ac_aux_dir"; then
1981 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1982 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1983 { (exit 1); exit 1; }; }
1984 fi
1985
1986 # These three variables are undocumented and unsupported,
1987 # and are intended to be withdrawn in a future Autoconf release.
1988 # They can cause serious problems if a builder's source tree is in a directory
1989 # whose full name contains unusual characters.
1990 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1991 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1992 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1993
1994
1995 # Make sure we can run config.sub.
1996 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1997 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1998 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1999 { (exit 1); exit 1; }; }
2000
2001 { echo "$as_me:$LINENO: checking build system type" >&5
2002 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2003 if test "${ac_cv_build+set}" = set; then
2004 echo $ECHO_N "(cached) $ECHO_C" >&6
2005 else
2006 ac_build_alias=$build_alias
2007 test "x$ac_build_alias" = x &&
2008 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2009 test "x$ac_build_alias" = x &&
2010 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2011 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2012 { (exit 1); exit 1; }; }
2013 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2014 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2015 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2016 { (exit 1); exit 1; }; }
2017
2018 fi
2019 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2020 echo "${ECHO_T}$ac_cv_build" >&6; }
2021 case $ac_cv_build in
2022 *-*-*) ;;
2023 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2024 echo "$as_me: error: invalid value of canonical build" >&2;}
2025 { (exit 1); exit 1; }; };;
2026 esac
2027 build=$ac_cv_build
2028 ac_save_IFS=$IFS; IFS='-'
2029 set x $ac_cv_build
2030 shift
2031 build_cpu=$1
2032 build_vendor=$2
2033 shift; shift
2034 # Remember, the first character of IFS is used to create $*,
2035 # except with old shells:
2036 build_os=$*
2037 IFS=$ac_save_IFS
2038 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2039
2040
2041 { echo "$as_me:$LINENO: checking host system type" >&5
2042 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2043 if test "${ac_cv_host+set}" = set; then
2044 echo $ECHO_N "(cached) $ECHO_C" >&6
2045 else
2046 if test "x$host_alias" = x; then
2047 ac_cv_host=$ac_cv_build
2048 else
2049 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2050 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2051 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2052 { (exit 1); exit 1; }; }
2053 fi
2054
2055 fi
2056 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2057 echo "${ECHO_T}$ac_cv_host" >&6; }
2058 case $ac_cv_host in
2059 *-*-*) ;;
2060 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2061 echo "$as_me: error: invalid value of canonical host" >&2;}
2062 { (exit 1); exit 1; }; };;
2063 esac
2064 host=$ac_cv_host
2065 ac_save_IFS=$IFS; IFS='-'
2066 set x $ac_cv_host
2067 shift
2068 host_cpu=$1
2069 host_vendor=$2
2070 shift; shift
2071 # Remember, the first character of IFS is used to create $*,
2072 # except with old shells:
2073 host_os=$*
2074 IFS=$ac_save_IFS
2075 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2076
2077
2078 { echo "$as_me:$LINENO: checking target system type" >&5
2079 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2080 if test "${ac_cv_target+set}" = set; then
2081 echo $ECHO_N "(cached) $ECHO_C" >&6
2082 else
2083 if test "x$target_alias" = x; then
2084 ac_cv_target=$ac_cv_host
2085 else
2086 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2087 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2088 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2089 { (exit 1); exit 1; }; }
2090 fi
2091
2092 fi
2093 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2094 echo "${ECHO_T}$ac_cv_target" >&6; }
2095 case $ac_cv_target in
2096 *-*-*) ;;
2097 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2098 echo "$as_me: error: invalid value of canonical target" >&2;}
2099 { (exit 1); exit 1; }; };;
2100 esac
2101 target=$ac_cv_target
2102 ac_save_IFS=$IFS; IFS='-'
2103 set x $ac_cv_target
2104 shift
2105 target_cpu=$1
2106 target_vendor=$2
2107 shift; shift
2108 # Remember, the first character of IFS is used to create $*,
2109 # except with old shells:
2110 target_os=$*
2111 IFS=$ac_save_IFS
2112 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2113
2114
2115 # The aliases save the names the user supplied, while $host etc.
2116 # will get canonicalized.
2117 test -n "$target_alias" &&
2118 test "$program_prefix$program_suffix$program_transform_name" = \
2119 NONENONEs,x,x, &&
2120 program_prefix=${target_alias}-
2121 am__api_version="1.9"
2122 # Find a good install program. We prefer a C program (faster),
2123 # so one script is as good as another. But avoid the broken or
2124 # incompatible versions:
2125 # SysV /etc/install, /usr/sbin/install
2126 # SunOS /usr/etc/install
2127 # IRIX /sbin/install
2128 # AIX /bin/install
2129 # AmigaOS /C/install, which installs bootblocks on floppy discs
2130 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2131 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2132 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2133 # OS/2's system install, which has a completely different semantic
2134 # ./install, which can be erroneously created by make from ./install.sh.
2135 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2136 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2137 if test -z "$INSTALL"; then
2138 if test "${ac_cv_path_install+set}" = set; then
2139 echo $ECHO_N "(cached) $ECHO_C" >&6
2140 else
2141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2142 for as_dir in $PATH
2143 do
2144 IFS=$as_save_IFS
2145 test -z "$as_dir" && as_dir=.
2146 # Account for people who put trailing slashes in PATH elements.
2147 case $as_dir/ in
2148 ./ | .// | /cC/* | \
2149 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2150 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2151 /usr/ucb/* ) ;;
2152 *)
2153 # OSF1 and SCO ODT 3.0 have their own names for install.
2154 # Don't use installbsd from OSF since it installs stuff as root
2155 # by default.
2156 for ac_prog in ginstall scoinst install; do
2157 for ac_exec_ext in '' $ac_executable_extensions; do
2158 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
2159 if test $ac_prog = install &&
2160 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2161 # AIX install. It has an incompatible calling convention.
2162 :
2163 elif test $ac_prog = install &&
2164 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2165 # program-specific install script used by HP pwplus--don't use.
2166 :
2167 else
2168 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2169 break 3
2170 fi
2171 fi
2172 done
2173 done
2174 ;;
2175 esac
2176 done
2177 IFS=$as_save_IFS
2178
2179
2180 fi
2181 if test "${ac_cv_path_install+set}" = set; then
2182 INSTALL=$ac_cv_path_install
2183 else
2184 # As a last resort, use the slow shell script. Don't cache a
2185 # value for INSTALL within a source directory, because that will
2186 # break other packages using the cache if that directory is
2187 # removed, or if the value is a relative name.
2188 INSTALL=$ac_install_sh
2189 fi
2190 fi
2191 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2192 echo "${ECHO_T}$INSTALL" >&6; }
2193
2194 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2195 # It thinks the first close brace ends the variable substitution.
2196 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2197
2198 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2199
2200 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2201
2202 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2203 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2204 # Just in case
2205 sleep 1
2206 echo timestamp > conftest.file
2207 # Do `set' in a subshell so we don't clobber the current shell's
2208 # arguments. Must try -L first in case configure is actually a
2209 # symlink; some systems play weird games with the mod time of symlinks
2210 # (eg FreeBSD returns the mod time of the symlink's containing
2211 # directory).
2212 if (
2213 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2214 if test "$*" = "X"; then
2215 # -L didn't work.
2216 set X `ls -t $srcdir/configure conftest.file`
2217 fi
2218 rm -f conftest.file
2219 if test "$*" != "X $srcdir/configure conftest.file" \
2220 && test "$*" != "X conftest.file $srcdir/configure"; then
2221
2222 # If neither matched, then we have a broken ls. This can happen
2223 # if, for instance, CONFIG_SHELL is bash and it inherits a
2224 # broken ls alias from the environment. This has actually
2225 # happened. Such a system could not be considered "sane".
2226 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2227 alias in your environment" >&5
2228 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2229 alias in your environment" >&2;}
2230 { (exit 1); exit 1; }; }
2231 fi
2232
2233 test "$2" = conftest.file
2234 )
2235 then
2236 # Ok.
2237 :
2238 else
2239 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2240 Check your system clock" >&5
2241 echo "$as_me: error: newly created file is older than distributed files!
2242 Check your system clock" >&2;}
2243 { (exit 1); exit 1; }; }
2244 fi
2245 { echo "$as_me:$LINENO: result: yes" >&5
2246 echo "${ECHO_T}yes" >&6; }
2247 test "$program_prefix" != NONE &&
2248 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2249 # Use a double $ so make ignores it.
2250 test "$program_suffix" != NONE &&
2251 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2252 # Double any \ or $. echo might interpret backslashes.
2253 # By default was `s,x,x', remove it if useless.
2254 cat <<\_ACEOF >conftest.sed
2255 s/[\\$]/&&/g;s/;s,x,x,$//
2256 _ACEOF
2257 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2258 rm -f conftest.sed
2259
2260 # expand $ac_aux_dir to an absolute path
2261 am_aux_dir=`cd $ac_aux_dir && pwd`
2262
2263 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2264 # Use eval to expand $SHELL
2265 if eval "$MISSING --run true"; then
2266 am_missing_run="$MISSING --run "
2267 else
2268 am_missing_run=
2269 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2270 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2271 fi
2272
2273 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2274 # We used to keeping the `.' as first argument, in order to
2275 # allow $(mkdir_p) to be used without argument. As in
2276 # $(mkdir_p) $(somedir)
2277 # where $(somedir) is conditionally defined. However this is wrong
2278 # for two reasons:
2279 # 1. if the package is installed by a user who cannot write `.'
2280 # make install will fail,
2281 # 2. the above comment should most certainly read
2282 # $(mkdir_p) $(DESTDIR)$(somedir)
2283 # so it does not work when $(somedir) is undefined and
2284 # $(DESTDIR) is not.
2285 # To support the latter case, we have to write
2286 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2287 # so the `.' trick is pointless.
2288 mkdir_p='mkdir -p --'
2289 else
2290 # On NextStep and OpenStep, the `mkdir' command does not
2291 # recognize any option. It will interpret all options as
2292 # directories to create, and then abort because `.' already
2293 # exists.
2294 for d in ./-p ./--version;
2295 do
2296 test -d $d && rmdir $d
2297 done
2298 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2299 if test -f "$ac_aux_dir/mkinstalldirs"; then
2300 mkdir_p='$(mkinstalldirs)'
2301 else
2302 mkdir_p='$(install_sh) -d'
2303 fi
2304 fi
2305
2306 for ac_prog in gawk mawk nawk awk
2307 do
2308 # Extract the first word of "$ac_prog", so it can be a program name with args.
2309 set dummy $ac_prog; ac_word=$2
2310 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2312 if test "${ac_cv_prog_AWK+set}" = set; then
2313 echo $ECHO_N "(cached) $ECHO_C" >&6
2314 else
2315 if test -n "$AWK"; then
2316 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2317 else
2318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2319 for as_dir in $PATH
2320 do
2321 IFS=$as_save_IFS
2322 test -z "$as_dir" && as_dir=.
2323 for ac_exec_ext in '' $ac_executable_extensions; do
2324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2325 ac_cv_prog_AWK="$ac_prog"
2326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2327 break 2
2328 fi
2329 done
2330 done
2331 IFS=$as_save_IFS
2332
2333 fi
2334 fi
2335 AWK=$ac_cv_prog_AWK
2336 if test -n "$AWK"; then
2337 { echo "$as_me:$LINENO: result: $AWK" >&5
2338 echo "${ECHO_T}$AWK" >&6; }
2339 else
2340 { echo "$as_me:$LINENO: result: no" >&5
2341 echo "${ECHO_T}no" >&6; }
2342 fi
2343
2344
2345 test -n "$AWK" && break
2346 done
2347
2348 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2349 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2350 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2351 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2352 echo $ECHO_N "(cached) $ECHO_C" >&6
2353 else
2354 cat >conftest.make <<\_ACEOF
2355 SHELL = /bin/sh
2356 all:
2357 @echo '@@@%%%=$(MAKE)=@@@%%%'
2358 _ACEOF
2359 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2360 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2361 *@@@%%%=?*=@@@%%%*)
2362 eval ac_cv_prog_make_${ac_make}_set=yes;;
2363 *)
2364 eval ac_cv_prog_make_${ac_make}_set=no;;
2365 esac
2366 rm -f conftest.make
2367 fi
2368 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2369 { echo "$as_me:$LINENO: result: yes" >&5
2370 echo "${ECHO_T}yes" >&6; }
2371 SET_MAKE=
2372 else
2373 { echo "$as_me:$LINENO: result: no" >&5
2374 echo "${ECHO_T}no" >&6; }
2375 SET_MAKE="MAKE=${MAKE-make}"
2376 fi
2377
2378 rm -rf .tst 2>/dev/null
2379 mkdir .tst 2>/dev/null
2380 if test -d .tst; then
2381 am__leading_dot=.
2382 else
2383 am__leading_dot=_
2384 fi
2385 rmdir .tst 2>/dev/null
2386
2387 # test to see if srcdir already configured
2388 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2389 test -f $srcdir/config.status; then
2390 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2391 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2392 { (exit 1); exit 1; }; }
2393 fi
2394
2395 # test whether we have cygpath
2396 if test -z "$CYGPATH_W"; then
2397 if (cygpath --version) >/dev/null 2>/dev/null; then
2398 CYGPATH_W='cygpath -w'
2399 else
2400 CYGPATH_W=echo
2401 fi
2402 fi
2403
2404
2405 # Define the identity of the package.
2406 PACKAGE=libdv
2407 VERSION=1.0.0
2408
2409
2410 cat >>confdefs.h <<_ACEOF
2411 #define PACKAGE "$PACKAGE"
2412 _ACEOF
2413
2414
2415 cat >>confdefs.h <<_ACEOF
2416 #define VERSION "$VERSION"
2417 _ACEOF
2418
2419 # Some tools Automake needs.
2420
2421 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2422
2423
2424 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2425
2426
2427 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2428
2429
2430 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2431
2432
2433 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2434
2435 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2436
2437 # Installed binaries are usually stripped using `strip' when the user
2438 # run `make install-strip'. However `strip' might not be the right
2439 # tool to use in cross-compilation environments, therefore Automake
2440 # will honor the `STRIP' environment variable to overrule this program.
2441 if test "$cross_compiling" != no; then
2442 if test -n "$ac_tool_prefix"; then
2443 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2444 set dummy ${ac_tool_prefix}strip; ac_word=$2
2445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2447 if test "${ac_cv_prog_STRIP+set}" = set; then
2448 echo $ECHO_N "(cached) $ECHO_C" >&6
2449 else
2450 if test -n "$STRIP"; then
2451 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2452 else
2453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2454 for as_dir in $PATH
2455 do
2456 IFS=$as_save_IFS
2457 test -z "$as_dir" && as_dir=.
2458 for ac_exec_ext in '' $ac_executable_extensions; do
2459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2460 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2462 break 2
2463 fi
2464 done
2465 done
2466 IFS=$as_save_IFS
2467
2468 fi
2469 fi
2470 STRIP=$ac_cv_prog_STRIP
2471 if test -n "$STRIP"; then
2472 { echo "$as_me:$LINENO: result: $STRIP" >&5
2473 echo "${ECHO_T}$STRIP" >&6; }
2474 else
2475 { echo "$as_me:$LINENO: result: no" >&5
2476 echo "${ECHO_T}no" >&6; }
2477 fi
2478
2479
2480 fi
2481 if test -z "$ac_cv_prog_STRIP"; then
2482 ac_ct_STRIP=$STRIP
2483 # Extract the first word of "strip", so it can be a program name with args.
2484 set dummy strip; ac_word=$2
2485 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2487 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2488 echo $ECHO_N "(cached) $ECHO_C" >&6
2489 else
2490 if test -n "$ac_ct_STRIP"; then
2491 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2492 else
2493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494 for as_dir in $PATH
2495 do
2496 IFS=$as_save_IFS
2497 test -z "$as_dir" && as_dir=.
2498 for ac_exec_ext in '' $ac_executable_extensions; do
2499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2500 ac_cv_prog_ac_ct_STRIP="strip"
2501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2502 break 2
2503 fi
2504 done
2505 done
2506 IFS=$as_save_IFS
2507
2508 fi
2509 fi
2510 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2511 if test -n "$ac_ct_STRIP"; then
2512 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2513 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2514 else
2515 { echo "$as_me:$LINENO: result: no" >&5
2516 echo "${ECHO_T}no" >&6; }
2517 fi
2518
2519 if test "x$ac_ct_STRIP" = x; then
2520 STRIP=":"
2521 else
2522 case $cross_compiling:$ac_tool_warned in
2523 yes:)
2524 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2525 whose name does not start with the host triplet. If you think this
2526 configuration is useful to you, please write to [email protected]." >&5
2527 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2528 whose name does not start with the host triplet. If you think this
2529 configuration is useful to you, please write to [email protected]." >&2;}
2530 ac_tool_warned=yes ;;
2531 esac
2532 STRIP=$ac_ct_STRIP
2533 fi
2534 else
2535 STRIP="$ac_cv_prog_STRIP"
2536 fi
2537
2538 fi
2539 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2540
2541 # We need awk for the "check" target. The system "awk" is bad on
2542 # some platforms.
2543 # Always define AMTAR for backward compatibility.
2544
2545 AMTAR=${AMTAR-"${am_missing_run}tar"}
2546
2547 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2548
2549
2550
2551
2552
2553
2554 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2555 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2556 # Check whether --enable-maintainer-mode was given.
2557 if test "${enable_maintainer_mode+set}" = set; then
2558 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2559 else
2560 USE_MAINTAINER_MODE=no
2561 fi
2562
2563 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2564 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2565
2566
2567 if test $USE_MAINTAINER_MODE = yes; then
2568 MAINTAINER_MODE_TRUE=
2569 MAINTAINER_MODE_FALSE='#'
2570 else
2571 MAINTAINER_MODE_TRUE='#'
2572 MAINTAINER_MODE_FALSE=
2573 fi
2574
2575 MAINT=$MAINTAINER_MODE_TRUE
2576
2577
2578 pic_mode=no
2579
2580
2581
2582
2583 ac_ext=c
2584 ac_cpp='$CPP $CPPFLAGS'
2585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2588 if test -n "$ac_tool_prefix"; then
2589 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2590 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2593 if test "${ac_cv_prog_CC+set}" = set; then
2594 echo $ECHO_N "(cached) $ECHO_C" >&6
2595 else
2596 if test -n "$CC"; then
2597 ac_cv_prog_CC="$CC" # Let the user override the test.
2598 else
2599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2600 for as_dir in $PATH
2601 do
2602 IFS=$as_save_IFS
2603 test -z "$as_dir" && as_dir=.
2604 for ac_exec_ext in '' $ac_executable_extensions; do
2605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2606 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2608 break 2
2609 fi
2610 done
2611 done
2612 IFS=$as_save_IFS
2613
2614 fi
2615 fi
2616 CC=$ac_cv_prog_CC
2617 if test -n "$CC"; then
2618 { echo "$as_me:$LINENO: result: $CC" >&5
2619 echo "${ECHO_T}$CC" >&6; }
2620 else
2621 { echo "$as_me:$LINENO: result: no" >&5
2622 echo "${ECHO_T}no" >&6; }
2623 fi
2624
2625
2626 fi
2627 if test -z "$ac_cv_prog_CC"; then
2628 ac_ct_CC=$CC
2629 # Extract the first word of "gcc", so it can be a program name with args.
2630 set dummy gcc; ac_word=$2
2631 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2633 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2634 echo $ECHO_N "(cached) $ECHO_C" >&6
2635 else
2636 if test -n "$ac_ct_CC"; then
2637 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2638 else
2639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2640 for as_dir in $PATH
2641 do
2642 IFS=$as_save_IFS
2643 test -z "$as_dir" && as_dir=.
2644 for ac_exec_ext in '' $ac_executable_extensions; do
2645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2646 ac_cv_prog_ac_ct_CC="gcc"
2647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2648 break 2
2649 fi
2650 done
2651 done
2652 IFS=$as_save_IFS
2653
2654 fi
2655 fi
2656 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2657 if test -n "$ac_ct_CC"; then
2658 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2659 echo "${ECHO_T}$ac_ct_CC" >&6; }
2660 else
2661 { echo "$as_me:$LINENO: result: no" >&5
2662 echo "${ECHO_T}no" >&6; }
2663 fi
2664
2665 if test "x$ac_ct_CC" = x; then
2666 CC=""
2667 else
2668 case $cross_compiling:$ac_tool_warned in
2669 yes:)
2670 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2671 whose name does not start with the host triplet. If you think this
2672 configuration is useful to you, please write to [email protected]." >&5
2673 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2674 whose name does not start with the host triplet. If you think this
2675 configuration is useful to you, please write to [email protected]." >&2;}
2676 ac_tool_warned=yes ;;
2677 esac
2678 CC=$ac_ct_CC
2679 fi
2680 else
2681 CC="$ac_cv_prog_CC"
2682 fi
2683
2684 if test -z "$CC"; then
2685 if test -n "$ac_tool_prefix"; then
2686 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2687 set dummy ${ac_tool_prefix}cc; ac_word=$2
2688 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2690 if test "${ac_cv_prog_CC+set}" = set; then
2691 echo $ECHO_N "(cached) $ECHO_C" >&6
2692 else
2693 if test -n "$CC"; then
2694 ac_cv_prog_CC="$CC" # Let the user override the test.
2695 else
2696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2697 for as_dir in $PATH
2698 do
2699 IFS=$as_save_IFS
2700 test -z "$as_dir" && as_dir=.
2701 for ac_exec_ext in '' $ac_executable_extensions; do
2702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2703 ac_cv_prog_CC="${ac_tool_prefix}cc"
2704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2705 break 2
2706 fi
2707 done
2708 done
2709 IFS=$as_save_IFS
2710
2711 fi
2712 fi
2713 CC=$ac_cv_prog_CC
2714 if test -n "$CC"; then
2715 { echo "$as_me:$LINENO: result: $CC" >&5
2716 echo "${ECHO_T}$CC" >&6; }
2717 else
2718 { echo "$as_me:$LINENO: result: no" >&5
2719 echo "${ECHO_T}no" >&6; }
2720 fi
2721
2722
2723 fi
2724 fi
2725 if test -z "$CC"; then
2726 # Extract the first word of "cc", so it can be a program name with args.
2727 set dummy cc; ac_word=$2
2728 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2730 if test "${ac_cv_prog_CC+set}" = set; then
2731 echo $ECHO_N "(cached) $ECHO_C" >&6
2732 else
2733 if test -n "$CC"; then
2734 ac_cv_prog_CC="$CC" # Let the user override the test.
2735 else
2736 ac_prog_rejected=no
2737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2738 for as_dir in $PATH
2739 do
2740 IFS=$as_save_IFS
2741 test -z "$as_dir" && as_dir=.
2742 for ac_exec_ext in '' $ac_executable_extensions; do
2743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2744 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2745 ac_prog_rejected=yes
2746 continue
2747 fi
2748 ac_cv_prog_CC="cc"
2749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2750 break 2
2751 fi
2752 done
2753 done
2754 IFS=$as_save_IFS
2755
2756 if test $ac_prog_rejected = yes; then
2757 # We found a bogon in the path, so make sure we never use it.
2758 set dummy $ac_cv_prog_CC
2759 shift
2760 if test $# != 0; then
2761 # We chose a different compiler from the bogus one.
2762 # However, it has the same basename, so the bogon will be chosen
2763 # first if we set CC to just the basename; use the full file name.
2764 shift
2765 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2766 fi
2767 fi
2768 fi
2769 fi
2770 CC=$ac_cv_prog_CC
2771 if test -n "$CC"; then
2772 { echo "$as_me:$LINENO: result: $CC" >&5
2773 echo "${ECHO_T}$CC" >&6; }
2774 else
2775 { echo "$as_me:$LINENO: result: no" >&5
2776 echo "${ECHO_T}no" >&6; }
2777 fi
2778
2779
2780 fi
2781 if test -z "$CC"; then
2782 if test -n "$ac_tool_prefix"; then
2783 for ac_prog in cl.exe
2784 do
2785 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2786 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2787 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2789 if test "${ac_cv_prog_CC+set}" = set; then
2790 echo $ECHO_N "(cached) $ECHO_C" >&6
2791 else
2792 if test -n "$CC"; then
2793 ac_cv_prog_CC="$CC" # Let the user override the test.
2794 else
2795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796 for as_dir in $PATH
2797 do
2798 IFS=$as_save_IFS
2799 test -z "$as_dir" && as_dir=.
2800 for ac_exec_ext in '' $ac_executable_extensions; do
2801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2802 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2804 break 2
2805 fi
2806 done
2807 done
2808 IFS=$as_save_IFS
2809
2810 fi
2811 fi
2812 CC=$ac_cv_prog_CC
2813 if test -n "$CC"; then
2814 { echo "$as_me:$LINENO: result: $CC" >&5
2815 echo "${ECHO_T}$CC" >&6; }
2816 else
2817 { echo "$as_me:$LINENO: result: no" >&5
2818 echo "${ECHO_T}no" >&6; }
2819 fi
2820
2821
2822 test -n "$CC" && break
2823 done
2824 fi
2825 if test -z "$CC"; then
2826 ac_ct_CC=$CC
2827 for ac_prog in cl.exe
2828 do
2829 # Extract the first word of "$ac_prog", so it can be a program name with args.
2830 set dummy $ac_prog; ac_word=$2
2831 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2833 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2834 echo $ECHO_N "(cached) $ECHO_C" >&6
2835 else
2836 if test -n "$ac_ct_CC"; then
2837 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2838 else
2839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2840 for as_dir in $PATH
2841 do
2842 IFS=$as_save_IFS
2843 test -z "$as_dir" && as_dir=.
2844 for ac_exec_ext in '' $ac_executable_extensions; do
2845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2846 ac_cv_prog_ac_ct_CC="$ac_prog"
2847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2848 break 2
2849 fi
2850 done
2851 done
2852 IFS=$as_save_IFS
2853
2854 fi
2855 fi
2856 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2857 if test -n "$ac_ct_CC"; then
2858 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2859 echo "${ECHO_T}$ac_ct_CC" >&6; }
2860 else
2861 { echo "$as_me:$LINENO: result: no" >&5
2862 echo "${ECHO_T}no" >&6; }
2863 fi
2864
2865
2866 test -n "$ac_ct_CC" && break
2867 done
2868
2869 if test "x$ac_ct_CC" = x; then
2870 CC=""
2871 else
2872 case $cross_compiling:$ac_tool_warned in
2873 yes:)
2874 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2875 whose name does not start with the host triplet. If you think this
2876 configuration is useful to you, please write to [email protected]." >&5
2877 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2878 whose name does not start with the host triplet. If you think this
2879 configuration is useful to you, please write to [email protected]." >&2;}
2880 ac_tool_warned=yes ;;
2881 esac
2882 CC=$ac_ct_CC
2883 fi
2884 fi
2885
2886 fi
2887
2888
2889 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2890 See \`config.log' for more details." >&5
2891 echo "$as_me: error: no acceptable C compiler found in \$PATH
2892 See \`config.log' for more details." >&2;}
2893 { (exit 1); exit 1; }; }
2894
2895 # Provide some information about the compiler.
2896 echo "$as_me:$LINENO: checking for C compiler version" >&5
2897 ac_compiler=`set X $ac_compile; echo $2`
2898 { (ac_try="$ac_compiler --version >&5"
2899 case "(($ac_try" in
2900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2901 *) ac_try_echo=$ac_try;;
2902 esac
2903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2904 (eval "$ac_compiler --version >&5") 2>&5
2905 ac_status=$?
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); }
2908 { (ac_try="$ac_compiler -v >&5"
2909 case "(($ac_try" in
2910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2911 *) ac_try_echo=$ac_try;;
2912 esac
2913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2914 (eval "$ac_compiler -v >&5") 2>&5
2915 ac_status=$?
2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); }
2918 { (ac_try="$ac_compiler -V >&5"
2919 case "(($ac_try" in
2920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2921 *) ac_try_echo=$ac_try;;
2922 esac
2923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2924 (eval "$ac_compiler -V >&5") 2>&5
2925 ac_status=$?
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); }
2928
2929 cat >conftest.$ac_ext <<_ACEOF
2930 /* confdefs.h. */
2931 _ACEOF
2932 cat confdefs.h >>conftest.$ac_ext
2933 cat >>conftest.$ac_ext <<_ACEOF
2934 /* end confdefs.h. */
2935
2936 int
2937 main ()
2938 {
2939
2940 ;
2941 return 0;
2942 }
2943 _ACEOF
2944 ac_clean_files_save=$ac_clean_files
2945 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2946 # Try to create an executable without -o first, disregard a.out.
2947 # It will help us diagnose broken compilers, and finding out an intuition
2948 # of exeext.
2949 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2950 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2951 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2952 #
2953 # List of possible output files, starting from the most likely.
2954 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2955 # only as a last resort. b.out is created by i960 compilers.
2956 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2957 #
2958 # The IRIX 6 linker writes into existing files which may not be
2959 # executable, retaining their permissions. Remove them first so a
2960 # subsequent execution test works.
2961 ac_rmfiles=
2962 for ac_file in $ac_files
2963 do
2964 case $ac_file in
2965 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2966 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2967 esac
2968 done
2969 rm -f $ac_rmfiles
2970
2971 if { (ac_try="$ac_link_default"
2972 case "(($ac_try" in
2973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2974 *) ac_try_echo=$ac_try;;
2975 esac
2976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2977 (eval "$ac_link_default") 2>&5
2978 ac_status=$?
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); }; then
2981 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2982 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2983 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2984 # so that the user can short-circuit this test for compilers unknown to
2985 # Autoconf.
2986 for ac_file in $ac_files
2987 do
2988 test -f "$ac_file" || continue
2989 case $ac_file in
2990 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2991 ;;
2992 [ab].out )
2993 # We found the default executable, but exeext='' is most
2994 # certainly right.
2995 break;;
2996 *.* )
2997 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2998 then :; else
2999 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3000 fi
3001 # We set ac_cv_exeext here because the later test for it is not
3002 # safe: cross compilers may not add the suffix if given an `-o'
3003 # argument, so we may need to know it at that point already.
3004 # Even if this section looks crufty: it has the advantage of
3005 # actually working.
3006 break;;
3007 * )
3008 break;;
3009 esac
3010 done
3011 test "$ac_cv_exeext" = no && ac_cv_exeext=
3012
3013 else
3014 echo "$as_me: failed program was:" >&5
3015 sed 's/^/| /' conftest.$ac_ext >&5
3016
3017 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3018 See \`config.log' for more details." >&5
3019 echo "$as_me: error: C compiler cannot create executables
3020 See \`config.log' for more details." >&2;}
3021 { (exit 77); exit 77; }; }
3022 fi
3023
3024 ac_exeext=$ac_cv_exeext
3025 { echo "$as_me:$LINENO: result: $ac_file" >&5
3026 echo "${ECHO_T}$ac_file" >&6; }
3027
3028 # Check that the compiler produces executables we can run. If not, either
3029 # the compiler is broken, or we cross compile.
3030 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3031 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3032 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3033 # If not cross compiling, check that we can run a simple program.
3034 if test "$cross_compiling" != yes; then
3035 if { ac_try='./$ac_file'
3036 { (case "(($ac_try" in
3037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038 *) ac_try_echo=$ac_try;;
3039 esac
3040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3041 (eval "$ac_try") 2>&5
3042 ac_status=$?
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); }; }; then
3045 cross_compiling=no
3046 else
3047 if test "$cross_compiling" = maybe; then
3048 cross_compiling=yes
3049 else
3050 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3051 If you meant to cross compile, use \`--host'.
3052 See \`config.log' for more details." >&5
3053 echo "$as_me: error: cannot run C compiled programs.
3054 If you meant to cross compile, use \`--host'.
3055 See \`config.log' for more details." >&2;}
3056 { (exit 1); exit 1; }; }
3057 fi
3058 fi
3059 fi
3060 { echo "$as_me:$LINENO: result: yes" >&5
3061 echo "${ECHO_T}yes" >&6; }
3062
3063 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3064 ac_clean_files=$ac_clean_files_save
3065 # Check that the compiler produces executables we can run. If not, either
3066 # the compiler is broken, or we cross compile.
3067 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3068 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3069 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3070 echo "${ECHO_T}$cross_compiling" >&6; }
3071
3072 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3073 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3074 if { (ac_try="$ac_link"
3075 case "(($ac_try" in
3076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3077 *) ac_try_echo=$ac_try;;
3078 esac
3079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3080 (eval "$ac_link") 2>&5
3081 ac_status=$?
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); }; then
3084 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3085 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3086 # work properly (i.e., refer to `conftest.exe'), while it won't with
3087 # `rm'.
3088 for ac_file in conftest.exe conftest conftest.*; do
3089 test -f "$ac_file" || continue
3090 case $ac_file in
3091 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3092 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3093 break;;
3094 * ) break;;
3095 esac
3096 done
3097 else
3098 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3099 See \`config.log' for more details." >&5
3100 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3101 See \`config.log' for more details." >&2;}
3102 { (exit 1); exit 1; }; }
3103 fi
3104
3105 rm -f conftest$ac_cv_exeext
3106 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3107 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3108
3109 rm -f conftest.$ac_ext
3110 EXEEXT=$ac_cv_exeext
3111 ac_exeext=$EXEEXT
3112 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3113 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3114 if test "${ac_cv_objext+set}" = set; then
3115 echo $ECHO_N "(cached) $ECHO_C" >&6
3116 else
3117 cat >conftest.$ac_ext <<_ACEOF
3118 /* confdefs.h. */
3119 _ACEOF
3120 cat confdefs.h >>conftest.$ac_ext
3121 cat >>conftest.$ac_ext <<_ACEOF
3122 /* end confdefs.h. */
3123
3124 int
3125 main ()
3126 {
3127
3128 ;
3129 return 0;
3130 }
3131 _ACEOF
3132 rm -f conftest.o conftest.obj
3133 if { (ac_try="$ac_compile"
3134 case "(($ac_try" in
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3137 esac
3138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139 (eval "$ac_compile") 2>&5
3140 ac_status=$?
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); }; then
3143 for ac_file in conftest.o conftest.obj conftest.*; do
3144 test -f "$ac_file" || continue;
3145 case $ac_file in
3146 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3147 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3148 break;;
3149 esac
3150 done
3151 else
3152 echo "$as_me: failed program was:" >&5
3153 sed 's/^/| /' conftest.$ac_ext >&5
3154
3155 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3156 See \`config.log' for more details." >&5
3157 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3158 See \`config.log' for more details." >&2;}
3159 { (exit 1); exit 1; }; }
3160 fi
3161
3162 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3163 fi
3164 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3165 echo "${ECHO_T}$ac_cv_objext" >&6; }
3166 OBJEXT=$ac_cv_objext
3167 ac_objext=$OBJEXT
3168 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3169 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3170 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3171 echo $ECHO_N "(cached) $ECHO_C" >&6
3172 else
3173 cat >conftest.$ac_ext <<_ACEOF
3174 /* confdefs.h. */
3175 _ACEOF
3176 cat confdefs.h >>conftest.$ac_ext
3177 cat >>conftest.$ac_ext <<_ACEOF
3178 /* end confdefs.h. */
3179
3180 int
3181 main ()
3182 {
3183 #ifndef __GNUC__
3184 choke me
3185 #endif
3186
3187 ;
3188 return 0;
3189 }
3190 _ACEOF
3191 rm -f conftest.$ac_objext
3192 if { (ac_try="$ac_compile"
3193 case "(($ac_try" in
3194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195 *) ac_try_echo=$ac_try;;
3196 esac
3197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3198 (eval "$ac_compile") 2>conftest.er1
3199 ac_status=$?
3200 grep -v '^ *+' conftest.er1 >conftest.err
3201 rm -f conftest.er1
3202 cat conftest.err >&5
3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 (exit $ac_status); } &&
3205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3206 { (case "(($ac_try" in
3207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208 *) ac_try_echo=$ac_try;;
3209 esac
3210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3211 (eval "$ac_try") 2>&5
3212 ac_status=$?
3213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214 (exit $ac_status); }; } &&
3215 { ac_try='test -s conftest.$ac_objext'
3216 { (case "(($ac_try" in
3217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3218 *) ac_try_echo=$ac_try;;
3219 esac
3220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3221 (eval "$ac_try") 2>&5
3222 ac_status=$?
3223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224 (exit $ac_status); }; }; then
3225 ac_compiler_gnu=yes
3226 else
3227 echo "$as_me: failed program was:" >&5
3228 sed 's/^/| /' conftest.$ac_ext >&5
3229
3230 ac_compiler_gnu=no
3231 fi
3232
3233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3234 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3235
3236 fi
3237 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3238 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3239 GCC=`test $ac_compiler_gnu = yes && echo yes`
3240 ac_test_CFLAGS=${CFLAGS+set}
3241 ac_save_CFLAGS=$CFLAGS
3242 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3243 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3244 if test "${ac_cv_prog_cc_g+set}" = set; then
3245 echo $ECHO_N "(cached) $ECHO_C" >&6
3246 else
3247 ac_save_c_werror_flag=$ac_c_werror_flag
3248 ac_c_werror_flag=yes
3249 ac_cv_prog_cc_g=no
3250 CFLAGS="-g"
3251 cat >conftest.$ac_ext <<_ACEOF
3252 /* confdefs.h. */
3253 _ACEOF
3254 cat confdefs.h >>conftest.$ac_ext
3255 cat >>conftest.$ac_ext <<_ACEOF
3256 /* end confdefs.h. */
3257
3258 int
3259 main ()
3260 {
3261
3262 ;
3263 return 0;
3264 }
3265 _ACEOF
3266 rm -f conftest.$ac_objext
3267 if { (ac_try="$ac_compile"
3268 case "(($ac_try" in
3269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3270 *) ac_try_echo=$ac_try;;
3271 esac
3272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3273 (eval "$ac_compile") 2>conftest.er1
3274 ac_status=$?
3275 grep -v '^ *+' conftest.er1 >conftest.err
3276 rm -f conftest.er1
3277 cat conftest.err >&5
3278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279 (exit $ac_status); } &&
3280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3281 { (case "(($ac_try" in
3282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3283 *) ac_try_echo=$ac_try;;
3284 esac
3285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3286 (eval "$ac_try") 2>&5
3287 ac_status=$?
3288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289 (exit $ac_status); }; } &&
3290 { ac_try='test -s conftest.$ac_objext'
3291 { (case "(($ac_try" in
3292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3293 *) ac_try_echo=$ac_try;;
3294 esac
3295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3296 (eval "$ac_try") 2>&5
3297 ac_status=$?
3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299 (exit $ac_status); }; }; then
3300 ac_cv_prog_cc_g=yes
3301 else
3302 echo "$as_me: failed program was:" >&5
3303 sed 's/^/| /' conftest.$ac_ext >&5
3304
3305 CFLAGS=""
3306 cat >conftest.$ac_ext <<_ACEOF
3307 /* confdefs.h. */
3308 _ACEOF
3309 cat confdefs.h >>conftest.$ac_ext
3310 cat >>conftest.$ac_ext <<_ACEOF
3311 /* end confdefs.h. */
3312
3313 int
3314 main ()
3315 {
3316
3317 ;
3318 return 0;
3319 }
3320 _ACEOF
3321 rm -f conftest.$ac_objext
3322 if { (ac_try="$ac_compile"
3323 case "(($ac_try" in
3324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325 *) ac_try_echo=$ac_try;;
3326 esac
3327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3328 (eval "$ac_compile") 2>conftest.er1
3329 ac_status=$?
3330 grep -v '^ *+' conftest.er1 >conftest.err
3331 rm -f conftest.er1
3332 cat conftest.err >&5
3333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334 (exit $ac_status); } &&
3335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3336 { (case "(($ac_try" in
3337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338 *) ac_try_echo=$ac_try;;
3339 esac
3340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3341 (eval "$ac_try") 2>&5
3342 ac_status=$?
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); }; } &&
3345 { ac_try='test -s conftest.$ac_objext'
3346 { (case "(($ac_try" in
3347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3348 *) ac_try_echo=$ac_try;;
3349 esac
3350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3351 (eval "$ac_try") 2>&5
3352 ac_status=$?
3353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354 (exit $ac_status); }; }; then
3355 :
3356 else
3357 echo "$as_me: failed program was:" >&5
3358 sed 's/^/| /' conftest.$ac_ext >&5
3359
3360 ac_c_werror_flag=$ac_save_c_werror_flag
3361 CFLAGS="-g"
3362 cat >conftest.$ac_ext <<_ACEOF
3363 /* confdefs.h. */
3364 _ACEOF
3365 cat confdefs.h >>conftest.$ac_ext
3366 cat >>conftest.$ac_ext <<_ACEOF
3367 /* end confdefs.h. */
3368
3369 int
3370 main ()
3371 {
3372
3373 ;
3374 return 0;
3375 }
3376 _ACEOF
3377 rm -f conftest.$ac_objext
3378 if { (ac_try="$ac_compile"
3379 case "(($ac_try" in
3380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381 *) ac_try_echo=$ac_try;;
3382 esac
3383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3384 (eval "$ac_compile") 2>conftest.er1
3385 ac_status=$?
3386 grep -v '^ *+' conftest.er1 >conftest.err
3387 rm -f conftest.er1
3388 cat conftest.err >&5
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); } &&
3391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3392 { (case "(($ac_try" in
3393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3394 *) ac_try_echo=$ac_try;;
3395 esac
3396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3397 (eval "$ac_try") 2>&5
3398 ac_status=$?
3399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400 (exit $ac_status); }; } &&
3401 { ac_try='test -s conftest.$ac_objext'
3402 { (case "(($ac_try" in
3403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404 *) ac_try_echo=$ac_try;;
3405 esac
3406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3407 (eval "$ac_try") 2>&5
3408 ac_status=$?
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); }; }; then
3411 ac_cv_prog_cc_g=yes
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 conftest.$ac_ext
3420 fi
3421
3422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3423 fi
3424
3425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3426 ac_c_werror_flag=$ac_save_c_werror_flag
3427 fi
3428 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3429 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3430 if test "$ac_test_CFLAGS" = set; then
3431 CFLAGS=$ac_save_CFLAGS
3432 elif test $ac_cv_prog_cc_g = yes; then
3433 if test "$GCC" = yes; then
3434 CFLAGS="-g -O2"
3435 else
3436 CFLAGS="-g"
3437 fi
3438 else
3439 if test "$GCC" = yes; then
3440 CFLAGS="-O2"
3441 else
3442 CFLAGS=
3443 fi
3444 fi
3445 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3446 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3447 if test "${ac_cv_prog_cc_c89+set}" = set; then
3448 echo $ECHO_N "(cached) $ECHO_C" >&6
3449 else
3450 ac_cv_prog_cc_c89=no
3451 ac_save_CC=$CC
3452 cat >conftest.$ac_ext <<_ACEOF
3453 /* confdefs.h. */
3454 _ACEOF
3455 cat confdefs.h >>conftest.$ac_ext
3456 cat >>conftest.$ac_ext <<_ACEOF
3457 /* end confdefs.h. */
3458 #include <stdarg.h>
3459 #include <stdio.h>
3460 #include <sys/types.h>
3461 #include <sys/stat.h>
3462 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3463 struct buf { int x; };
3464 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3465 static char *e (p, i)
3466 char **p;
3467 int i;
3468 {
3469 return p[i];
3470 }
3471 static char *f (char * (*g) (char **, int), char **p, ...)
3472 {
3473 char *s;
3474 va_list v;
3475 va_start (v,p);
3476 s = g (p, va_arg (v,int));
3477 va_end (v);
3478 return s;
3479 }
3480
3481 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3482 function prototypes and stuff, but not '\xHH' hex character constants.
3483 These don't provoke an error unfortunately, instead are silently treated
3484 as 'x'. The following induces an error, until -std is added to get
3485 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3486 array size at least. It's necessary to write '\x00'==0 to get something
3487 that's true only with -std. */
3488 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3489
3490 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3491 inside strings and character constants. */
3492 #define FOO(x) 'x'
3493 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3494
3495 int test (int i, double x);
3496 struct s1 {int (*f) (int a);};
3497 struct s2 {int (*f) (double a);};
3498 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3499 int argc;
3500 char **argv;
3501 int
3502 main ()
3503 {
3504 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3505 ;
3506 return 0;
3507 }
3508 _ACEOF
3509 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3510 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3511 do
3512 CC="$ac_save_CC $ac_arg"
3513 rm -f conftest.$ac_objext
3514 if { (ac_try="$ac_compile"
3515 case "(($ac_try" in
3516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3517 *) ac_try_echo=$ac_try;;
3518 esac
3519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3520 (eval "$ac_compile") 2>conftest.er1
3521 ac_status=$?
3522 grep -v '^ *+' conftest.er1 >conftest.err
3523 rm -f conftest.er1
3524 cat conftest.err >&5
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); } &&
3527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3528 { (case "(($ac_try" in
3529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3530 *) ac_try_echo=$ac_try;;
3531 esac
3532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3533 (eval "$ac_try") 2>&5
3534 ac_status=$?
3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); }; } &&
3537 { ac_try='test -s conftest.$ac_objext'
3538 { (case "(($ac_try" in
3539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3540 *) ac_try_echo=$ac_try;;
3541 esac
3542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3543 (eval "$ac_try") 2>&5
3544 ac_status=$?
3545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546 (exit $ac_status); }; }; then
3547 ac_cv_prog_cc_c89=$ac_arg
3548 else
3549 echo "$as_me: failed program was:" >&5
3550 sed 's/^/| /' conftest.$ac_ext >&5
3551
3552
3553 fi
3554
3555 rm -f core conftest.err conftest.$ac_objext
3556 test "x$ac_cv_prog_cc_c89" != "xno" && break
3557 done
3558 rm -f conftest.$ac_ext
3559 CC=$ac_save_CC
3560
3561 fi
3562 # AC_CACHE_VAL
3563 case "x$ac_cv_prog_cc_c89" in
3564 x)
3565 { echo "$as_me:$LINENO: result: none needed" >&5
3566 echo "${ECHO_T}none needed" >&6; } ;;
3567 xno)
3568 { echo "$as_me:$LINENO: result: unsupported" >&5
3569 echo "${ECHO_T}unsupported" >&6; } ;;
3570 *)
3571 CC="$CC $ac_cv_prog_cc_c89"
3572 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3573 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3574 esac
3575
3576
3577 ac_ext=c
3578 ac_cpp='$CPP $CPPFLAGS'
3579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3582 DEPDIR="${am__leading_dot}deps"
3583
3584 ac_config_commands="$ac_config_commands depfiles"
3585
3586
3587 am_make=${MAKE-make}
3588 cat > confinc << 'END'
3589 am__doit:
3590 @echo done
3591 .PHONY: am__doit
3592 END
3593 # If we don't find an include directive, just comment out the code.
3594 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3595 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3596 am__include="#"
3597 am__quote=
3598 _am_result=none
3599 # First try GNU make style include.
3600 echo "include confinc" > confmf
3601 # We grep out `Entering directory' and `Leaving directory'
3602 # messages which can occur if `w' ends up in MAKEFLAGS.
3603 # In particular we don't look at `^make:' because GNU make might
3604 # be invoked under some other name (usually "gmake"), in which
3605 # case it prints its new name instead of `make'.
3606 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3607 am__include=include
3608 am__quote=
3609 _am_result=GNU
3610 fi
3611 # Now try BSD make style include.
3612 if test "$am__include" = "#"; then
3613 echo '.include "confinc"' > confmf
3614 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3615 am__include=.include
3616 am__quote="\""
3617 _am_result=BSD
3618 fi
3619 fi
3620
3621
3622 { echo "$as_me:$LINENO: result: $_am_result" >&5
3623 echo "${ECHO_T}$_am_result" >&6; }
3624 rm -f confinc confmf
3625
3626 # Check whether --enable-dependency-tracking was given.
3627 if test "${enable_dependency_tracking+set}" = set; then
3628 enableval=$enable_dependency_tracking;
3629 fi
3630
3631 if test "x$enable_dependency_tracking" != xno; then
3632 am_depcomp="$ac_aux_dir/depcomp"
3633 AMDEPBACKSLASH='\'
3634 fi
3635
3636
3637 if test "x$enable_dependency_tracking" != xno; then
3638 AMDEP_TRUE=
3639 AMDEP_FALSE='#'
3640 else
3641 AMDEP_TRUE='#'
3642 AMDEP_FALSE=
3643 fi
3644
3645
3646
3647
3648 depcc="$CC" am_compiler_list=
3649
3650 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3651 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3652 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3653 echo $ECHO_N "(cached) $ECHO_C" >&6
3654 else
3655 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3656 # We make a subdir and do the tests there. Otherwise we can end up
3657 # making bogus files that we don't know about and never remove. For
3658 # instance it was reported that on HP-UX the gcc test will end up
3659 # making a dummy file named `D' -- because `-MD' means `put the output
3660 # in D'.
3661 mkdir conftest.dir
3662 # Copy depcomp to subdir because otherwise we won't find it if we're
3663 # using a relative directory.
3664 cp "$am_depcomp" conftest.dir
3665 cd conftest.dir
3666 # We will build objects and dependencies in a subdirectory because
3667 # it helps to detect inapplicable dependency modes. For instance
3668 # both Tru64's cc and ICC support -MD to output dependencies as a
3669 # side effect of compilation, but ICC will put the dependencies in
3670 # the current directory while Tru64 will put them in the object
3671 # directory.
3672 mkdir sub
3673
3674 am_cv_CC_dependencies_compiler_type=none
3675 if test "$am_compiler_list" = ""; then
3676 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3677 fi
3678 for depmode in $am_compiler_list; do
3679 # Setup a source with many dependencies, because some compilers
3680 # like to wrap large dependency lists on column 80 (with \), and
3681 # we should not choose a depcomp mode which is confused by this.
3682 #
3683 # We need to recreate these files for each test, as the compiler may
3684 # overwrite some of them when testing with obscure command lines.
3685 # This happens at least with the AIX C compiler.
3686 : > sub/conftest.c
3687 for i in 1 2 3 4 5 6; do
3688 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3689 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3690 # Solaris 8's {/usr,}/bin/sh.
3691 touch sub/conftst$i.h
3692 done
3693 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3694
3695 case $depmode in
3696 nosideeffect)
3697 # after this tag, mechanisms are not by side-effect, so they'll
3698 # only be used when explicitly requested
3699 if test "x$enable_dependency_tracking" = xyes; then
3700 continue
3701 else
3702 break
3703 fi
3704 ;;
3705 none) break ;;
3706 esac
3707 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3708 # mode. It turns out that the SunPro C++ compiler does not properly
3709 # handle `-M -o', and we need to detect this.
3710 if depmode=$depmode \
3711 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3712 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3713 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3714 >/dev/null 2>conftest.err &&
3715 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3716 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3717 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3718 # icc doesn't choke on unknown options, it will just issue warnings
3719 # or remarks (even with -Werror). So we grep stderr for any message
3720 # that says an option was ignored or not supported.
3721 # When given -MP, icc 7.0 and 7.1 complain thusly:
3722 # icc: Command line warning: ignoring option '-M'; no argument required
3723 # The diagnosis changed in icc 8.0:
3724 # icc: Command line remark: option '-MP' not supported
3725 if (grep 'ignoring option' conftest.err ||
3726 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3727 am_cv_CC_dependencies_compiler_type=$depmode
3728 break
3729 fi
3730 fi
3731 done
3732
3733 cd ..
3734 rm -rf conftest.dir
3735 else
3736 am_cv_CC_dependencies_compiler_type=none
3737 fi
3738
3739 fi
3740 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3741 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3742 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3743
3744
3745
3746 if
3747 test "x$enable_dependency_tracking" != xno \
3748 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3749 am__fastdepCC_TRUE=
3750 am__fastdepCC_FALSE='#'
3751 else
3752 am__fastdepCC_TRUE='#'
3753 am__fastdepCC_FALSE=
3754 fi
3755
3756
3757 # By default we simply use the C compiler to build assembly code.
3758
3759 test "${CCAS+set}" = set || CCAS=$CC
3760 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3761
3762
3763
3764 AS="${CC}" # stupid automake bug
3765
3766
3767 if test "$GCC" = "yes"; then
3768 CFLAGS="$CFLAGS -Wall"
3769 fi
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795 cat >>confdefs.h <<\_ACEOF
3796 #define _GNU_SOURCE 1
3797 _ACEOF
3798
3799
3800 # Find a good install program. We prefer a C program (faster),
3801 # so one script is as good as another. But avoid the broken or
3802 # incompatible versions:
3803 # SysV /etc/install, /usr/sbin/install
3804 # SunOS /usr/etc/install
3805 # IRIX /sbin/install
3806 # AIX /bin/install
3807 # AmigaOS /C/install, which installs bootblocks on floppy discs
3808 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3809 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3810 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3811 # OS/2's system install, which has a completely different semantic
3812 # ./install, which can be erroneously created by make from ./install.sh.
3813 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3814 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3815 if test -z "$INSTALL"; then
3816 if test "${ac_cv_path_install+set}" = set; then
3817 echo $ECHO_N "(cached) $ECHO_C" >&6
3818 else
3819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3820 for as_dir in $PATH
3821 do
3822 IFS=$as_save_IFS
3823 test -z "$as_dir" && as_dir=.
3824 # Account for people who put trailing slashes in PATH elements.
3825 case $as_dir/ in
3826 ./ | .// | /cC/* | \
3827 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3828 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3829 /usr/ucb/* ) ;;
3830 *)
3831 # OSF1 and SCO ODT 3.0 have their own names for install.
3832 # Don't use installbsd from OSF since it installs stuff as root
3833 # by default.
3834 for ac_prog in ginstall scoinst install; do
3835 for ac_exec_ext in '' $ac_executable_extensions; do
3836 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
3837 if test $ac_prog = install &&
3838 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3839 # AIX install. It has an incompatible calling convention.
3840 :
3841 elif test $ac_prog = install &&
3842 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3843 # program-specific install script used by HP pwplus--don't use.
3844 :
3845 else
3846 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3847 break 3
3848 fi
3849 fi
3850 done
3851 done
3852 ;;
3853 esac
3854 done
3855 IFS=$as_save_IFS
3856
3857
3858 fi
3859 if test "${ac_cv_path_install+set}" = set; then
3860 INSTALL=$ac_cv_path_install
3861 else
3862 # As a last resort, use the slow shell script. Don't cache a
3863 # value for INSTALL within a source directory, because that will
3864 # break other packages using the cache if that directory is
3865 # removed, or if the value is a relative name.
3866 INSTALL=$ac_install_sh
3867 fi
3868 fi
3869 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3870 echo "${ECHO_T}$INSTALL" >&6; }
3871
3872 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3873 # It thinks the first close brace ends the variable substitution.
3874 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3875
3876 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3877
3878 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3879
3880 # Check whether --enable-shared was given.
3881 if test "${enable_shared+set}" = set; then
3882 enableval=$enable_shared; p=${PACKAGE-default}
3883 case $enableval in
3884 yes) enable_shared=yes ;;
3885 no) enable_shared=no ;;
3886 *)
3887 enable_shared=no
3888 # Look at the argument we got. We use all the common list separators.
3889 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3890 for pkg in $enableval; do
3891 IFS="$lt_save_ifs"
3892 if test "X$pkg" = "X$p"; then
3893 enable_shared=yes
3894 fi
3895 done
3896 IFS="$lt_save_ifs"
3897 ;;
3898 esac
3899 else
3900 enable_shared=yes
3901 fi
3902
3903
3904 # Check whether --enable-static was given.
3905 if test "${enable_static+set}" = set; then
3906 enableval=$enable_static; p=${PACKAGE-default}
3907 case $enableval in
3908 yes) enable_static=yes ;;
3909 no) enable_static=no ;;
3910 *)
3911 enable_static=no
3912 # Look at the argument we got. We use all the common list separators.
3913 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3914 for pkg in $enableval; do
3915 IFS="$lt_save_ifs"
3916 if test "X$pkg" = "X$p"; then
3917 enable_static=yes
3918 fi
3919 done
3920 IFS="$lt_save_ifs"
3921 ;;
3922 esac
3923 else
3924 enable_static=yes
3925 fi
3926
3927
3928 # Check whether --enable-fast-install was given.
3929 if test "${enable_fast_install+set}" = set; then
3930 enableval=$enable_fast_install; p=${PACKAGE-default}
3931 case $enableval in
3932 yes) enable_fast_install=yes ;;
3933 no) enable_fast_install=no ;;
3934 *)
3935 enable_fast_install=no
3936 # Look at the argument we got. We use all the common list separators.
3937 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3938 for pkg in $enableval; do
3939 IFS="$lt_save_ifs"
3940 if test "X$pkg" = "X$p"; then
3941 enable_fast_install=yes
3942 fi
3943 done
3944 IFS="$lt_save_ifs"
3945 ;;
3946 esac
3947 else
3948 enable_fast_install=yes
3949 fi
3950
3951
3952 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3953 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3954 if test "${lt_cv_path_SED+set}" = set; then
3955 echo $ECHO_N "(cached) $ECHO_C" >&6
3956 else
3957 # Loop through the user's path and test for sed and gsed.
3958 # Then use that list of sed's as ones to test for truncation.
3959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3960 for as_dir in $PATH
3961 do
3962 IFS=$as_save_IFS
3963 test -z "$as_dir" && as_dir=.
3964 for lt_ac_prog in sed gsed; do
3965 for ac_exec_ext in '' $ac_executable_extensions; do
3966 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3967 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3968 fi
3969 done
3970 done
3971 done
3972 lt_ac_max=0
3973 lt_ac_count=0
3974 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3975 # along with /bin/sed that truncates output.
3976 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3977 test ! -f $lt_ac_sed && continue
3978 cat /dev/null > conftest.in
3979 lt_ac_count=0
3980 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3981 # Check for GNU sed and select it if it is found.
3982 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3983 lt_cv_path_SED=$lt_ac_sed
3984 break
3985 fi
3986 while true; do
3987 cat conftest.in conftest.in >conftest.tmp
3988 mv conftest.tmp conftest.in
3989 cp conftest.in conftest.nl
3990 echo >>conftest.nl
3991 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3992 cmp -s conftest.out conftest.nl || break
3993 # 10000 chars as input seems more than enough
3994 test $lt_ac_count -gt 10 && break
3995 lt_ac_count=`expr $lt_ac_count + 1`
3996 if test $lt_ac_count -gt $lt_ac_max; then
3997 lt_ac_max=$lt_ac_count
3998 lt_cv_path_SED=$lt_ac_sed
3999 fi
4000 done
4001 done
4002
4003 fi
4004
4005 SED=$lt_cv_path_SED
4006 { echo "$as_me:$LINENO: result: $SED" >&5
4007 echo "${ECHO_T}$SED" >&6; }
4008
4009 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4010 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4011 if test "${ac_cv_path_GREP+set}" = set; then
4012 echo $ECHO_N "(cached) $ECHO_C" >&6
4013 else
4014 # Extract the first word of "grep ggrep" to use in msg output
4015 if test -z "$GREP"; then
4016 set dummy grep ggrep; ac_prog_name=$2
4017 if test "${ac_cv_path_GREP+set}" = set; then
4018 echo $ECHO_N "(cached) $ECHO_C" >&6
4019 else
4020 ac_path_GREP_found=false
4021 # Loop through the user's path and test for each of PROGNAME-LIST
4022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4023 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4024 do
4025 IFS=$as_save_IFS
4026 test -z "$as_dir" && as_dir=.
4027 for ac_prog in grep ggrep; do
4028 for ac_exec_ext in '' $ac_executable_extensions; do
4029 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4030 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4031 # Check for GNU ac_path_GREP and select it if it is found.
4032 # Check for GNU $ac_path_GREP
4033 case `"$ac_path_GREP" --version 2>&1` in
4034 *GNU*)
4035 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4036 *)
4037 ac_count=0
4038 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4039 while :
4040 do
4041 cat "conftest.in" "conftest.in" >"conftest.tmp"
4042 mv "conftest.tmp" "conftest.in"
4043 cp "conftest.in" "conftest.nl"
4044 echo 'GREP' >> "conftest.nl"
4045 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4046 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4047 ac_count=`expr $ac_count + 1`
4048 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4049 # Best one so far, save it but keep looking for a better one
4050 ac_cv_path_GREP="$ac_path_GREP"
4051 ac_path_GREP_max=$ac_count
4052 fi
4053 # 10*(2^10) chars as input seems more than enough
4054 test $ac_count -gt 10 && break
4055 done
4056 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4057 esac
4058
4059
4060 $ac_path_GREP_found && break 3
4061 done
4062 done
4063
4064 done
4065 IFS=$as_save_IFS
4066
4067
4068 fi
4069
4070 GREP="$ac_cv_path_GREP"
4071 if test -z "$GREP"; then
4072 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4073 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4074 { (exit 1); exit 1; }; }
4075 fi
4076
4077 else
4078 ac_cv_path_GREP=$GREP
4079 fi
4080
4081
4082 fi
4083 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4084 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4085 GREP="$ac_cv_path_GREP"
4086
4087
4088 { echo "$as_me:$LINENO: checking for egrep" >&5
4089 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4090 if test "${ac_cv_path_EGREP+set}" = set; then
4091 echo $ECHO_N "(cached) $ECHO_C" >&6
4092 else
4093 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4094 then ac_cv_path_EGREP="$GREP -E"
4095 else
4096 # Extract the first word of "egrep" to use in msg output
4097 if test -z "$EGREP"; then
4098 set dummy egrep; ac_prog_name=$2
4099 if test "${ac_cv_path_EGREP+set}" = set; then
4100 echo $ECHO_N "(cached) $ECHO_C" >&6
4101 else
4102 ac_path_EGREP_found=false
4103 # Loop through the user's path and test for each of PROGNAME-LIST
4104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4105 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4106 do
4107 IFS=$as_save_IFS
4108 test -z "$as_dir" && as_dir=.
4109 for ac_prog in egrep; do
4110 for ac_exec_ext in '' $ac_executable_extensions; do
4111 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4112 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4113 # Check for GNU ac_path_EGREP and select it if it is found.
4114 # Check for GNU $ac_path_EGREP
4115 case `"$ac_path_EGREP" --version 2>&1` in
4116 *GNU*)
4117 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4118 *)
4119 ac_count=0
4120 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4121 while :
4122 do
4123 cat "conftest.in" "conftest.in" >"conftest.tmp"
4124 mv "conftest.tmp" "conftest.in"
4125 cp "conftest.in" "conftest.nl"
4126 echo 'EGREP' >> "conftest.nl"
4127 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4128 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4129 ac_count=`expr $ac_count + 1`
4130 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4131 # Best one so far, save it but keep looking for a better one
4132 ac_cv_path_EGREP="$ac_path_EGREP"
4133 ac_path_EGREP_max=$ac_count
4134 fi
4135 # 10*(2^10) chars as input seems more than enough
4136 test $ac_count -gt 10 && break
4137 done
4138 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4139 esac
4140
4141
4142 $ac_path_EGREP_found && break 3
4143 done
4144 done
4145
4146 done
4147 IFS=$as_save_IFS
4148
4149
4150 fi
4151
4152 EGREP="$ac_cv_path_EGREP"
4153 if test -z "$EGREP"; then
4154 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4155 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4156 { (exit 1); exit 1; }; }
4157 fi
4158
4159 else
4160 ac_cv_path_EGREP=$EGREP
4161 fi
4162
4163
4164 fi
4165 fi
4166 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4167 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4168 EGREP="$ac_cv_path_EGREP"
4169
4170
4171
4172 # Check whether --with-gnu-ld was given.
4173 if test "${with_gnu_ld+set}" = set; then
4174 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4175 else
4176 with_gnu_ld=no
4177 fi
4178
4179 ac_prog=ld
4180 if test "$GCC" = yes; then
4181 # Check if gcc -print-prog-name=ld gives a path.
4182 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4183 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4184 case $host in
4185 *-*-mingw*)
4186 # gcc leaves a trailing carriage return which upsets mingw
4187 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4188 *)
4189 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4190 esac
4191 case $ac_prog in
4192 # Accept absolute paths.
4193 [\\/]* | ?:[\\/]*)
4194 re_direlt='/[^/][^/]*/\.\./'
4195 # Canonicalize the pathname of ld
4196 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4197 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4198 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4199 done
4200 test -z "$LD" && LD="$ac_prog"
4201 ;;
4202 "")
4203 # If it fails, then pretend we aren't using GCC.
4204 ac_prog=ld
4205 ;;
4206 *)
4207 # If it is relative, then search for the first ld in PATH.
4208 with_gnu_ld=unknown
4209 ;;
4210 esac
4211 elif test "$with_gnu_ld" = yes; then
4212 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4213 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4214 else
4215 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4216 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4217 fi
4218 if test "${lt_cv_path_LD+set}" = set; then
4219 echo $ECHO_N "(cached) $ECHO_C" >&6
4220 else
4221 if test -z "$LD"; then
4222 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4223 for ac_dir in $PATH; do
4224 IFS="$lt_save_ifs"
4225 test -z "$ac_dir" && ac_dir=.
4226 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4227 lt_cv_path_LD="$ac_dir/$ac_prog"
4228 # Check to see if the program is GNU ld. I'd rather use --version,
4229 # but apparently some variants of GNU ld only accept -v.
4230 # Break only if it was the GNU/non-GNU ld that we prefer.
4231 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4232 *GNU* | *'with BFD'*)
4233 test "$with_gnu_ld" != no && break
4234 ;;
4235 *)
4236 test "$with_gnu_ld" != yes && break
4237 ;;
4238 esac
4239 fi
4240 done
4241 IFS="$lt_save_ifs"
4242 else
4243 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4244 fi
4245 fi
4246
4247 LD="$lt_cv_path_LD"
4248 if test -n "$LD"; then
4249 { echo "$as_me:$LINENO: result: $LD" >&5
4250 echo "${ECHO_T}$LD" >&6; }
4251 else
4252 { echo "$as_me:$LINENO: result: no" >&5
4253 echo "${ECHO_T}no" >&6; }
4254 fi
4255 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4256 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4257 { (exit 1); exit 1; }; }
4258 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4259 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4260 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4261 echo $ECHO_N "(cached) $ECHO_C" >&6
4262 else
4263 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4264 case `$LD -v 2>&1 </dev/null` in
4265 *GNU* | *'with BFD'*)
4266 lt_cv_prog_gnu_ld=yes
4267 ;;
4268 *)
4269 lt_cv_prog_gnu_ld=no
4270 ;;
4271 esac
4272 fi
4273 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4274 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4275 with_gnu_ld=$lt_cv_prog_gnu_ld
4276
4277
4278 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4279 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4280 if test "${lt_cv_ld_reload_flag+set}" = set; then
4281 echo $ECHO_N "(cached) $ECHO_C" >&6
4282 else
4283 lt_cv_ld_reload_flag='-r'
4284 fi
4285 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4286 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4287 reload_flag=$lt_cv_ld_reload_flag
4288 case $reload_flag in
4289 "" | " "*) ;;
4290 *) reload_flag=" $reload_flag" ;;
4291 esac
4292 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4293 case $host_os in
4294 darwin*)
4295 if test "$GCC" = yes; then
4296 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4297 else
4298 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4299 fi
4300 ;;
4301 esac
4302
4303 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4304 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4305 if test "${lt_cv_path_NM+set}" = set; then
4306 echo $ECHO_N "(cached) $ECHO_C" >&6
4307 else
4308 if test -n "$NM"; then
4309 # Let the user override the test.
4310 lt_cv_path_NM="$NM"
4311 else
4312 lt_nm_to_check="${ac_tool_prefix}nm"
4313 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4314 lt_nm_to_check="$lt_nm_to_check nm"
4315 fi
4316 for lt_tmp_nm in $lt_nm_to_check; do
4317 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4318 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4319 IFS="$lt_save_ifs"
4320 test -z "$ac_dir" && ac_dir=.
4321 tmp_nm="$ac_dir/$lt_tmp_nm"
4322 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4323 # Check to see if the nm accepts a BSD-compat flag.
4324 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4325 # nm: unknown option "B" ignored
4326 # Tru64's nm complains that /dev/null is an invalid object file
4327 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4328 */dev/null* | *'Invalid file or object type'*)
4329 lt_cv_path_NM="$tmp_nm -B"
4330 break
4331 ;;
4332 *)
4333 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4334 */dev/null*)
4335 lt_cv_path_NM="$tmp_nm -p"
4336 break
4337 ;;
4338 *)
4339 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4340 continue # so that we can try to find one that supports BSD flags
4341 ;;
4342 esac
4343 ;;
4344 esac
4345 fi
4346 done
4347 IFS="$lt_save_ifs"
4348 done
4349 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4350 fi
4351 fi
4352 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4353 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4354 NM="$lt_cv_path_NM"
4355
4356 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4357 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4358 LN_S=$as_ln_s
4359 if test "$LN_S" = "ln -s"; then
4360 { echo "$as_me:$LINENO: result: yes" >&5
4361 echo "${ECHO_T}yes" >&6; }
4362 else
4363 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4364 echo "${ECHO_T}no, using $LN_S" >&6; }
4365 fi
4366
4367 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4368 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4369 if test "${lt_cv_deplibs_check_method+set}" = set; then
4370 echo $ECHO_N "(cached) $ECHO_C" >&6
4371 else
4372 lt_cv_file_magic_cmd='$MAGIC_CMD'
4373 lt_cv_file_magic_test_file=
4374 lt_cv_deplibs_check_method='unknown'
4375 # Need to set the preceding variable on all platforms that support
4376 # interlibrary dependencies.
4377 # 'none' -- dependencies not supported.
4378 # `unknown' -- same as none, but documents that we really don't know.
4379 # 'pass_all' -- all dependencies passed with no checks.
4380 # 'test_compile' -- check by making test program.
4381 # 'file_magic [[regex]]' -- check by looking for files in library path
4382 # which responds to the $file_magic_cmd with a given extended regex.
4383 # If you have `file' or equivalent on your system and you're not sure
4384 # whether `pass_all' will *always* work, you probably want this one.
4385
4386 case $host_os in
4387 aix4* | aix5*)
4388 lt_cv_deplibs_check_method=pass_all
4389 ;;
4390
4391 beos*)
4392 lt_cv_deplibs_check_method=pass_all
4393 ;;
4394
4395 bsdi[45]*)
4396 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4397 lt_cv_file_magic_cmd='/usr/bin/file -L'
4398 lt_cv_file_magic_test_file=/shlib/libc.so
4399 ;;
4400
4401 cygwin*)
4402 # func_win32_libid is a shell function defined in ltmain.sh
4403 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4404 lt_cv_file_magic_cmd='func_win32_libid'
4405 ;;
4406
4407 mingw* | pw32*)
4408 # Base MSYS/MinGW do not provide the 'file' command needed by
4409 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4410 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4411 lt_cv_file_magic_cmd='$OBJDUMP -f'
4412 ;;
4413
4414 darwin* | rhapsody*)
4415 lt_cv_deplibs_check_method=pass_all
4416 ;;
4417
4418 freebsd* | kfreebsd*-gnu | dragonfly*)
4419 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4420 case $host_cpu in
4421 i*86 )
4422 # Not sure whether the presence of OpenBSD here was a mistake.
4423 # Let's accept both of them until this is cleared up.
4424 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4425 lt_cv_file_magic_cmd=/usr/bin/file
4426 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4427 ;;
4428 esac
4429 else
4430 lt_cv_deplibs_check_method=pass_all
4431 fi
4432 ;;
4433
4434 gnu*)
4435 lt_cv_deplibs_check_method=pass_all
4436 ;;
4437
4438 hpux10.20* | hpux11*)
4439 lt_cv_file_magic_cmd=/usr/bin/file
4440 case $host_cpu in
4441 ia64*)
4442 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4443 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4444 ;;
4445 hppa*64*)
4446 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]'
4447 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4448 ;;
4449 *)
4450 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4451 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4452 ;;
4453 esac
4454 ;;
4455
4456 interix3*)
4457 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4458 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4459 ;;
4460
4461 irix5* | irix6* | nonstopux*)
4462 case $LD in
4463 *-32|*"-32 ") libmagic=32-bit;;
4464 *-n32|*"-n32 ") libmagic=N32;;
4465 *-64|*"-64 ") libmagic=64-bit;;
4466 *) libmagic=never-match;;
4467 esac
4468 lt_cv_deplibs_check_method=pass_all
4469 ;;
4470
4471 # This must be Linux ELF.
4472 linux*)
4473 lt_cv_deplibs_check_method=pass_all
4474 ;;
4475
4476 netbsd*)
4477 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4478 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4479 else
4480 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4481 fi
4482 ;;
4483
4484 newos6*)
4485 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4486 lt_cv_file_magic_cmd=/usr/bin/file
4487 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4488 ;;
4489
4490 nto-qnx*)
4491 lt_cv_deplibs_check_method=unknown
4492 ;;
4493
4494 openbsd*)
4495 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4496 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4497 else
4498 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4499 fi
4500 ;;
4501
4502 osf3* | osf4* | osf5*)
4503 lt_cv_deplibs_check_method=pass_all
4504 ;;
4505
4506 solaris*)
4507 lt_cv_deplibs_check_method=pass_all
4508 ;;
4509
4510 sysv4 | sysv4.3*)
4511 case $host_vendor in
4512 motorola)
4513 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]'
4514 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4515 ;;
4516 ncr)
4517 lt_cv_deplibs_check_method=pass_all
4518 ;;
4519 sequent)
4520 lt_cv_file_magic_cmd='/bin/file'
4521 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4522 ;;
4523 sni)
4524 lt_cv_file_magic_cmd='/bin/file'
4525 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4526 lt_cv_file_magic_test_file=/lib/libc.so
4527 ;;
4528 siemens)
4529 lt_cv_deplibs_check_method=pass_all
4530 ;;
4531 pc)
4532 lt_cv_deplibs_check_method=pass_all
4533 ;;
4534 esac
4535 ;;
4536
4537 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4538 lt_cv_deplibs_check_method=pass_all
4539 ;;
4540 esac
4541
4542 fi
4543 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4544 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4545 file_magic_cmd=$lt_cv_file_magic_cmd
4546 deplibs_check_method=$lt_cv_deplibs_check_method
4547 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4548
4549
4550
4551
4552 # If no C compiler was specified, use CC.
4553 LTCC=${LTCC-"$CC"}
4554
4555 # If no C compiler flags were specified, use CFLAGS.
4556 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4557
4558 # Allow CC to be a program name with arguments.
4559 compiler=$CC
4560
4561
4562 # Check whether --enable-libtool-lock was given.
4563 if test "${enable_libtool_lock+set}" = set; then
4564 enableval=$enable_libtool_lock;
4565 fi
4566
4567 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4568
4569 # Some flags need to be propagated to the compiler or linker for good
4570 # libtool support.
4571 case $host in
4572 ia64-*-hpux*)
4573 # Find out which ABI we are using.
4574 echo 'int i;' > conftest.$ac_ext
4575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4576 (eval $ac_compile) 2>&5
4577 ac_status=$?
4578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579 (exit $ac_status); }; then
4580 case `/usr/bin/file conftest.$ac_objext` in
4581 *ELF-32*)
4582 HPUX_IA64_MODE="32"
4583 ;;
4584 *ELF-64*)
4585 HPUX_IA64_MODE="64"
4586 ;;
4587 esac
4588 fi
4589 rm -rf conftest*
4590 ;;
4591 *-*-irix6*)
4592 # Find out which ABI we are using.
4593 echo '#line 4593 "configure"' > conftest.$ac_ext
4594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4595 (eval $ac_compile) 2>&5
4596 ac_status=$?
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); }; then
4599 if test "$lt_cv_prog_gnu_ld" = yes; then
4600 case `/usr/bin/file conftest.$ac_objext` in
4601 *32-bit*)
4602 LD="${LD-ld} -melf32bsmip"
4603 ;;
4604 *N32*)
4605 LD="${LD-ld} -melf32bmipn32"
4606 ;;
4607 *64-bit*)
4608 LD="${LD-ld} -melf64bmip"
4609 ;;
4610 esac
4611 else
4612 case `/usr/bin/file conftest.$ac_objext` in
4613 *32-bit*)
4614 LD="${LD-ld} -32"
4615 ;;
4616 *N32*)
4617 LD="${LD-ld} -n32"
4618 ;;
4619 *64-bit*)
4620 LD="${LD-ld} -64"
4621 ;;
4622 esac
4623 fi
4624 fi
4625 rm -rf conftest*
4626 ;;
4627
4628 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4629 # Find out which ABI we are using.
4630 echo 'int i;' > conftest.$ac_ext
4631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4632 (eval $ac_compile) 2>&5
4633 ac_status=$?
4634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635 (exit $ac_status); }; then
4636 case `/usr/bin/file conftest.o` in
4637 *32-bit*)
4638 case $host in
4639 x86_64-*linux*)
4640 LD="${LD-ld} -m elf_i386"
4641 ;;
4642 ppc64-*linux*|powerpc64-*linux*)
4643 LD="${LD-ld} -m elf32ppclinux"
4644 ;;
4645 s390x-*linux*)
4646 LD="${LD-ld} -m elf_s390"
4647 ;;
4648 sparc64-*linux*)
4649 LD="${LD-ld} -m elf32_sparc"
4650 ;;
4651 esac
4652 ;;
4653 *64-bit*)
4654 case $host in
4655 x86_64-*linux*)
4656 LD="${LD-ld} -m elf_x86_64"
4657 ;;
4658 ppc*-*linux*|powerpc*-*linux*)
4659 LD="${LD-ld} -m elf64ppc"
4660 ;;
4661 s390*-*linux*)
4662 LD="${LD-ld} -m elf64_s390"
4663 ;;
4664 sparc*-*linux*)
4665 LD="${LD-ld} -m elf64_sparc"
4666 ;;
4667 esac
4668 ;;
4669 esac
4670 fi
4671 rm -rf conftest*
4672 ;;
4673
4674 *-*-sco3.2v5*)
4675 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4676 SAVE_CFLAGS="$CFLAGS"
4677 CFLAGS="$CFLAGS -belf"
4678 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4679 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4680 if test "${lt_cv_cc_needs_belf+set}" = set; then
4681 echo $ECHO_N "(cached) $ECHO_C" >&6
4682 else
4683 ac_ext=c
4684 ac_cpp='$CPP $CPPFLAGS'
4685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4688
4689 cat >conftest.$ac_ext <<_ACEOF
4690 /* confdefs.h. */
4691 _ACEOF
4692 cat confdefs.h >>conftest.$ac_ext
4693 cat >>conftest.$ac_ext <<_ACEOF
4694 /* end confdefs.h. */
4695
4696 int
4697 main ()
4698 {
4699
4700 ;
4701 return 0;
4702 }
4703 _ACEOF
4704 rm -f conftest.$ac_objext conftest$ac_exeext
4705 if { (ac_try="$ac_link"
4706 case "(($ac_try" in
4707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4708 *) ac_try_echo=$ac_try;;
4709 esac
4710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4711 (eval "$ac_link") 2>conftest.er1
4712 ac_status=$?
4713 grep -v '^ *+' conftest.er1 >conftest.err
4714 rm -f conftest.er1
4715 cat conftest.err >&5
4716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717 (exit $ac_status); } &&
4718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4719 { (case "(($ac_try" in
4720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4721 *) ac_try_echo=$ac_try;;
4722 esac
4723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4724 (eval "$ac_try") 2>&5
4725 ac_status=$?
4726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727 (exit $ac_status); }; } &&
4728 { ac_try='test -s conftest$ac_exeext'
4729 { (case "(($ac_try" in
4730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4731 *) ac_try_echo=$ac_try;;
4732 esac
4733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4734 (eval "$ac_try") 2>&5
4735 ac_status=$?
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); }; }; then
4738 lt_cv_cc_needs_belf=yes
4739 else
4740 echo "$as_me: failed program was:" >&5
4741 sed 's/^/| /' conftest.$ac_ext >&5
4742
4743 lt_cv_cc_needs_belf=no
4744 fi
4745
4746 rm -f core conftest.err conftest.$ac_objext \
4747 conftest$ac_exeext conftest.$ac_ext
4748 ac_ext=c
4749 ac_cpp='$CPP $CPPFLAGS'
4750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4753
4754 fi
4755 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4756 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4757 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4758 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4759 CFLAGS="$SAVE_CFLAGS"
4760 fi
4761 ;;
4762 sparc*-*solaris*)
4763 # Find out which ABI we are using.
4764 echo 'int i;' > conftest.$ac_ext
4765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4766 (eval $ac_compile) 2>&5
4767 ac_status=$?
4768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769 (exit $ac_status); }; then
4770 case `/usr/bin/file conftest.o` in
4771 *64-bit*)
4772 case $lt_cv_prog_gnu_ld in
4773 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4774 *) LD="${LD-ld} -64" ;;
4775 esac
4776 ;;
4777 esac
4778 fi
4779 rm -rf conftest*
4780 ;;
4781
4782
4783 esac
4784
4785 need_locks="$enable_libtool_lock"
4786
4787
4788 ac_ext=c
4789 ac_cpp='$CPP $CPPFLAGS'
4790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4793 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4794 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4795 # On Suns, sometimes $CPP names a directory.
4796 if test -n "$CPP" && test -d "$CPP"; then
4797 CPP=
4798 fi
4799 if test -z "$CPP"; then
4800 if test "${ac_cv_prog_CPP+set}" = set; then
4801 echo $ECHO_N "(cached) $ECHO_C" >&6
4802 else
4803 # Double quotes because CPP needs to be expanded
4804 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4805 do
4806 ac_preproc_ok=false
4807 for ac_c_preproc_warn_flag in '' yes
4808 do
4809 # Use a header file that comes with gcc, so configuring glibc
4810 # with a fresh cross-compiler works.
4811 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4812 # <limits.h> exists even on freestanding compilers.
4813 # On the NeXT, cc -E runs the code through the compiler's parser,
4814 # not just through cpp. "Syntax error" is here to catch this case.
4815 cat >conftest.$ac_ext <<_ACEOF
4816 /* confdefs.h. */
4817 _ACEOF
4818 cat confdefs.h >>conftest.$ac_ext
4819 cat >>conftest.$ac_ext <<_ACEOF
4820 /* end confdefs.h. */
4821 #ifdef __STDC__
4822 # include <limits.h>
4823 #else
4824 # include <assert.h>
4825 #endif
4826 Syntax error
4827 _ACEOF
4828 if { (ac_try="$ac_cpp conftest.$ac_ext"
4829 case "(($ac_try" in
4830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4831 *) ac_try_echo=$ac_try;;
4832 esac
4833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4834 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4835 ac_status=$?
4836 grep -v '^ *+' conftest.er1 >conftest.err
4837 rm -f conftest.er1
4838 cat conftest.err >&5
4839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840 (exit $ac_status); } >/dev/null; then
4841 if test -s conftest.err; then
4842 ac_cpp_err=$ac_c_preproc_warn_flag
4843 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4844 else
4845 ac_cpp_err=
4846 fi
4847 else
4848 ac_cpp_err=yes
4849 fi
4850 if test -z "$ac_cpp_err"; then
4851 :
4852 else
4853 echo "$as_me: failed program was:" >&5
4854 sed 's/^/| /' conftest.$ac_ext >&5
4855
4856 # Broken: fails on valid input.
4857 continue
4858 fi
4859
4860 rm -f conftest.err conftest.$ac_ext
4861
4862 # OK, works on sane cases. Now check whether nonexistent headers
4863 # can be detected and how.
4864 cat >conftest.$ac_ext <<_ACEOF
4865 /* confdefs.h. */
4866 _ACEOF
4867 cat confdefs.h >>conftest.$ac_ext
4868 cat >>conftest.$ac_ext <<_ACEOF
4869 /* end confdefs.h. */
4870 #include <ac_nonexistent.h>
4871 _ACEOF
4872 if { (ac_try="$ac_cpp conftest.$ac_ext"
4873 case "(($ac_try" in
4874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4875 *) ac_try_echo=$ac_try;;
4876 esac
4877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4878 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4879 ac_status=$?
4880 grep -v '^ *+' conftest.er1 >conftest.err
4881 rm -f conftest.er1
4882 cat conftest.err >&5
4883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884 (exit $ac_status); } >/dev/null; then
4885 if test -s conftest.err; then
4886 ac_cpp_err=$ac_c_preproc_warn_flag
4887 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4888 else
4889 ac_cpp_err=
4890 fi
4891 else
4892 ac_cpp_err=yes
4893 fi
4894 if test -z "$ac_cpp_err"; then
4895 # Broken: success on invalid input.
4896 continue
4897 else
4898 echo "$as_me: failed program was:" >&5
4899 sed 's/^/| /' conftest.$ac_ext >&5
4900
4901 # Passes both tests.
4902 ac_preproc_ok=:
4903 break
4904 fi
4905
4906 rm -f conftest.err conftest.$ac_ext
4907
4908 done
4909 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4910 rm -f conftest.err conftest.$ac_ext
4911 if $ac_preproc_ok; then
4912 break
4913 fi
4914
4915 done
4916 ac_cv_prog_CPP=$CPP
4917
4918 fi
4919 CPP=$ac_cv_prog_CPP
4920 else
4921 ac_cv_prog_CPP=$CPP
4922 fi
4923 { echo "$as_me:$LINENO: result: $CPP" >&5
4924 echo "${ECHO_T}$CPP" >&6; }
4925 ac_preproc_ok=false
4926 for ac_c_preproc_warn_flag in '' yes
4927 do
4928 # Use a header file that comes with gcc, so configuring glibc
4929 # with a fresh cross-compiler works.
4930 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4931 # <limits.h> exists even on freestanding compilers.
4932 # On the NeXT, cc -E runs the code through the compiler's parser,
4933 # not just through cpp. "Syntax error" is here to catch this case.
4934 cat >conftest.$ac_ext <<_ACEOF
4935 /* confdefs.h. */
4936 _ACEOF
4937 cat confdefs.h >>conftest.$ac_ext
4938 cat >>conftest.$ac_ext <<_ACEOF
4939 /* end confdefs.h. */
4940 #ifdef __STDC__
4941 # include <limits.h>
4942 #else
4943 # include <assert.h>
4944 #endif
4945 Syntax error
4946 _ACEOF
4947 if { (ac_try="$ac_cpp conftest.$ac_ext"
4948 case "(($ac_try" in
4949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4950 *) ac_try_echo=$ac_try;;
4951 esac
4952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4953 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4954 ac_status=$?
4955 grep -v '^ *+' conftest.er1 >conftest.err
4956 rm -f conftest.er1
4957 cat conftest.err >&5
4958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959 (exit $ac_status); } >/dev/null; then
4960 if test -s conftest.err; then
4961 ac_cpp_err=$ac_c_preproc_warn_flag
4962 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4963 else
4964 ac_cpp_err=
4965 fi
4966 else
4967 ac_cpp_err=yes
4968 fi
4969 if test -z "$ac_cpp_err"; then
4970 :
4971 else
4972 echo "$as_me: failed program was:" >&5
4973 sed 's/^/| /' conftest.$ac_ext >&5
4974
4975 # Broken: fails on valid input.
4976 continue
4977 fi
4978
4979 rm -f conftest.err conftest.$ac_ext
4980
4981 # OK, works on sane cases. Now check whether nonexistent headers
4982 # can be detected and how.
4983 cat >conftest.$ac_ext <<_ACEOF
4984 /* confdefs.h. */
4985 _ACEOF
4986 cat confdefs.h >>conftest.$ac_ext
4987 cat >>conftest.$ac_ext <<_ACEOF
4988 /* end confdefs.h. */
4989 #include <ac_nonexistent.h>
4990 _ACEOF
4991 if { (ac_try="$ac_cpp conftest.$ac_ext"
4992 case "(($ac_try" in
4993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4994 *) ac_try_echo=$ac_try;;
4995 esac
4996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4997 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4998 ac_status=$?
4999 grep -v '^ *+' conftest.er1 >conftest.err
5000 rm -f conftest.er1
5001 cat conftest.err >&5
5002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003 (exit $ac_status); } >/dev/null; then
5004 if test -s conftest.err; then
5005 ac_cpp_err=$ac_c_preproc_warn_flag
5006 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5007 else
5008 ac_cpp_err=
5009 fi
5010 else
5011 ac_cpp_err=yes
5012 fi
5013 if test -z "$ac_cpp_err"; then
5014 # Broken: success on invalid input.
5015 continue
5016 else
5017 echo "$as_me: failed program was:" >&5
5018 sed 's/^/| /' conftest.$ac_ext >&5
5019
5020 # Passes both tests.
5021 ac_preproc_ok=:
5022 break
5023 fi
5024
5025 rm -f conftest.err conftest.$ac_ext
5026
5027 done
5028 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5029 rm -f conftest.err conftest.$ac_ext
5030 if $ac_preproc_ok; then
5031 :
5032 else
5033 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5034 See \`config.log' for more details." >&5
5035 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5036 See \`config.log' for more details." >&2;}
5037 { (exit 1); exit 1; }; }
5038 fi
5039
5040 ac_ext=c
5041 ac_cpp='$CPP $CPPFLAGS'
5042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5045
5046
5047 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5048 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5049 if test "${ac_cv_header_stdc+set}" = set; then
5050 echo $ECHO_N "(cached) $ECHO_C" >&6
5051 else
5052 cat >conftest.$ac_ext <<_ACEOF
5053 /* confdefs.h. */
5054 _ACEOF
5055 cat confdefs.h >>conftest.$ac_ext
5056 cat >>conftest.$ac_ext <<_ACEOF
5057 /* end confdefs.h. */
5058 #include <stdlib.h>
5059 #include <stdarg.h>
5060 #include <string.h>
5061 #include <float.h>
5062
5063 int
5064 main ()
5065 {
5066
5067 ;
5068 return 0;
5069 }
5070 _ACEOF
5071 rm -f conftest.$ac_objext
5072 if { (ac_try="$ac_compile"
5073 case "(($ac_try" in
5074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5075 *) ac_try_echo=$ac_try;;
5076 esac
5077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5078 (eval "$ac_compile") 2>conftest.er1
5079 ac_status=$?
5080 grep -v '^ *+' conftest.er1 >conftest.err
5081 rm -f conftest.er1
5082 cat conftest.err >&5
5083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084 (exit $ac_status); } &&
5085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5086 { (case "(($ac_try" in
5087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5088 *) ac_try_echo=$ac_try;;
5089 esac
5090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5091 (eval "$ac_try") 2>&5
5092 ac_status=$?
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); }; } &&
5095 { ac_try='test -s conftest.$ac_objext'
5096 { (case "(($ac_try" in
5097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5098 *) ac_try_echo=$ac_try;;
5099 esac
5100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5101 (eval "$ac_try") 2>&5
5102 ac_status=$?
5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); }; }; then
5105 ac_cv_header_stdc=yes
5106 else
5107 echo "$as_me: failed program was:" >&5
5108 sed 's/^/| /' conftest.$ac_ext >&5
5109
5110 ac_cv_header_stdc=no
5111 fi
5112
5113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5114
5115 if test $ac_cv_header_stdc = yes; then
5116 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5117 cat >conftest.$ac_ext <<_ACEOF
5118 /* confdefs.h. */
5119 _ACEOF
5120 cat confdefs.h >>conftest.$ac_ext
5121 cat >>conftest.$ac_ext <<_ACEOF
5122 /* end confdefs.h. */
5123 #include <string.h>
5124
5125 _ACEOF
5126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5127 $EGREP "memchr" >/dev/null 2>&1; then
5128 :
5129 else
5130 ac_cv_header_stdc=no
5131 fi
5132 rm -f conftest*
5133
5134 fi
5135
5136 if test $ac_cv_header_stdc = yes; then
5137 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5138 cat >conftest.$ac_ext <<_ACEOF
5139 /* confdefs.h. */
5140 _ACEOF
5141 cat confdefs.h >>conftest.$ac_ext
5142 cat >>conftest.$ac_ext <<_ACEOF
5143 /* end confdefs.h. */
5144 #include <stdlib.h>
5145
5146 _ACEOF
5147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5148 $EGREP "free" >/dev/null 2>&1; then
5149 :
5150 else
5151 ac_cv_header_stdc=no
5152 fi
5153 rm -f conftest*
5154
5155 fi
5156
5157 if test $ac_cv_header_stdc = yes; then
5158 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5159 if test "$cross_compiling" = yes; then
5160 :
5161 else
5162 cat >conftest.$ac_ext <<_ACEOF
5163 /* confdefs.h. */
5164 _ACEOF
5165 cat confdefs.h >>conftest.$ac_ext
5166 cat >>conftest.$ac_ext <<_ACEOF
5167 /* end confdefs.h. */
5168 #include <ctype.h>
5169 #include <stdlib.h>
5170 #if ((' ' & 0x0FF) == 0x020)
5171 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5172 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5173 #else
5174 # define ISLOWER(c) \
5175 (('a' <= (c) && (c) <= 'i') \
5176 || ('j' <= (c) && (c) <= 'r') \
5177 || ('s' <= (c) && (c) <= 'z'))
5178 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5179 #endif
5180
5181 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5182 int
5183 main ()
5184 {
5185 int i;
5186 for (i = 0; i < 256; i++)
5187 if (XOR (islower (i), ISLOWER (i))
5188 || toupper (i) != TOUPPER (i))
5189 return 2;
5190 return 0;
5191 }
5192 _ACEOF
5193 rm -f conftest$ac_exeext
5194 if { (ac_try="$ac_link"
5195 case "(($ac_try" in
5196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5197 *) ac_try_echo=$ac_try;;
5198 esac
5199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5200 (eval "$ac_link") 2>&5
5201 ac_status=$?
5202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5204 { (case "(($ac_try" in
5205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5206 *) ac_try_echo=$ac_try;;
5207 esac
5208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5209 (eval "$ac_try") 2>&5
5210 ac_status=$?
5211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212 (exit $ac_status); }; }; then
5213 :
5214 else
5215 echo "$as_me: program exited with status $ac_status" >&5
5216 echo "$as_me: failed program was:" >&5
5217 sed 's/^/| /' conftest.$ac_ext >&5
5218
5219 ( exit $ac_status )
5220 ac_cv_header_stdc=no
5221 fi
5222 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5223 fi
5224
5225
5226 fi
5227 fi
5228 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5229 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5230 if test $ac_cv_header_stdc = yes; then
5231
5232 cat >>confdefs.h <<\_ACEOF
5233 #define STDC_HEADERS 1
5234 _ACEOF
5235
5236 fi
5237
5238 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5249 inttypes.h stdint.h unistd.h
5250 do
5251 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5252 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5255 echo $ECHO_N "(cached) $ECHO_C" >&6
5256 else
5257 cat >conftest.$ac_ext <<_ACEOF
5258 /* confdefs.h. */
5259 _ACEOF
5260 cat confdefs.h >>conftest.$ac_ext
5261 cat >>conftest.$ac_ext <<_ACEOF
5262 /* end confdefs.h. */
5263 $ac_includes_default
5264
5265 #include <$ac_header>
5266 _ACEOF
5267 rm -f conftest.$ac_objext
5268 if { (ac_try="$ac_compile"
5269 case "(($ac_try" in
5270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5271 *) ac_try_echo=$ac_try;;
5272 esac
5273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5274 (eval "$ac_compile") 2>conftest.er1
5275 ac_status=$?
5276 grep -v '^ *+' conftest.er1 >conftest.err
5277 rm -f conftest.er1
5278 cat conftest.err >&5
5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280 (exit $ac_status); } &&
5281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5282 { (case "(($ac_try" in
5283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5284 *) ac_try_echo=$ac_try;;
5285 esac
5286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5287 (eval "$ac_try") 2>&5
5288 ac_status=$?
5289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290 (exit $ac_status); }; } &&
5291 { ac_try='test -s conftest.$ac_objext'
5292 { (case "(($ac_try" in
5293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5294 *) ac_try_echo=$ac_try;;
5295 esac
5296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5297 (eval "$ac_try") 2>&5
5298 ac_status=$?
5299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300 (exit $ac_status); }; }; then
5301 eval "$as_ac_Header=yes"
5302 else
5303 echo "$as_me: failed program was:" >&5
5304 sed 's/^/| /' conftest.$ac_ext >&5
5305
5306 eval "$as_ac_Header=no"
5307 fi
5308
5309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5310 fi
5311 ac_res=`eval echo '${'$as_ac_Header'}'`
5312 { echo "$as_me:$LINENO: result: $ac_res" >&5
5313 echo "${ECHO_T}$ac_res" >&6; }
5314 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5315 cat >>confdefs.h <<_ACEOF
5316 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5317 _ACEOF
5318
5319 fi
5320
5321 done
5322
5323
5324
5325 for ac_header in dlfcn.h
5326 do
5327 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5329 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5332 echo $ECHO_N "(cached) $ECHO_C" >&6
5333 fi
5334 ac_res=`eval echo '${'$as_ac_Header'}'`
5335 { echo "$as_me:$LINENO: result: $ac_res" >&5
5336 echo "${ECHO_T}$ac_res" >&6; }
5337 else
5338 # Is the header compilable?
5339 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5340 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5341 cat >conftest.$ac_ext <<_ACEOF
5342 /* confdefs.h. */
5343 _ACEOF
5344 cat confdefs.h >>conftest.$ac_ext
5345 cat >>conftest.$ac_ext <<_ACEOF
5346 /* end confdefs.h. */
5347 $ac_includes_default
5348 #include <$ac_header>
5349 _ACEOF
5350 rm -f conftest.$ac_objext
5351 if { (ac_try="$ac_compile"
5352 case "(($ac_try" in
5353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5354 *) ac_try_echo=$ac_try;;
5355 esac
5356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5357 (eval "$ac_compile") 2>conftest.er1
5358 ac_status=$?
5359 grep -v '^ *+' conftest.er1 >conftest.err
5360 rm -f conftest.er1
5361 cat conftest.err >&5
5362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363 (exit $ac_status); } &&
5364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5365 { (case "(($ac_try" in
5366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5367 *) ac_try_echo=$ac_try;;
5368 esac
5369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5370 (eval "$ac_try") 2>&5
5371 ac_status=$?
5372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); }; } &&
5374 { ac_try='test -s conftest.$ac_objext'
5375 { (case "(($ac_try" in
5376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5377 *) ac_try_echo=$ac_try;;
5378 esac
5379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5380 (eval "$ac_try") 2>&5
5381 ac_status=$?
5382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383 (exit $ac_status); }; }; then
5384 ac_header_compiler=yes
5385 else
5386 echo "$as_me: failed program was:" >&5
5387 sed 's/^/| /' conftest.$ac_ext >&5
5388
5389 ac_header_compiler=no
5390 fi
5391
5392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5393 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5394 echo "${ECHO_T}$ac_header_compiler" >&6; }
5395
5396 # Is the header present?
5397 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5398 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5399 cat >conftest.$ac_ext <<_ACEOF
5400 /* confdefs.h. */
5401 _ACEOF
5402 cat confdefs.h >>conftest.$ac_ext
5403 cat >>conftest.$ac_ext <<_ACEOF
5404 /* end confdefs.h. */
5405 #include <$ac_header>
5406 _ACEOF
5407 if { (ac_try="$ac_cpp conftest.$ac_ext"
5408 case "(($ac_try" in
5409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5410 *) ac_try_echo=$ac_try;;
5411 esac
5412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5413 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5414 ac_status=$?
5415 grep -v '^ *+' conftest.er1 >conftest.err
5416 rm -f conftest.er1
5417 cat conftest.err >&5
5418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419 (exit $ac_status); } >/dev/null; then
5420 if test -s conftest.err; then
5421 ac_cpp_err=$ac_c_preproc_warn_flag
5422 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5423 else
5424 ac_cpp_err=
5425 fi
5426 else
5427 ac_cpp_err=yes
5428 fi
5429 if test -z "$ac_cpp_err"; then
5430 ac_header_preproc=yes
5431 else
5432 echo "$as_me: failed program was:" >&5
5433 sed 's/^/| /' conftest.$ac_ext >&5
5434
5435 ac_header_preproc=no
5436 fi
5437
5438 rm -f conftest.err conftest.$ac_ext
5439 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5440 echo "${ECHO_T}$ac_header_preproc" >&6; }
5441
5442 # So? What about this header?
5443 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5444 yes:no: )
5445 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5446 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5448 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5449 ac_header_preproc=yes
5450 ;;
5451 no:yes:* )
5452 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5453 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5454 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5455 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5456 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5457 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5458 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5459 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5460 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5461 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5462 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5463 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5464
5465 ;;
5466 esac
5467 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5469 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5470 echo $ECHO_N "(cached) $ECHO_C" >&6
5471 else
5472 eval "$as_ac_Header=\$ac_header_preproc"
5473 fi
5474 ac_res=`eval echo '${'$as_ac_Header'}'`
5475 { echo "$as_me:$LINENO: result: $ac_res" >&5
5476 echo "${ECHO_T}$ac_res" >&6; }
5477
5478 fi
5479 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5480 cat >>confdefs.h <<_ACEOF
5481 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5482 _ACEOF
5483
5484 fi
5485
5486 done
5487
5488 ac_ext=cpp
5489 ac_cpp='$CXXCPP $CPPFLAGS'
5490 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5491 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5492 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5493 if test -z "$CXX"; then
5494 if test -n "$CCC"; then
5495 CXX=$CCC
5496 else
5497 if test -n "$ac_tool_prefix"; then
5498 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5499 do
5500 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5501 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5502 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5504 if test "${ac_cv_prog_CXX+set}" = set; then
5505 echo $ECHO_N "(cached) $ECHO_C" >&6
5506 else
5507 if test -n "$CXX"; then
5508 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5509 else
5510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5511 for as_dir in $PATH
5512 do
5513 IFS=$as_save_IFS
5514 test -z "$as_dir" && as_dir=.
5515 for ac_exec_ext in '' $ac_executable_extensions; do
5516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5517 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5519 break 2
5520 fi
5521 done
5522 done
5523 IFS=$as_save_IFS
5524
5525 fi
5526 fi
5527 CXX=$ac_cv_prog_CXX
5528 if test -n "$CXX"; then
5529 { echo "$as_me:$LINENO: result: $CXX" >&5
5530 echo "${ECHO_T}$CXX" >&6; }
5531 else
5532 { echo "$as_me:$LINENO: result: no" >&5
5533 echo "${ECHO_T}no" >&6; }
5534 fi
5535
5536
5537 test -n "$CXX" && break
5538 done
5539 fi
5540 if test -z "$CXX"; then
5541 ac_ct_CXX=$CXX
5542 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5543 do
5544 # Extract the first word of "$ac_prog", so it can be a program name with args.
5545 set dummy $ac_prog; ac_word=$2
5546 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5548 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5549 echo $ECHO_N "(cached) $ECHO_C" >&6
5550 else
5551 if test -n "$ac_ct_CXX"; then
5552 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5553 else
5554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5555 for as_dir in $PATH
5556 do
5557 IFS=$as_save_IFS
5558 test -z "$as_dir" && as_dir=.
5559 for ac_exec_ext in '' $ac_executable_extensions; do
5560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5561 ac_cv_prog_ac_ct_CXX="$ac_prog"
5562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5563 break 2
5564 fi
5565 done
5566 done
5567 IFS=$as_save_IFS
5568
5569 fi
5570 fi
5571 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5572 if test -n "$ac_ct_CXX"; then
5573 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5574 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5575 else
5576 { echo "$as_me:$LINENO: result: no" >&5
5577 echo "${ECHO_T}no" >&6; }
5578 fi
5579
5580
5581 test -n "$ac_ct_CXX" && break
5582 done
5583
5584 if test "x$ac_ct_CXX" = x; then
5585 CXX="g++"
5586 else
5587 case $cross_compiling:$ac_tool_warned in
5588 yes:)
5589 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5590 whose name does not start with the host triplet. If you think this
5591 configuration is useful to you, please write to [email protected]." >&5
5592 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5593 whose name does not start with the host triplet. If you think this
5594 configuration is useful to you, please write to [email protected]." >&2;}
5595 ac_tool_warned=yes ;;
5596 esac
5597 CXX=$ac_ct_CXX
5598 fi
5599 fi
5600
5601 fi
5602 fi
5603 # Provide some information about the compiler.
5604 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5605 ac_compiler=`set X $ac_compile; echo $2`
5606 { (ac_try="$ac_compiler --version >&5"
5607 case "(($ac_try" in
5608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5609 *) ac_try_echo=$ac_try;;
5610 esac
5611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5612 (eval "$ac_compiler --version >&5") 2>&5
5613 ac_status=$?
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); }
5616 { (ac_try="$ac_compiler -v >&5"
5617 case "(($ac_try" in
5618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5619 *) ac_try_echo=$ac_try;;
5620 esac
5621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5622 (eval "$ac_compiler -v >&5") 2>&5
5623 ac_status=$?
5624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625 (exit $ac_status); }
5626 { (ac_try="$ac_compiler -V >&5"
5627 case "(($ac_try" in
5628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5629 *) ac_try_echo=$ac_try;;
5630 esac
5631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5632 (eval "$ac_compiler -V >&5") 2>&5
5633 ac_status=$?
5634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635 (exit $ac_status); }
5636
5637 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5638 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5639 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5640 echo $ECHO_N "(cached) $ECHO_C" >&6
5641 else
5642 cat >conftest.$ac_ext <<_ACEOF
5643 /* confdefs.h. */
5644 _ACEOF
5645 cat confdefs.h >>conftest.$ac_ext
5646 cat >>conftest.$ac_ext <<_ACEOF
5647 /* end confdefs.h. */
5648
5649 int
5650 main ()
5651 {
5652 #ifndef __GNUC__
5653 choke me
5654 #endif
5655
5656 ;
5657 return 0;
5658 }
5659 _ACEOF
5660 rm -f conftest.$ac_objext
5661 if { (ac_try="$ac_compile"
5662 case "(($ac_try" in
5663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5664 *) ac_try_echo=$ac_try;;
5665 esac
5666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5667 (eval "$ac_compile") 2>conftest.er1
5668 ac_status=$?
5669 grep -v '^ *+' conftest.er1 >conftest.err
5670 rm -f conftest.er1
5671 cat conftest.err >&5
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); } &&
5674 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5675 { (case "(($ac_try" in
5676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5677 *) ac_try_echo=$ac_try;;
5678 esac
5679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5680 (eval "$ac_try") 2>&5
5681 ac_status=$?
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); }; } &&
5684 { ac_try='test -s conftest.$ac_objext'
5685 { (case "(($ac_try" in
5686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5687 *) ac_try_echo=$ac_try;;
5688 esac
5689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5690 (eval "$ac_try") 2>&5
5691 ac_status=$?
5692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693 (exit $ac_status); }; }; then
5694 ac_compiler_gnu=yes
5695 else
5696 echo "$as_me: failed program was:" >&5
5697 sed 's/^/| /' conftest.$ac_ext >&5
5698
5699 ac_compiler_gnu=no
5700 fi
5701
5702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5703 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5704
5705 fi
5706 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5707 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5708 GXX=`test $ac_compiler_gnu = yes && echo yes`
5709 ac_test_CXXFLAGS=${CXXFLAGS+set}
5710 ac_save_CXXFLAGS=$CXXFLAGS
5711 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5712 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5713 if test "${ac_cv_prog_cxx_g+set}" = set; then
5714 echo $ECHO_N "(cached) $ECHO_C" >&6
5715 else
5716 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5717 ac_cxx_werror_flag=yes
5718 ac_cv_prog_cxx_g=no
5719 CXXFLAGS="-g"
5720 cat >conftest.$ac_ext <<_ACEOF
5721 /* confdefs.h. */
5722 _ACEOF
5723 cat confdefs.h >>conftest.$ac_ext
5724 cat >>conftest.$ac_ext <<_ACEOF
5725 /* end confdefs.h. */
5726
5727 int
5728 main ()
5729 {
5730
5731 ;
5732 return 0;
5733 }
5734 _ACEOF
5735 rm -f conftest.$ac_objext
5736 if { (ac_try="$ac_compile"
5737 case "(($ac_try" in
5738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5739 *) ac_try_echo=$ac_try;;
5740 esac
5741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5742 (eval "$ac_compile") 2>conftest.er1
5743 ac_status=$?
5744 grep -v '^ *+' conftest.er1 >conftest.err
5745 rm -f conftest.er1
5746 cat conftest.err >&5
5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); } &&
5749 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5750 { (case "(($ac_try" in
5751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5752 *) ac_try_echo=$ac_try;;
5753 esac
5754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5755 (eval "$ac_try") 2>&5
5756 ac_status=$?
5757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758 (exit $ac_status); }; } &&
5759 { ac_try='test -s conftest.$ac_objext'
5760 { (case "(($ac_try" in
5761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5762 *) ac_try_echo=$ac_try;;
5763 esac
5764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5765 (eval "$ac_try") 2>&5
5766 ac_status=$?
5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768 (exit $ac_status); }; }; then
5769 ac_cv_prog_cxx_g=yes
5770 else
5771 echo "$as_me: failed program was:" >&5
5772 sed 's/^/| /' conftest.$ac_ext >&5
5773
5774 CXXFLAGS=""
5775 cat >conftest.$ac_ext <<_ACEOF
5776 /* confdefs.h. */
5777 _ACEOF
5778 cat confdefs.h >>conftest.$ac_ext
5779 cat >>conftest.$ac_ext <<_ACEOF
5780 /* end confdefs.h. */
5781
5782 int
5783 main ()
5784 {
5785
5786 ;
5787 return 0;
5788 }
5789 _ACEOF
5790 rm -f conftest.$ac_objext
5791 if { (ac_try="$ac_compile"
5792 case "(($ac_try" in
5793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5794 *) ac_try_echo=$ac_try;;
5795 esac
5796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5797 (eval "$ac_compile") 2>conftest.er1
5798 ac_status=$?
5799 grep -v '^ *+' conftest.er1 >conftest.err
5800 rm -f conftest.er1
5801 cat conftest.err >&5
5802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803 (exit $ac_status); } &&
5804 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5805 { (case "(($ac_try" in
5806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5807 *) ac_try_echo=$ac_try;;
5808 esac
5809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5810 (eval "$ac_try") 2>&5
5811 ac_status=$?
5812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813 (exit $ac_status); }; } &&
5814 { ac_try='test -s conftest.$ac_objext'
5815 { (case "(($ac_try" in
5816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5817 *) ac_try_echo=$ac_try;;
5818 esac
5819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5820 (eval "$ac_try") 2>&5
5821 ac_status=$?
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); }; }; then
5824 :
5825 else
5826 echo "$as_me: failed program was:" >&5
5827 sed 's/^/| /' conftest.$ac_ext >&5
5828
5829 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5830 CXXFLAGS="-g"
5831 cat >conftest.$ac_ext <<_ACEOF
5832 /* confdefs.h. */
5833 _ACEOF
5834 cat confdefs.h >>conftest.$ac_ext
5835 cat >>conftest.$ac_ext <<_ACEOF
5836 /* end confdefs.h. */
5837
5838 int
5839 main ()
5840 {
5841
5842 ;
5843 return 0;
5844 }
5845 _ACEOF
5846 rm -f conftest.$ac_objext
5847 if { (ac_try="$ac_compile"
5848 case "(($ac_try" in
5849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5850 *) ac_try_echo=$ac_try;;
5851 esac
5852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5853 (eval "$ac_compile") 2>conftest.er1
5854 ac_status=$?
5855 grep -v '^ *+' conftest.er1 >conftest.err
5856 rm -f conftest.er1
5857 cat conftest.err >&5
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); } &&
5860 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5861 { (case "(($ac_try" in
5862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5863 *) ac_try_echo=$ac_try;;
5864 esac
5865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5866 (eval "$ac_try") 2>&5
5867 ac_status=$?
5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869 (exit $ac_status); }; } &&
5870 { ac_try='test -s conftest.$ac_objext'
5871 { (case "(($ac_try" in
5872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5873 *) ac_try_echo=$ac_try;;
5874 esac
5875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5876 (eval "$ac_try") 2>&5
5877 ac_status=$?
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); }; }; then
5880 ac_cv_prog_cxx_g=yes
5881 else
5882 echo "$as_me: failed program was:" >&5
5883 sed 's/^/| /' conftest.$ac_ext >&5
5884
5885
5886 fi
5887
5888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5889 fi
5890
5891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5892 fi
5893
5894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5895 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5896 fi
5897 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5898 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5899 if test "$ac_test_CXXFLAGS" = set; then
5900 CXXFLAGS=$ac_save_CXXFLAGS
5901 elif test $ac_cv_prog_cxx_g = yes; then
5902 if test "$GXX" = yes; then
5903 CXXFLAGS="-g -O2"
5904 else
5905 CXXFLAGS="-g"
5906 fi
5907 else
5908 if test "$GXX" = yes; then
5909 CXXFLAGS="-O2"
5910 else
5911 CXXFLAGS=
5912 fi
5913 fi
5914 ac_ext=cpp
5915 ac_cpp='$CXXCPP $CPPFLAGS'
5916 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5917 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5918 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5919
5920 depcc="$CXX" am_compiler_list=
5921
5922 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5923 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5924 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5925 echo $ECHO_N "(cached) $ECHO_C" >&6
5926 else
5927 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5928 # We make a subdir and do the tests there. Otherwise we can end up
5929 # making bogus files that we don't know about and never remove. For
5930 # instance it was reported that on HP-UX the gcc test will end up
5931 # making a dummy file named `D' -- because `-MD' means `put the output
5932 # in D'.
5933 mkdir conftest.dir
5934 # Copy depcomp to subdir because otherwise we won't find it if we're
5935 # using a relative directory.
5936 cp "$am_depcomp" conftest.dir
5937 cd conftest.dir
5938 # We will build objects and dependencies in a subdirectory because
5939 # it helps to detect inapplicable dependency modes. For instance
5940 # both Tru64's cc and ICC support -MD to output dependencies as a
5941 # side effect of compilation, but ICC will put the dependencies in
5942 # the current directory while Tru64 will put them in the object
5943 # directory.
5944 mkdir sub
5945
5946 am_cv_CXX_dependencies_compiler_type=none
5947 if test "$am_compiler_list" = ""; then
5948 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5949 fi
5950 for depmode in $am_compiler_list; do
5951 # Setup a source with many dependencies, because some compilers
5952 # like to wrap large dependency lists on column 80 (with \), and
5953 # we should not choose a depcomp mode which is confused by this.
5954 #
5955 # We need to recreate these files for each test, as the compiler may
5956 # overwrite some of them when testing with obscure command lines.
5957 # This happens at least with the AIX C compiler.
5958 : > sub/conftest.c
5959 for i in 1 2 3 4 5 6; do
5960 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5961 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5962 # Solaris 8's {/usr,}/bin/sh.
5963 touch sub/conftst$i.h
5964 done
5965 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5966
5967 case $depmode in
5968 nosideeffect)
5969 # after this tag, mechanisms are not by side-effect, so they'll
5970 # only be used when explicitly requested
5971 if test "x$enable_dependency_tracking" = xyes; then
5972 continue
5973 else
5974 break
5975 fi
5976 ;;
5977 none) break ;;
5978 esac
5979 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5980 # mode. It turns out that the SunPro C++ compiler does not properly
5981 # handle `-M -o', and we need to detect this.
5982 if depmode=$depmode \
5983 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5984 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5985 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5986 >/dev/null 2>conftest.err &&
5987 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5988 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5989 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5990 # icc doesn't choke on unknown options, it will just issue warnings
5991 # or remarks (even with -Werror). So we grep stderr for any message
5992 # that says an option was ignored or not supported.
5993 # When given -MP, icc 7.0 and 7.1 complain thusly:
5994 # icc: Command line warning: ignoring option '-M'; no argument required
5995 # The diagnosis changed in icc 8.0:
5996 # icc: Command line remark: option '-MP' not supported
5997 if (grep 'ignoring option' conftest.err ||
5998 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5999 am_cv_CXX_dependencies_compiler_type=$depmode
6000 break
6001 fi
6002 fi
6003 done
6004
6005 cd ..
6006 rm -rf conftest.dir
6007 else
6008 am_cv_CXX_dependencies_compiler_type=none
6009 fi
6010
6011 fi
6012 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6013 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6014 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6015
6016
6017
6018 if
6019 test "x$enable_dependency_tracking" != xno \
6020 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6021 am__fastdepCXX_TRUE=
6022 am__fastdepCXX_FALSE='#'
6023 else
6024 am__fastdepCXX_TRUE='#'
6025 am__fastdepCXX_FALSE=
6026 fi
6027
6028
6029
6030
6031 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6032 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6033 (test "X$CXX" != "Xg++"))) ; then
6034 ac_ext=cpp
6035 ac_cpp='$CXXCPP $CPPFLAGS'
6036 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6037 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6038 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6039 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6040 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6041 if test -z "$CXXCPP"; then
6042 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6043 echo $ECHO_N "(cached) $ECHO_C" >&6
6044 else
6045 # Double quotes because CXXCPP needs to be expanded
6046 for CXXCPP in "$CXX -E" "/lib/cpp"
6047 do
6048 ac_preproc_ok=false
6049 for ac_cxx_preproc_warn_flag in '' yes
6050 do
6051 # Use a header file that comes with gcc, so configuring glibc
6052 # with a fresh cross-compiler works.
6053 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6054 # <limits.h> exists even on freestanding compilers.
6055 # On the NeXT, cc -E runs the code through the compiler's parser,
6056 # not just through cpp. "Syntax error" is here to catch this case.
6057 cat >conftest.$ac_ext <<_ACEOF
6058 /* confdefs.h. */
6059 _ACEOF
6060 cat confdefs.h >>conftest.$ac_ext
6061 cat >>conftest.$ac_ext <<_ACEOF
6062 /* end confdefs.h. */
6063 #ifdef __STDC__
6064 # include <limits.h>
6065 #else
6066 # include <assert.h>
6067 #endif
6068 Syntax error
6069 _ACEOF
6070 if { (ac_try="$ac_cpp conftest.$ac_ext"
6071 case "(($ac_try" in
6072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6073 *) ac_try_echo=$ac_try;;
6074 esac
6075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6076 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6077 ac_status=$?
6078 grep -v '^ *+' conftest.er1 >conftest.err
6079 rm -f conftest.er1
6080 cat conftest.err >&5
6081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082 (exit $ac_status); } >/dev/null; then
6083 if test -s conftest.err; then
6084 ac_cpp_err=$ac_cxx_preproc_warn_flag
6085 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6086 else
6087 ac_cpp_err=
6088 fi
6089 else
6090 ac_cpp_err=yes
6091 fi
6092 if test -z "$ac_cpp_err"; then
6093 :
6094 else
6095 echo "$as_me: failed program was:" >&5
6096 sed 's/^/| /' conftest.$ac_ext >&5
6097
6098 # Broken: fails on valid input.
6099 continue
6100 fi
6101
6102 rm -f conftest.err conftest.$ac_ext
6103
6104 # OK, works on sane cases. Now check whether nonexistent headers
6105 # can be detected and how.
6106 cat >conftest.$ac_ext <<_ACEOF
6107 /* confdefs.h. */
6108 _ACEOF
6109 cat confdefs.h >>conftest.$ac_ext
6110 cat >>conftest.$ac_ext <<_ACEOF
6111 /* end confdefs.h. */
6112 #include <ac_nonexistent.h>
6113 _ACEOF
6114 if { (ac_try="$ac_cpp conftest.$ac_ext"
6115 case "(($ac_try" in
6116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6117 *) ac_try_echo=$ac_try;;
6118 esac
6119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6120 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6121 ac_status=$?
6122 grep -v '^ *+' conftest.er1 >conftest.err
6123 rm -f conftest.er1
6124 cat conftest.err >&5
6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126 (exit $ac_status); } >/dev/null; then
6127 if test -s conftest.err; then
6128 ac_cpp_err=$ac_cxx_preproc_warn_flag
6129 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6130 else
6131 ac_cpp_err=
6132 fi
6133 else
6134 ac_cpp_err=yes
6135 fi
6136 if test -z "$ac_cpp_err"; then
6137 # Broken: success on invalid input.
6138 continue
6139 else
6140 echo "$as_me: failed program was:" >&5
6141 sed 's/^/| /' conftest.$ac_ext >&5
6142
6143 # Passes both tests.
6144 ac_preproc_ok=:
6145 break
6146 fi
6147
6148 rm -f conftest.err conftest.$ac_ext
6149
6150 done
6151 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6152 rm -f conftest.err conftest.$ac_ext
6153 if $ac_preproc_ok; then
6154 break
6155 fi
6156
6157 done
6158 ac_cv_prog_CXXCPP=$CXXCPP
6159
6160 fi
6161 CXXCPP=$ac_cv_prog_CXXCPP
6162 else
6163 ac_cv_prog_CXXCPP=$CXXCPP
6164 fi
6165 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6166 echo "${ECHO_T}$CXXCPP" >&6; }
6167 ac_preproc_ok=false
6168 for ac_cxx_preproc_warn_flag in '' yes
6169 do
6170 # Use a header file that comes with gcc, so configuring glibc
6171 # with a fresh cross-compiler works.
6172 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6173 # <limits.h> exists even on freestanding compilers.
6174 # On the NeXT, cc -E runs the code through the compiler's parser,
6175 # not just through cpp. "Syntax error" is here to catch this case.
6176 cat >conftest.$ac_ext <<_ACEOF
6177 /* confdefs.h. */
6178 _ACEOF
6179 cat confdefs.h >>conftest.$ac_ext
6180 cat >>conftest.$ac_ext <<_ACEOF
6181 /* end confdefs.h. */
6182 #ifdef __STDC__
6183 # include <limits.h>
6184 #else
6185 # include <assert.h>
6186 #endif
6187 Syntax error
6188 _ACEOF
6189 if { (ac_try="$ac_cpp conftest.$ac_ext"
6190 case "(($ac_try" in
6191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6192 *) ac_try_echo=$ac_try;;
6193 esac
6194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6195 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6196 ac_status=$?
6197 grep -v '^ *+' conftest.er1 >conftest.err
6198 rm -f conftest.er1
6199 cat conftest.err >&5
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); } >/dev/null; then
6202 if test -s conftest.err; then
6203 ac_cpp_err=$ac_cxx_preproc_warn_flag
6204 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6205 else
6206 ac_cpp_err=
6207 fi
6208 else
6209 ac_cpp_err=yes
6210 fi
6211 if test -z "$ac_cpp_err"; then
6212 :
6213 else
6214 echo "$as_me: failed program was:" >&5
6215 sed 's/^/| /' conftest.$ac_ext >&5
6216
6217 # Broken: fails on valid input.
6218 continue
6219 fi
6220
6221 rm -f conftest.err conftest.$ac_ext
6222
6223 # OK, works on sane cases. Now check whether nonexistent headers
6224 # can be detected and how.
6225 cat >conftest.$ac_ext <<_ACEOF
6226 /* confdefs.h. */
6227 _ACEOF
6228 cat confdefs.h >>conftest.$ac_ext
6229 cat >>conftest.$ac_ext <<_ACEOF
6230 /* end confdefs.h. */
6231 #include <ac_nonexistent.h>
6232 _ACEOF
6233 if { (ac_try="$ac_cpp conftest.$ac_ext"
6234 case "(($ac_try" in
6235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6236 *) ac_try_echo=$ac_try;;
6237 esac
6238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6239 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6240 ac_status=$?
6241 grep -v '^ *+' conftest.er1 >conftest.err
6242 rm -f conftest.er1
6243 cat conftest.err >&5
6244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245 (exit $ac_status); } >/dev/null; then
6246 if test -s conftest.err; then
6247 ac_cpp_err=$ac_cxx_preproc_warn_flag
6248 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6249 else
6250 ac_cpp_err=
6251 fi
6252 else
6253 ac_cpp_err=yes
6254 fi
6255 if test -z "$ac_cpp_err"; then
6256 # Broken: success on invalid input.
6257 continue
6258 else
6259 echo "$as_me: failed program was:" >&5
6260 sed 's/^/| /' conftest.$ac_ext >&5
6261
6262 # Passes both tests.
6263 ac_preproc_ok=:
6264 break
6265 fi
6266
6267 rm -f conftest.err conftest.$ac_ext
6268
6269 done
6270 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6271 rm -f conftest.err conftest.$ac_ext
6272 if $ac_preproc_ok; then
6273 :
6274 else
6275 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6276 See \`config.log' for more details." >&5
6277 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6278 See \`config.log' for more details." >&2;}
6279 { (exit 1); exit 1; }; }
6280 fi
6281
6282 ac_ext=cpp
6283 ac_cpp='$CXXCPP $CPPFLAGS'
6284 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6285 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6286 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6287
6288 fi
6289
6290
6291 ac_ext=f
6292 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6293 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6294 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6295 if test -n "$ac_tool_prefix"; then
6296 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
6297 do
6298 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6299 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6300 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6302 if test "${ac_cv_prog_F77+set}" = set; then
6303 echo $ECHO_N "(cached) $ECHO_C" >&6
6304 else
6305 if test -n "$F77"; then
6306 ac_cv_prog_F77="$F77" # Let the user override the test.
6307 else
6308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6309 for as_dir in $PATH
6310 do
6311 IFS=$as_save_IFS
6312 test -z "$as_dir" && as_dir=.
6313 for ac_exec_ext in '' $ac_executable_extensions; do
6314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6315 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6317 break 2
6318 fi
6319 done
6320 done
6321 IFS=$as_save_IFS
6322
6323 fi
6324 fi
6325 F77=$ac_cv_prog_F77
6326 if test -n "$F77"; then
6327 { echo "$as_me:$LINENO: result: $F77" >&5
6328 echo "${ECHO_T}$F77" >&6; }
6329 else
6330 { echo "$as_me:$LINENO: result: no" >&5
6331 echo "${ECHO_T}no" >&6; }
6332 fi
6333
6334
6335 test -n "$F77" && break
6336 done
6337 fi
6338 if test -z "$F77"; then
6339 ac_ct_F77=$F77
6340 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
6341 do
6342 # Extract the first word of "$ac_prog", so it can be a program name with args.
6343 set dummy $ac_prog; ac_word=$2
6344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6346 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6347 echo $ECHO_N "(cached) $ECHO_C" >&6
6348 else
6349 if test -n "$ac_ct_F77"; then
6350 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6351 else
6352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6353 for as_dir in $PATH
6354 do
6355 IFS=$as_save_IFS
6356 test -z "$as_dir" && as_dir=.
6357 for ac_exec_ext in '' $ac_executable_extensions; do
6358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6359 ac_cv_prog_ac_ct_F77="$ac_prog"
6360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6361 break 2
6362 fi
6363 done
6364 done
6365 IFS=$as_save_IFS
6366
6367 fi
6368 fi
6369 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6370 if test -n "$ac_ct_F77"; then
6371 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6372 echo "${ECHO_T}$ac_ct_F77" >&6; }
6373 else
6374 { echo "$as_me:$LINENO: result: no" >&5
6375 echo "${ECHO_T}no" >&6; }
6376 fi
6377
6378
6379 test -n "$ac_ct_F77" && break
6380 done
6381
6382 if test "x$ac_ct_F77" = x; then
6383 F77=""
6384 else
6385 case $cross_compiling:$ac_tool_warned in
6386 yes:)
6387 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6388 whose name does not start with the host triplet. If you think this
6389 configuration is useful to you, please write to [email protected]." >&5
6390 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6391 whose name does not start with the host triplet. If you think this
6392 configuration is useful to you, please write to [email protected]." >&2;}
6393 ac_tool_warned=yes ;;
6394 esac
6395 F77=$ac_ct_F77
6396 fi
6397 fi
6398
6399
6400 # Provide some information about the compiler.
6401 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6402 ac_compiler=`set X $ac_compile; echo $2`
6403 { (ac_try="$ac_compiler --version >&5"
6404 case "(($ac_try" in
6405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6406 *) ac_try_echo=$ac_try;;
6407 esac
6408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6409 (eval "$ac_compiler --version >&5") 2>&5
6410 ac_status=$?
6411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412 (exit $ac_status); }
6413 { (ac_try="$ac_compiler -v >&5"
6414 case "(($ac_try" in
6415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6416 *) ac_try_echo=$ac_try;;
6417 esac
6418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6419 (eval "$ac_compiler -v >&5") 2>&5
6420 ac_status=$?
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); }
6423 { (ac_try="$ac_compiler -V >&5"
6424 case "(($ac_try" in
6425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6426 *) ac_try_echo=$ac_try;;
6427 esac
6428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6429 (eval "$ac_compiler -V >&5") 2>&5
6430 ac_status=$?
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); }
6433 rm -f a.out
6434
6435 # If we don't use `.F' as extension, the preprocessor is not run on the
6436 # input file. (Note that this only needs to work for GNU compilers.)
6437 ac_save_ext=$ac_ext
6438 ac_ext=F
6439 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6440 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6441 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6442 echo $ECHO_N "(cached) $ECHO_C" >&6
6443 else
6444 cat >conftest.$ac_ext <<_ACEOF
6445 program main
6446 #ifndef __GNUC__
6447 choke me
6448 #endif
6449
6450 end
6451 _ACEOF
6452 rm -f conftest.$ac_objext
6453 if { (ac_try="$ac_compile"
6454 case "(($ac_try" in
6455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6456 *) ac_try_echo=$ac_try;;
6457 esac
6458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6459 (eval "$ac_compile") 2>conftest.er1
6460 ac_status=$?
6461 grep -v '^ *+' conftest.er1 >conftest.err
6462 rm -f conftest.er1
6463 cat conftest.err >&5
6464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465 (exit $ac_status); } &&
6466 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6467 { (case "(($ac_try" in
6468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6469 *) ac_try_echo=$ac_try;;
6470 esac
6471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6472 (eval "$ac_try") 2>&5
6473 ac_status=$?
6474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475 (exit $ac_status); }; } &&
6476 { ac_try='test -s conftest.$ac_objext'
6477 { (case "(($ac_try" in
6478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6479 *) ac_try_echo=$ac_try;;
6480 esac
6481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6482 (eval "$ac_try") 2>&5
6483 ac_status=$?
6484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485 (exit $ac_status); }; }; then
6486 ac_compiler_gnu=yes
6487 else
6488 echo "$as_me: failed program was:" >&5
6489 sed 's/^/| /' conftest.$ac_ext >&5
6490
6491 ac_compiler_gnu=no
6492 fi
6493
6494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6495 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6496
6497 fi
6498 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6499 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6500 ac_ext=$ac_save_ext
6501 ac_test_FFLAGS=${FFLAGS+set}
6502 ac_save_FFLAGS=$FFLAGS
6503 FFLAGS=
6504 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6505 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6506 if test "${ac_cv_prog_f77_g+set}" = set; then
6507 echo $ECHO_N "(cached) $ECHO_C" >&6
6508 else
6509 FFLAGS=-g
6510 cat >conftest.$ac_ext <<_ACEOF
6511 program main
6512
6513 end
6514 _ACEOF
6515 rm -f conftest.$ac_objext
6516 if { (ac_try="$ac_compile"
6517 case "(($ac_try" in
6518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6519 *) ac_try_echo=$ac_try;;
6520 esac
6521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6522 (eval "$ac_compile") 2>conftest.er1
6523 ac_status=$?
6524 grep -v '^ *+' conftest.er1 >conftest.err
6525 rm -f conftest.er1
6526 cat conftest.err >&5
6527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528 (exit $ac_status); } &&
6529 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6530 { (case "(($ac_try" in
6531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6532 *) ac_try_echo=$ac_try;;
6533 esac
6534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6535 (eval "$ac_try") 2>&5
6536 ac_status=$?
6537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538 (exit $ac_status); }; } &&
6539 { ac_try='test -s conftest.$ac_objext'
6540 { (case "(($ac_try" in
6541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6542 *) ac_try_echo=$ac_try;;
6543 esac
6544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6545 (eval "$ac_try") 2>&5
6546 ac_status=$?
6547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548 (exit $ac_status); }; }; then
6549 ac_cv_prog_f77_g=yes
6550 else
6551 echo "$as_me: failed program was:" >&5
6552 sed 's/^/| /' conftest.$ac_ext >&5
6553
6554 ac_cv_prog_f77_g=no
6555 fi
6556
6557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6558
6559 fi
6560 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6561 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6562 if test "$ac_test_FFLAGS" = set; then
6563 FFLAGS=$ac_save_FFLAGS
6564 elif test $ac_cv_prog_f77_g = yes; then
6565 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6566 FFLAGS="-g -O2"
6567 else
6568 FFLAGS="-g"
6569 fi
6570 else
6571 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6572 FFLAGS="-O2"
6573 else
6574 FFLAGS=
6575 fi
6576 fi
6577
6578 G77=`test $ac_compiler_gnu = yes && echo yes`
6579 ac_ext=c
6580 ac_cpp='$CPP $CPPFLAGS'
6581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6584
6585
6586
6587 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6588
6589 # find the maximum length of command line arguments
6590 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6591 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6592 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6593 echo $ECHO_N "(cached) $ECHO_C" >&6
6594 else
6595 i=0
6596 teststring="ABCD"
6597
6598 case $build_os in
6599 msdosdjgpp*)
6600 # On DJGPP, this test can blow up pretty badly due to problems in libc
6601 # (any single argument exceeding 2000 bytes causes a buffer overrun
6602 # during glob expansion). Even if it were fixed, the result of this
6603 # check would be larger than it should be.
6604 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6605 ;;
6606
6607 gnu*)
6608 # Under GNU Hurd, this test is not required because there is
6609 # no limit to the length of command line arguments.
6610 # Libtool will interpret -1 as no limit whatsoever
6611 lt_cv_sys_max_cmd_len=-1;
6612 ;;
6613
6614 cygwin* | mingw*)
6615 # On Win9x/ME, this test blows up -- it succeeds, but takes
6616 # about 5 minutes as the teststring grows exponentially.
6617 # Worse, since 9x/ME are not pre-emptively multitasking,
6618 # you end up with a "frozen" computer, even though with patience
6619 # the test eventually succeeds (with a max line length of 256k).
6620 # Instead, let's just punt: use the minimum linelength reported by
6621 # all of the supported platforms: 8192 (on NT/2K/XP).
6622 lt_cv_sys_max_cmd_len=8192;
6623 ;;
6624
6625 amigaos*)
6626 # On AmigaOS with pdksh, this test takes hours, literally.
6627 # So we just punt and use a minimum line length of 8192.
6628 lt_cv_sys_max_cmd_len=8192;
6629 ;;
6630
6631 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6632 # This has been around since 386BSD, at least. Likely further.
6633 if test -x /sbin/sysctl; then
6634 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6635 elif test -x /usr/sbin/sysctl; then
6636 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6637 else
6638 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6639 fi
6640 # And add a safety zone
6641 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6642 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6643 ;;
6644
6645 interix*)
6646 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6647 lt_cv_sys_max_cmd_len=196608
6648 ;;
6649
6650 osf*)
6651 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6652 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6653 # nice to cause kernel panics so lets avoid the loop below.
6654 # First set a reasonable default.
6655 lt_cv_sys_max_cmd_len=16384
6656 #
6657 if test -x /sbin/sysconfig; then
6658 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6659 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6660 esac
6661 fi
6662 ;;
6663 sco3.2v5*)
6664 lt_cv_sys_max_cmd_len=102400
6665 ;;
6666 sysv5* | sco5v6* | sysv4.2uw2*)
6667 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6668 if test -n "$kargmax"; then
6669 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6670 else
6671 lt_cv_sys_max_cmd_len=32768
6672 fi
6673 ;;
6674 *)
6675 # If test is not a shell built-in, we'll probably end up computing a
6676 # maximum length that is only half of the actual maximum length, but
6677 # we can't tell.
6678 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6679 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6680 = "XX$teststring") >/dev/null 2>&1 &&
6681 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6682 lt_cv_sys_max_cmd_len=$new_result &&
6683 test $i != 17 # 1/2 MB should be enough
6684 do
6685 i=`expr $i + 1`
6686 teststring=$teststring$teststring
6687 done
6688 teststring=
6689 # Add a significant safety factor because C++ compilers can tack on massive
6690 # amounts of additional arguments before passing them to the linker.
6691 # It appears as though 1/2 is a usable value.
6692 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6693 ;;
6694 esac
6695
6696 fi
6697
6698 if test -n $lt_cv_sys_max_cmd_len ; then
6699 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6700 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6701 else
6702 { echo "$as_me:$LINENO: result: none" >&5
6703 echo "${ECHO_T}none" >&6; }
6704 fi
6705
6706
6707
6708
6709 # Check for command to grab the raw symbol name followed by C symbol from nm.
6710 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6711 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6712 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6713 echo $ECHO_N "(cached) $ECHO_C" >&6
6714 else
6715
6716 # These are sane defaults that work on at least a few old systems.
6717 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6718
6719 # Character class describing NM global symbol codes.
6720 symcode='[BCDEGRST]'
6721
6722 # Regexp to match symbols that can be accessed directly from C.
6723 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6724
6725 # Transform an extracted symbol line into a proper C declaration
6726 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6727
6728 # Transform an extracted symbol line into symbol name and symbol address
6729 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'"
6730
6731 # Define system-specific variables.
6732 case $host_os in
6733 aix*)
6734 symcode='[BCDT]'
6735 ;;
6736 cygwin* | mingw* | pw32*)
6737 symcode='[ABCDGISTW]'
6738 ;;
6739 hpux*) # Its linker distinguishes data from code symbols
6740 if test "$host_cpu" = ia64; then
6741 symcode='[ABCDEGRST]'
6742 fi
6743 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6744 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'"
6745 ;;
6746 linux*)
6747 if test "$host_cpu" = ia64; then
6748 symcode='[ABCDGIRSTW]'
6749 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6750 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'"
6751 fi
6752 ;;
6753 irix* | nonstopux*)
6754 symcode='[BCDEGRST]'
6755 ;;
6756 osf*)
6757 symcode='[BCDEGQRST]'
6758 ;;
6759 solaris*)
6760 symcode='[BDRT]'
6761 ;;
6762 sco3.2v5*)
6763 symcode='[DT]'
6764 ;;
6765 sysv4.2uw2*)
6766 symcode='[DT]'
6767 ;;
6768 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6769 symcode='[ABDT]'
6770 ;;
6771 sysv4)
6772 symcode='[DFNSTU]'
6773 ;;
6774 esac
6775
6776 # Handle CRLF in mingw tool chain
6777 opt_cr=
6778 case $build_os in
6779 mingw*)
6780 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6781 ;;
6782 esac
6783
6784 # If we're using GNU nm, then use its standard symbol codes.
6785 case `$NM -V 2>&1` in
6786 *GNU* | *'with BFD'*)
6787 symcode='[ABCDGIRSTW]' ;;
6788 esac
6789
6790 # Try without a prefix undercore, then with it.
6791 for ac_symprfx in "" "_"; do
6792
6793 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6794 symxfrm="\\1 $ac_symprfx\\2 \\2"
6795
6796 # Write the raw and C identifiers.
6797 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6798
6799 # Check to see that the pipe works correctly.
6800 pipe_works=no
6801
6802 rm -f conftest*
6803 cat > conftest.$ac_ext <<EOF
6804 #ifdef __cplusplus
6805 extern "C" {
6806 #endif
6807 char nm_test_var;
6808 void nm_test_func(){}
6809 #ifdef __cplusplus
6810 }
6811 #endif
6812 int main(){nm_test_var='a';nm_test_func();return(0);}
6813 EOF
6814
6815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6816 (eval $ac_compile) 2>&5
6817 ac_status=$?
6818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819 (exit $ac_status); }; then
6820 # Now try to grab the symbols.
6821 nlist=conftest.nm
6822 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6823 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6824 ac_status=$?
6825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826 (exit $ac_status); } && test -s "$nlist"; then
6827 # Try sorting and uniquifying the output.
6828 if sort "$nlist" | uniq > "$nlist"T; then
6829 mv -f "$nlist"T "$nlist"
6830 else
6831 rm -f "$nlist"T
6832 fi
6833
6834 # Make sure that we snagged all the symbols we need.
6835 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6836 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6837 cat <<EOF > conftest.$ac_ext
6838 #ifdef __cplusplus
6839 extern "C" {
6840 #endif
6841
6842 EOF
6843 # Now generate the symbol file.
6844 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6845
6846 cat <<EOF >> conftest.$ac_ext
6847 #if defined (__STDC__) && __STDC__
6848 # define lt_ptr_t void *
6849 #else
6850 # define lt_ptr_t char *
6851 # define const
6852 #endif
6853
6854 /* The mapping between symbol names and symbols. */
6855 const struct {
6856 const char *name;
6857 lt_ptr_t address;
6858 }
6859 lt_preloaded_symbols[] =
6860 {
6861 EOF
6862 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6863 cat <<\EOF >> conftest.$ac_ext
6864 {0, (lt_ptr_t) 0}
6865 };
6866
6867 #ifdef __cplusplus
6868 }
6869 #endif
6870 EOF
6871 # Now try linking the two files.
6872 mv conftest.$ac_objext conftstm.$ac_objext
6873 lt_save_LIBS="$LIBS"
6874 lt_save_CFLAGS="$CFLAGS"
6875 LIBS="conftstm.$ac_objext"
6876 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6878 (eval $ac_link) 2>&5
6879 ac_status=$?
6880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6882 pipe_works=yes
6883 fi
6884 LIBS="$lt_save_LIBS"
6885 CFLAGS="$lt_save_CFLAGS"
6886 else
6887 echo "cannot find nm_test_func in $nlist" >&5
6888 fi
6889 else
6890 echo "cannot find nm_test_var in $nlist" >&5
6891 fi
6892 else
6893 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6894 fi
6895 else
6896 echo "$progname: failed program was:" >&5
6897 cat conftest.$ac_ext >&5
6898 fi
6899 rm -f conftest* conftst*
6900
6901 # Do not use the global_symbol_pipe unless it works.
6902 if test "$pipe_works" = yes; then
6903 break
6904 else
6905 lt_cv_sys_global_symbol_pipe=
6906 fi
6907 done
6908
6909 fi
6910
6911 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6912 lt_cv_sys_global_symbol_to_cdecl=
6913 fi
6914 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6915 { echo "$as_me:$LINENO: result: failed" >&5
6916 echo "${ECHO_T}failed" >&6; }
6917 else
6918 { echo "$as_me:$LINENO: result: ok" >&5
6919 echo "${ECHO_T}ok" >&6; }
6920 fi
6921
6922 { echo "$as_me:$LINENO: checking for objdir" >&5
6923 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6924 if test "${lt_cv_objdir+set}" = set; then
6925 echo $ECHO_N "(cached) $ECHO_C" >&6
6926 else
6927 rm -f .libs 2>/dev/null
6928 mkdir .libs 2>/dev/null
6929 if test -d .libs; then
6930 lt_cv_objdir=.libs
6931 else
6932 # MS-DOS does not allow filenames that begin with a dot.
6933 lt_cv_objdir=_libs
6934 fi
6935 rmdir .libs 2>/dev/null
6936 fi
6937 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6938 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6939 objdir=$lt_cv_objdir
6940
6941
6942
6943
6944
6945 case $host_os in
6946 aix3*)
6947 # AIX sometimes has problems with the GCC collect2 program. For some
6948 # reason, if we set the COLLECT_NAMES environment variable, the problems
6949 # vanish in a puff of smoke.
6950 if test "X${COLLECT_NAMES+set}" != Xset; then
6951 COLLECT_NAMES=
6952 export COLLECT_NAMES
6953 fi
6954 ;;
6955 esac
6956
6957 # Sed substitution that helps us do robust quoting. It backslashifies
6958 # metacharacters that are still active within double-quoted strings.
6959 Xsed='sed -e 1s/^X//'
6960 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6961
6962 # Same as above, but do not quote variable references.
6963 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6964
6965 # Sed substitution to delay expansion of an escaped shell variable in a
6966 # double_quote_subst'ed string.
6967 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6968
6969 # Sed substitution to avoid accidental globbing in evaled expressions
6970 no_glob_subst='s/\*/\\\*/g'
6971
6972 # Constants:
6973 rm="rm -f"
6974
6975 # Global variables:
6976 default_ofile=libtool
6977 can_build_shared=yes
6978
6979 # All known linkers require a `.a' archive for static linking (except MSVC,
6980 # which needs '.lib').
6981 libext=a
6982 ltmain="$ac_aux_dir/ltmain.sh"
6983 ofile="$default_ofile"
6984 with_gnu_ld="$lt_cv_prog_gnu_ld"
6985
6986 if test -n "$ac_tool_prefix"; then
6987 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6988 set dummy ${ac_tool_prefix}ar; ac_word=$2
6989 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6991 if test "${ac_cv_prog_AR+set}" = set; then
6992 echo $ECHO_N "(cached) $ECHO_C" >&6
6993 else
6994 if test -n "$AR"; then
6995 ac_cv_prog_AR="$AR" # Let the user override the test.
6996 else
6997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6998 for as_dir in $PATH
6999 do
7000 IFS=$as_save_IFS
7001 test -z "$as_dir" && as_dir=.
7002 for ac_exec_ext in '' $ac_executable_extensions; do
7003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7004 ac_cv_prog_AR="${ac_tool_prefix}ar"
7005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7006 break 2
7007 fi
7008 done
7009 done
7010 IFS=$as_save_IFS
7011
7012 fi
7013 fi
7014 AR=$ac_cv_prog_AR
7015 if test -n "$AR"; then
7016 { echo "$as_me:$LINENO: result: $AR" >&5
7017 echo "${ECHO_T}$AR" >&6; }
7018 else
7019 { echo "$as_me:$LINENO: result: no" >&5
7020 echo "${ECHO_T}no" >&6; }
7021 fi
7022
7023
7024 fi
7025 if test -z "$ac_cv_prog_AR"; then
7026 ac_ct_AR=$AR
7027 # Extract the first word of "ar", so it can be a program name with args.
7028 set dummy ar; ac_word=$2
7029 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7031 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7032 echo $ECHO_N "(cached) $ECHO_C" >&6
7033 else
7034 if test -n "$ac_ct_AR"; then
7035 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7036 else
7037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7038 for as_dir in $PATH
7039 do
7040 IFS=$as_save_IFS
7041 test -z "$as_dir" && as_dir=.
7042 for ac_exec_ext in '' $ac_executable_extensions; do
7043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7044 ac_cv_prog_ac_ct_AR="ar"
7045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7046 break 2
7047 fi
7048 done
7049 done
7050 IFS=$as_save_IFS
7051
7052 fi
7053 fi
7054 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7055 if test -n "$ac_ct_AR"; then
7056 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7057 echo "${ECHO_T}$ac_ct_AR" >&6; }
7058 else
7059 { echo "$as_me:$LINENO: result: no" >&5
7060 echo "${ECHO_T}no" >&6; }
7061 fi
7062
7063 if test "x$ac_ct_AR" = x; then
7064 AR="false"
7065 else
7066 case $cross_compiling:$ac_tool_warned in
7067 yes:)
7068 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7069 whose name does not start with the host triplet. If you think this
7070 configuration is useful to you, please write to [email protected]." >&5
7071 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7072 whose name does not start with the host triplet. If you think this
7073 configuration is useful to you, please write to [email protected]." >&2;}
7074 ac_tool_warned=yes ;;
7075 esac
7076 AR=$ac_ct_AR
7077 fi
7078 else
7079 AR="$ac_cv_prog_AR"
7080 fi
7081
7082 if test -n "$ac_tool_prefix"; then
7083 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7084 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7085 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7087 if test "${ac_cv_prog_RANLIB+set}" = set; then
7088 echo $ECHO_N "(cached) $ECHO_C" >&6
7089 else
7090 if test -n "$RANLIB"; then
7091 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7092 else
7093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7094 for as_dir in $PATH
7095 do
7096 IFS=$as_save_IFS
7097 test -z "$as_dir" && as_dir=.
7098 for ac_exec_ext in '' $ac_executable_extensions; do
7099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7100 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7102 break 2
7103 fi
7104 done
7105 done
7106 IFS=$as_save_IFS
7107
7108 fi
7109 fi
7110 RANLIB=$ac_cv_prog_RANLIB
7111 if test -n "$RANLIB"; then
7112 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7113 echo "${ECHO_T}$RANLIB" >&6; }
7114 else
7115 { echo "$as_me:$LINENO: result: no" >&5
7116 echo "${ECHO_T}no" >&6; }
7117 fi
7118
7119
7120 fi
7121 if test -z "$ac_cv_prog_RANLIB"; then
7122 ac_ct_RANLIB=$RANLIB
7123 # Extract the first word of "ranlib", so it can be a program name with args.
7124 set dummy ranlib; ac_word=$2
7125 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7127 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7128 echo $ECHO_N "(cached) $ECHO_C" >&6
7129 else
7130 if test -n "$ac_ct_RANLIB"; then
7131 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7132 else
7133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7134 for as_dir in $PATH
7135 do
7136 IFS=$as_save_IFS
7137 test -z "$as_dir" && as_dir=.
7138 for ac_exec_ext in '' $ac_executable_extensions; do
7139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7140 ac_cv_prog_ac_ct_RANLIB="ranlib"
7141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7142 break 2
7143 fi
7144 done
7145 done
7146 IFS=$as_save_IFS
7147
7148 fi
7149 fi
7150 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7151 if test -n "$ac_ct_RANLIB"; then
7152 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7153 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7154 else
7155 { echo "$as_me:$LINENO: result: no" >&5
7156 echo "${ECHO_T}no" >&6; }
7157 fi
7158
7159 if test "x$ac_ct_RANLIB" = x; then
7160 RANLIB=":"
7161 else
7162 case $cross_compiling:$ac_tool_warned in
7163 yes:)
7164 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7165 whose name does not start with the host triplet. If you think this
7166 configuration is useful to you, please write to [email protected]." >&5
7167 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7168 whose name does not start with the host triplet. If you think this
7169 configuration is useful to you, please write to [email protected]." >&2;}
7170 ac_tool_warned=yes ;;
7171 esac
7172 RANLIB=$ac_ct_RANLIB
7173 fi
7174 else
7175 RANLIB="$ac_cv_prog_RANLIB"
7176 fi
7177
7178 if test -n "$ac_tool_prefix"; then
7179 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7180 set dummy ${ac_tool_prefix}strip; ac_word=$2
7181 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7183 if test "${ac_cv_prog_STRIP+set}" = set; then
7184 echo $ECHO_N "(cached) $ECHO_C" >&6
7185 else
7186 if test -n "$STRIP"; then
7187 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7188 else
7189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7190 for as_dir in $PATH
7191 do
7192 IFS=$as_save_IFS
7193 test -z "$as_dir" && as_dir=.
7194 for ac_exec_ext in '' $ac_executable_extensions; do
7195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7196 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7198 break 2
7199 fi
7200 done
7201 done
7202 IFS=$as_save_IFS
7203
7204 fi
7205 fi
7206 STRIP=$ac_cv_prog_STRIP
7207 if test -n "$STRIP"; then
7208 { echo "$as_me:$LINENO: result: $STRIP" >&5
7209 echo "${ECHO_T}$STRIP" >&6; }
7210 else
7211 { echo "$as_me:$LINENO: result: no" >&5
7212 echo "${ECHO_T}no" >&6; }
7213 fi
7214
7215
7216 fi
7217 if test -z "$ac_cv_prog_STRIP"; then
7218 ac_ct_STRIP=$STRIP
7219 # Extract the first word of "strip", so it can be a program name with args.
7220 set dummy strip; ac_word=$2
7221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7223 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7224 echo $ECHO_N "(cached) $ECHO_C" >&6
7225 else
7226 if test -n "$ac_ct_STRIP"; then
7227 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7228 else
7229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7230 for as_dir in $PATH
7231 do
7232 IFS=$as_save_IFS
7233 test -z "$as_dir" && as_dir=.
7234 for ac_exec_ext in '' $ac_executable_extensions; do
7235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7236 ac_cv_prog_ac_ct_STRIP="strip"
7237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7238 break 2
7239 fi
7240 done
7241 done
7242 IFS=$as_save_IFS
7243
7244 fi
7245 fi
7246 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7247 if test -n "$ac_ct_STRIP"; then
7248 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7249 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7250 else
7251 { echo "$as_me:$LINENO: result: no" >&5
7252 echo "${ECHO_T}no" >&6; }
7253 fi
7254
7255 if test "x$ac_ct_STRIP" = x; then
7256 STRIP=":"
7257 else
7258 case $cross_compiling:$ac_tool_warned in
7259 yes:)
7260 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7261 whose name does not start with the host triplet. If you think this
7262 configuration is useful to you, please write to [email protected]." >&5
7263 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7264 whose name does not start with the host triplet. If you think this
7265 configuration is useful to you, please write to [email protected]." >&2;}
7266 ac_tool_warned=yes ;;
7267 esac
7268 STRIP=$ac_ct_STRIP
7269 fi
7270 else
7271 STRIP="$ac_cv_prog_STRIP"
7272 fi
7273
7274
7275 old_CC="$CC"
7276 old_CFLAGS="$CFLAGS"
7277
7278 # Set sane defaults for various variables
7279 test -z "$AR" && AR=ar
7280 test -z "$AR_FLAGS" && AR_FLAGS=cru
7281 test -z "$AS" && AS=as
7282 test -z "$CC" && CC=cc
7283 test -z "$LTCC" && LTCC=$CC
7284 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7285 test -z "$DLLTOOL" && DLLTOOL=dlltool
7286 test -z "$LD" && LD=ld
7287 test -z "$LN_S" && LN_S="ln -s"
7288 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7289 test -z "$NM" && NM=nm
7290 test -z "$SED" && SED=sed
7291 test -z "$OBJDUMP" && OBJDUMP=objdump
7292 test -z "$RANLIB" && RANLIB=:
7293 test -z "$STRIP" && STRIP=:
7294 test -z "$ac_objext" && ac_objext=o
7295
7296 # Determine commands to create old-style static archives.
7297 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7298 old_postinstall_cmds='chmod 644 $oldlib'
7299 old_postuninstall_cmds=
7300
7301 if test -n "$RANLIB"; then
7302 case $host_os in
7303 openbsd*)
7304 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7305 ;;
7306 *)
7307 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7308 ;;
7309 esac
7310 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7311 fi
7312
7313 for cc_temp in $compiler""; do
7314 case $cc_temp in
7315 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7316 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7317 \-*) ;;
7318 *) break;;
7319 esac
7320 done
7321 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7322
7323
7324 # Only perform the check for file, if the check method requires it
7325 case $deplibs_check_method in
7326 file_magic*)
7327 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7328 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7329 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7330 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7331 echo $ECHO_N "(cached) $ECHO_C" >&6
7332 else
7333 case $MAGIC_CMD in
7334 [\\/*] | ?:[\\/]*)
7335 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7336 ;;
7337 *)
7338 lt_save_MAGIC_CMD="$MAGIC_CMD"
7339 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7340 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7341 for ac_dir in $ac_dummy; do
7342 IFS="$lt_save_ifs"
7343 test -z "$ac_dir" && ac_dir=.
7344 if test -f $ac_dir/${ac_tool_prefix}file; then
7345 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7346 if test -n "$file_magic_test_file"; then
7347 case $deplibs_check_method in
7348 "file_magic "*)
7349 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7350 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7351 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7352 $EGREP "$file_magic_regex" > /dev/null; then
7353 :
7354 else
7355 cat <<EOF 1>&2
7356
7357 *** Warning: the command libtool uses to detect shared libraries,
7358 *** $file_magic_cmd, produces output that libtool cannot recognize.
7359 *** The result is that libtool may fail to recognize shared libraries
7360 *** as such. This will affect the creation of libtool libraries that
7361 *** depend on shared libraries, but programs linked with such libtool
7362 *** libraries will work regardless of this problem. Nevertheless, you
7363 *** may want to report the problem to your system manager and/or to
7364 *** [email protected]
7365
7366 EOF
7367 fi ;;
7368 esac
7369 fi
7370 break
7371 fi
7372 done
7373 IFS="$lt_save_ifs"
7374 MAGIC_CMD="$lt_save_MAGIC_CMD"
7375 ;;
7376 esac
7377 fi
7378
7379 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7380 if test -n "$MAGIC_CMD"; then
7381 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7382 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7383 else
7384 { echo "$as_me:$LINENO: result: no" >&5
7385 echo "${ECHO_T}no" >&6; }
7386 fi
7387
7388 if test -z "$lt_cv_path_MAGIC_CMD"; then
7389 if test -n "$ac_tool_prefix"; then
7390 { echo "$as_me:$LINENO: checking for file" >&5
7391 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7392 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7393 echo $ECHO_N "(cached) $ECHO_C" >&6
7394 else
7395 case $MAGIC_CMD in
7396 [\\/*] | ?:[\\/]*)
7397 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7398 ;;
7399 *)
7400 lt_save_MAGIC_CMD="$MAGIC_CMD"
7401 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7402 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7403 for ac_dir in $ac_dummy; do
7404 IFS="$lt_save_ifs"
7405 test -z "$ac_dir" && ac_dir=.
7406 if test -f $ac_dir/file; then
7407 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7408 if test -n "$file_magic_test_file"; then
7409 case $deplibs_check_method in
7410 "file_magic "*)
7411 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7412 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7413 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7414 $EGREP "$file_magic_regex" > /dev/null; then
7415 :
7416 else
7417 cat <<EOF 1>&2
7418
7419 *** Warning: the command libtool uses to detect shared libraries,
7420 *** $file_magic_cmd, produces output that libtool cannot recognize.
7421 *** The result is that libtool may fail to recognize shared libraries
7422 *** as such. This will affect the creation of libtool libraries that
7423 *** depend on shared libraries, but programs linked with such libtool
7424 *** libraries will work regardless of this problem. Nevertheless, you
7425 *** may want to report the problem to your system manager and/or to
7426 *** [email protected]
7427
7428 EOF
7429 fi ;;
7430 esac
7431 fi
7432 break
7433 fi
7434 done
7435 IFS="$lt_save_ifs"
7436 MAGIC_CMD="$lt_save_MAGIC_CMD"
7437 ;;
7438 esac
7439 fi
7440
7441 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7442 if test -n "$MAGIC_CMD"; then
7443 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7444 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7445 else
7446 { echo "$as_me:$LINENO: result: no" >&5
7447 echo "${ECHO_T}no" >&6; }
7448 fi
7449
7450 else
7451 MAGIC_CMD=:
7452 fi
7453 fi
7454
7455 fi
7456 ;;
7457 esac
7458
7459 enable_dlopen=no
7460 enable_win32_dll=no
7461
7462 # Check whether --enable-libtool-lock was given.
7463 if test "${enable_libtool_lock+set}" = set; then
7464 enableval=$enable_libtool_lock;
7465 fi
7466
7467 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7468
7469
7470 # Check whether --with-pic was given.
7471 if test "${with_pic+set}" = set; then
7472 withval=$with_pic; pic_mode="$withval"
7473 else
7474 pic_mode=default
7475 fi
7476
7477 test -z "$pic_mode" && pic_mode=default
7478
7479 # Use C for the default configuration in the libtool script
7480 tagname=
7481 lt_save_CC="$CC"
7482 ac_ext=c
7483 ac_cpp='$CPP $CPPFLAGS'
7484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7487
7488
7489 # Source file extension for C test sources.
7490 ac_ext=c
7491
7492 # Object file extension for compiled C test sources.
7493 objext=o
7494 objext=$objext
7495
7496 # Code to be used in simple compile tests
7497 lt_simple_compile_test_code="int some_variable = 0;\n"
7498
7499 # Code to be used in simple link tests
7500 lt_simple_link_test_code='int main(){return(0);}\n'
7501
7502
7503 # If no C compiler was specified, use CC.
7504 LTCC=${LTCC-"$CC"}
7505
7506 # If no C compiler flags were specified, use CFLAGS.
7507 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7508
7509 # Allow CC to be a program name with arguments.
7510 compiler=$CC
7511
7512
7513 # save warnings/boilerplate of simple test code
7514 ac_outfile=conftest.$ac_objext
7515 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7516 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7517 _lt_compiler_boilerplate=`cat conftest.err`
7518 $rm conftest*
7519
7520 ac_outfile=conftest.$ac_objext
7521 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7522 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7523 _lt_linker_boilerplate=`cat conftest.err`
7524 $rm conftest*
7525
7526
7527
7528 lt_prog_compiler_no_builtin_flag=
7529
7530 if test "$GCC" = yes; then
7531 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7532
7533
7534 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7535 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7536 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7537 echo $ECHO_N "(cached) $ECHO_C" >&6
7538 else
7539 lt_cv_prog_compiler_rtti_exceptions=no
7540 ac_outfile=conftest.$ac_objext
7541 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7542 lt_compiler_flag="-fno-rtti -fno-exceptions"
7543 # Insert the option either (1) after the last *FLAGS variable, or
7544 # (2) before a word containing "conftest.", or (3) at the end.
7545 # Note that $ac_compile itself does not contain backslashes and begins
7546 # with a dollar sign (not a hyphen), so the echo should work correctly.
7547 # The option is referenced via a variable to avoid confusing sed.
7548 lt_compile=`echo "$ac_compile" | $SED \
7549 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7550 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7551 -e 's:$: $lt_compiler_flag:'`
7552 (eval echo "\"\$as_me:7552: $lt_compile\"" >&5)
7553 (eval "$lt_compile" 2>conftest.err)
7554 ac_status=$?
7555 cat conftest.err >&5
7556 echo "$as_me:7556: \$? = $ac_status" >&5
7557 if (exit $ac_status) && test -s "$ac_outfile"; then
7558 # The compiler can only warn and ignore the option if not recognized
7559 # So say no if there are warnings other than the usual output.
7560 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7561 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7562 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7563 lt_cv_prog_compiler_rtti_exceptions=yes
7564 fi
7565 fi
7566 $rm conftest*
7567
7568 fi
7569 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7570 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7571
7572 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7573 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7574 else
7575 :
7576 fi
7577
7578 fi
7579
7580 lt_prog_compiler_wl=
7581 lt_prog_compiler_pic=
7582 lt_prog_compiler_static=
7583
7584 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7585 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7586
7587 if test "$GCC" = yes; then
7588 lt_prog_compiler_wl='-Wl,'
7589 lt_prog_compiler_static='-static'
7590
7591 case $host_os in
7592 aix*)
7593 # All AIX code is PIC.
7594 if test "$host_cpu" = ia64; then
7595 # AIX 5 now supports IA64 processor
7596 lt_prog_compiler_static='-Bstatic'
7597 fi
7598 ;;
7599
7600 amigaos*)
7601 # FIXME: we need at least 68020 code to build shared libraries, but
7602 # adding the `-m68020' flag to GCC prevents building anything better,
7603 # like `-m68040'.
7604 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7605 ;;
7606
7607 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7608 # PIC is the default for these OSes.
7609 ;;
7610
7611 mingw* | pw32* | os2*)
7612 # This hack is so that the source file can tell whether it is being
7613 # built for inclusion in a dll (and should export symbols for example).
7614 lt_prog_compiler_pic='-DDLL_EXPORT'
7615 ;;
7616
7617 darwin* | rhapsody*)
7618 # PIC is the default on this platform
7619 # Common symbols not allowed in MH_DYLIB files
7620 lt_prog_compiler_pic='-fno-common'
7621 ;;
7622
7623 interix3*)
7624 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7625 # Instead, we relocate shared libraries at runtime.
7626 ;;
7627
7628 msdosdjgpp*)
7629 # Just because we use GCC doesn't mean we suddenly get shared libraries
7630 # on systems that don't support them.
7631 lt_prog_compiler_can_build_shared=no
7632 enable_shared=no
7633 ;;
7634
7635 sysv4*MP*)
7636 if test -d /usr/nec; then
7637 lt_prog_compiler_pic=-Kconform_pic
7638 fi
7639 ;;
7640
7641 hpux*)
7642 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7643 # not for PA HP-UX.
7644 case $host_cpu in
7645 hppa*64*|ia64*)
7646 # +Z the default
7647 ;;
7648 *)
7649 lt_prog_compiler_pic='-fPIC'
7650 ;;
7651 esac
7652 ;;
7653
7654 *)
7655 lt_prog_compiler_pic='-fPIC'
7656 ;;
7657 esac
7658 else
7659 # PORTME Check for flag to pass linker flags through the system compiler.
7660 case $host_os in
7661 aix*)
7662 lt_prog_compiler_wl='-Wl,'
7663 if test "$host_cpu" = ia64; then
7664 # AIX 5 now supports IA64 processor
7665 lt_prog_compiler_static='-Bstatic'
7666 else
7667 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7668 fi
7669 ;;
7670 darwin*)
7671 # PIC is the default on this platform
7672 # Common symbols not allowed in MH_DYLIB files
7673 case $cc_basename in
7674 xlc*)
7675 lt_prog_compiler_pic='-qnocommon'
7676 lt_prog_compiler_wl='-Wl,'
7677 ;;
7678 esac
7679 ;;
7680
7681 mingw* | pw32* | os2*)
7682 # This hack is so that the source file can tell whether it is being
7683 # built for inclusion in a dll (and should export symbols for example).
7684 lt_prog_compiler_pic='-DDLL_EXPORT'
7685 ;;
7686
7687 hpux9* | hpux10* | hpux11*)
7688 lt_prog_compiler_wl='-Wl,'
7689 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7690 # not for PA HP-UX.
7691 case $host_cpu in
7692 hppa*64*|ia64*)
7693 # +Z the default
7694 ;;
7695 *)
7696 lt_prog_compiler_pic='+Z'
7697 ;;
7698 esac
7699 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7700 lt_prog_compiler_static='${wl}-a ${wl}archive'
7701 ;;
7702
7703 irix5* | irix6* | nonstopux*)
7704 lt_prog_compiler_wl='-Wl,'
7705 # PIC (with -KPIC) is the default.
7706 lt_prog_compiler_static='-non_shared'
7707 ;;
7708
7709 newsos6)
7710 lt_prog_compiler_pic='-KPIC'
7711 lt_prog_compiler_static='-Bstatic'
7712 ;;
7713
7714 linux*)
7715 case $cc_basename in
7716 icc* | ecc*)
7717 lt_prog_compiler_wl='-Wl,'
7718 lt_prog_compiler_pic='-KPIC'
7719 lt_prog_compiler_static='-static'
7720 ;;
7721 pgcc* | pgf77* | pgf90* | pgf95*)
7722 # Portland Group compilers (*not* the Pentium gcc compiler,
7723 # which looks to be a dead project)
7724 lt_prog_compiler_wl='-Wl,'
7725 lt_prog_compiler_pic='-fpic'
7726 lt_prog_compiler_static='-Bstatic'
7727 ;;
7728 ccc*)
7729 lt_prog_compiler_wl='-Wl,'
7730 # All Alpha code is PIC.
7731 lt_prog_compiler_static='-non_shared'
7732 ;;
7733 esac
7734 ;;
7735
7736 osf3* | osf4* | osf5*)
7737 lt_prog_compiler_wl='-Wl,'
7738 # All OSF/1 code is PIC.
7739 lt_prog_compiler_static='-non_shared'
7740 ;;
7741
7742 solaris*)
7743 lt_prog_compiler_pic='-KPIC'
7744 lt_prog_compiler_static='-Bstatic'
7745 case $cc_basename in
7746 f77* | f90* | f95*)
7747 lt_prog_compiler_wl='-Qoption ld ';;
7748 *)
7749 lt_prog_compiler_wl='-Wl,';;
7750 esac
7751 ;;
7752
7753 sunos4*)
7754 lt_prog_compiler_wl='-Qoption ld '
7755 lt_prog_compiler_pic='-PIC'
7756 lt_prog_compiler_static='-Bstatic'
7757 ;;
7758
7759 sysv4 | sysv4.2uw2* | sysv4.3*)
7760 lt_prog_compiler_wl='-Wl,'
7761 lt_prog_compiler_pic='-KPIC'
7762 lt_prog_compiler_static='-Bstatic'
7763 ;;
7764
7765 sysv4*MP*)
7766 if test -d /usr/nec ;then
7767 lt_prog_compiler_pic='-Kconform_pic'
7768 lt_prog_compiler_static='-Bstatic'
7769 fi
7770 ;;
7771
7772 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7773 lt_prog_compiler_wl='-Wl,'
7774 lt_prog_compiler_pic='-KPIC'
7775 lt_prog_compiler_static='-Bstatic'
7776 ;;
7777
7778 unicos*)
7779 lt_prog_compiler_wl='-Wl,'
7780 lt_prog_compiler_can_build_shared=no
7781 ;;
7782
7783 uts4*)
7784 lt_prog_compiler_pic='-pic'
7785 lt_prog_compiler_static='-Bstatic'
7786 ;;
7787
7788 *)
7789 lt_prog_compiler_can_build_shared=no
7790 ;;
7791 esac
7792 fi
7793
7794 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7795 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7796
7797 #
7798 # Check to make sure the PIC flag actually works.
7799 #
7800 if test -n "$lt_prog_compiler_pic"; then
7801
7802 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7803 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7804 if test "${lt_prog_compiler_pic_works+set}" = set; then
7805 echo $ECHO_N "(cached) $ECHO_C" >&6
7806 else
7807 lt_prog_compiler_pic_works=no
7808 ac_outfile=conftest.$ac_objext
7809 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7810 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7811 # Insert the option either (1) after the last *FLAGS variable, or
7812 # (2) before a word containing "conftest.", or (3) at the end.
7813 # Note that $ac_compile itself does not contain backslashes and begins
7814 # with a dollar sign (not a hyphen), so the echo should work correctly.
7815 # The option is referenced via a variable to avoid confusing sed.
7816 lt_compile=`echo "$ac_compile" | $SED \
7817 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7818 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7819 -e 's:$: $lt_compiler_flag:'`
7820 (eval echo "\"\$as_me:7820: $lt_compile\"" >&5)
7821 (eval "$lt_compile" 2>conftest.err)
7822 ac_status=$?
7823 cat conftest.err >&5
7824 echo "$as_me:7824: \$? = $ac_status" >&5
7825 if (exit $ac_status) && test -s "$ac_outfile"; then
7826 # The compiler can only warn and ignore the option if not recognized
7827 # So say no if there are warnings other than the usual output.
7828 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7829 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7830 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7831 lt_prog_compiler_pic_works=yes
7832 fi
7833 fi
7834 $rm conftest*
7835
7836 fi
7837 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7838 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7839
7840 if test x"$lt_prog_compiler_pic_works" = xyes; then
7841 case $lt_prog_compiler_pic in
7842 "" | " "*) ;;
7843 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7844 esac
7845 else
7846 lt_prog_compiler_pic=
7847 lt_prog_compiler_can_build_shared=no
7848 fi
7849
7850 fi
7851 case $host_os in
7852 # For platforms which do not support PIC, -DPIC is meaningless:
7853 *djgpp*)
7854 lt_prog_compiler_pic=
7855 ;;
7856 *)
7857 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7858 ;;
7859 esac
7860
7861 #
7862 # Check to make sure the static flag actually works.
7863 #
7864 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7865 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7866 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7867 if test "${lt_prog_compiler_static_works+set}" = set; then
7868 echo $ECHO_N "(cached) $ECHO_C" >&6
7869 else
7870 lt_prog_compiler_static_works=no
7871 save_LDFLAGS="$LDFLAGS"
7872 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7873 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7874 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7875 # The linker can only warn and ignore the option if not recognized
7876 # So say no if there are warnings
7877 if test -s conftest.err; then
7878 # Append any errors to the config.log.
7879 cat conftest.err 1>&5
7880 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7881 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7882 if diff conftest.exp conftest.er2 >/dev/null; then
7883 lt_prog_compiler_static_works=yes
7884 fi
7885 else
7886 lt_prog_compiler_static_works=yes
7887 fi
7888 fi
7889 $rm conftest*
7890 LDFLAGS="$save_LDFLAGS"
7891
7892 fi
7893 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7894 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7895
7896 if test x"$lt_prog_compiler_static_works" = xyes; then
7897 :
7898 else
7899 lt_prog_compiler_static=
7900 fi
7901
7902
7903 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7904 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7905 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7906 echo $ECHO_N "(cached) $ECHO_C" >&6
7907 else
7908 lt_cv_prog_compiler_c_o=no
7909 $rm -r conftest 2>/dev/null
7910 mkdir conftest
7911 cd conftest
7912 mkdir out
7913 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7914
7915 lt_compiler_flag="-o out/conftest2.$ac_objext"
7916 # Insert the option either (1) after the last *FLAGS variable, or
7917 # (2) before a word containing "conftest.", or (3) at the end.
7918 # Note that $ac_compile itself does not contain backslashes and begins
7919 # with a dollar sign (not a hyphen), so the echo should work correctly.
7920 lt_compile=`echo "$ac_compile" | $SED \
7921 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7922 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7923 -e 's:$: $lt_compiler_flag:'`
7924 (eval echo "\"\$as_me:7924: $lt_compile\"" >&5)
7925 (eval "$lt_compile" 2>out/conftest.err)
7926 ac_status=$?
7927 cat out/conftest.err >&5
7928 echo "$as_me:7928: \$? = $ac_status" >&5
7929 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7930 then
7931 # The compiler can only warn and ignore the option if not recognized
7932 # So say no if there are warnings
7933 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7934 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7935 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7936 lt_cv_prog_compiler_c_o=yes
7937 fi
7938 fi
7939 chmod u+w . 2>&5
7940 $rm conftest*
7941 # SGI C++ compiler will create directory out/ii_files/ for
7942 # template instantiation
7943 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7944 $rm out/* && rmdir out
7945 cd ..
7946 rmdir conftest
7947 $rm conftest*
7948
7949 fi
7950 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7951 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7952
7953
7954 hard_links="nottested"
7955 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7956 # do not overwrite the value of need_locks provided by the user
7957 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7958 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7959 hard_links=yes
7960 $rm conftest*
7961 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7962 touch conftest.a
7963 ln conftest.a conftest.b 2>&5 || hard_links=no
7964 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7965 { echo "$as_me:$LINENO: result: $hard_links" >&5
7966 echo "${ECHO_T}$hard_links" >&6; }
7967 if test "$hard_links" = no; then
7968 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7969 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7970 need_locks=warn
7971 fi
7972 else
7973 need_locks=no
7974 fi
7975
7976 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7977 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7978
7979 runpath_var=
7980 allow_undefined_flag=
7981 enable_shared_with_static_runtimes=no
7982 archive_cmds=
7983 archive_expsym_cmds=
7984 old_archive_From_new_cmds=
7985 old_archive_from_expsyms_cmds=
7986 export_dynamic_flag_spec=
7987 whole_archive_flag_spec=
7988 thread_safe_flag_spec=
7989 hardcode_libdir_flag_spec=
7990 hardcode_libdir_flag_spec_ld=
7991 hardcode_libdir_separator=
7992 hardcode_direct=no
7993 hardcode_minus_L=no
7994 hardcode_shlibpath_var=unsupported
7995 link_all_deplibs=unknown
7996 hardcode_automatic=no
7997 module_cmds=
7998 module_expsym_cmds=
7999 always_export_symbols=no
8000 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8001 # include_expsyms should be a list of space-separated symbols to be *always*
8002 # included in the symbol list
8003 include_expsyms=
8004 # exclude_expsyms can be an extended regexp of symbols to exclude
8005 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8006 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8007 # as well as any symbol that contains `d'.
8008 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8009 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8010 # platforms (ab)use it in PIC code, but their linkers get confused if
8011 # the symbol is explicitly referenced. Since portable code cannot
8012 # rely on this symbol name, it's probably fine to never include it in
8013 # preloaded symbol tables.
8014 extract_expsyms_cmds=
8015 # Just being paranoid about ensuring that cc_basename is set.
8016 for cc_temp in $compiler""; do
8017 case $cc_temp in
8018 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8019 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8020 \-*) ;;
8021 *) break;;
8022 esac
8023 done
8024 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8025
8026 case $host_os in
8027 cygwin* | mingw* | pw32*)
8028 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8029 # When not using gcc, we currently assume that we are using
8030 # Microsoft Visual C++.
8031 if test "$GCC" != yes; then
8032 with_gnu_ld=no
8033 fi
8034 ;;
8035 interix*)
8036 # we just hope/assume this is gcc and not c89 (= MSVC++)
8037 with_gnu_ld=yes
8038 ;;
8039 openbsd*)
8040 with_gnu_ld=no
8041 ;;
8042 esac
8043
8044 ld_shlibs=yes
8045 if test "$with_gnu_ld" = yes; then
8046 # If archive_cmds runs LD, not CC, wlarc should be empty
8047 wlarc='${wl}'
8048
8049 # Set some defaults for GNU ld with shared library support. These
8050 # are reset later if shared libraries are not supported. Putting them
8051 # here allows them to be overridden if necessary.
8052 runpath_var=LD_RUN_PATH
8053 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8054 export_dynamic_flag_spec='${wl}--export-dynamic'
8055 # ancient GNU ld didn't support --whole-archive et. al.
8056 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8057 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8058 else
8059 whole_archive_flag_spec=
8060 fi
8061 supports_anon_versioning=no
8062 case `$LD -v 2>/dev/null` in
8063 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8064 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8065 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8066 *\ 2.11.*) ;; # other 2.11 versions
8067 *) supports_anon_versioning=yes ;;
8068 esac
8069
8070 # See if GNU ld supports shared libraries.
8071 case $host_os in
8072 aix3* | aix4* | aix5*)
8073 # On AIX/PPC, the GNU linker is very broken
8074 if test "$host_cpu" != ia64; then
8075 ld_shlibs=no
8076 cat <<EOF 1>&2
8077
8078 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8079 *** to be unable to reliably create shared libraries on AIX.
8080 *** Therefore, libtool is disabling shared libraries support. If you
8081 *** really care for shared libraries, you may want to modify your PATH
8082 *** so that a non-GNU linker is found, and then restart.
8083
8084 EOF
8085 fi
8086 ;;
8087
8088 amigaos*)
8089 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)'
8090 hardcode_libdir_flag_spec='-L$libdir'
8091 hardcode_minus_L=yes
8092
8093 # Samuel A. Falvo II <[email protected]> reports
8094 # that the semantics of dynamic libraries on AmigaOS, at least up
8095 # to version 4, is to share data among multiple programs linked
8096 # with the same dynamic library. Since this doesn't match the
8097 # behavior of shared libraries on other platforms, we can't use
8098 # them.
8099 ld_shlibs=no
8100 ;;
8101
8102 beos*)
8103 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8104 allow_undefined_flag=unsupported
8105 # Joseph Beckenbach <[email protected]> says some releases of gcc
8106 # support --undefined. This deserves some investigation. FIXME
8107 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8108 else
8109 ld_shlibs=no
8110 fi
8111 ;;
8112
8113 cygwin* | mingw* | pw32*)
8114 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8115 # as there is no search path for DLLs.
8116 hardcode_libdir_flag_spec='-L$libdir'
8117 allow_undefined_flag=unsupported
8118 always_export_symbols=no
8119 enable_shared_with_static_runtimes=yes
8120 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8121
8122 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8123 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8124 # If the export-symbols file already is a .def file (1st line
8125 # is EXPORTS), use it as is; otherwise, prepend...
8126 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8127 cp $export_symbols $output_objdir/$soname.def;
8128 else
8129 echo EXPORTS > $output_objdir/$soname.def;
8130 cat $export_symbols >> $output_objdir/$soname.def;
8131 fi~
8132 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8133 else
8134 ld_shlibs=no
8135 fi
8136 ;;
8137
8138 interix3*)
8139 hardcode_direct=no
8140 hardcode_shlibpath_var=no
8141 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8142 export_dynamic_flag_spec='${wl}-E'
8143 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8144 # Instead, shared libraries are loaded at an image base (0x10000000 by
8145 # default) and relocated if they conflict, which is a slow very memory
8146 # consuming and fragmenting process. To avoid this, we pick a random,
8147 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8148 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8149 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8150 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'
8151 ;;
8152
8153 linux*)
8154 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8155 tmp_addflag=
8156 case $cc_basename,$host_cpu in
8157 pgcc*) # Portland Group C compiler
8158 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'
8159 tmp_addflag=' $pic_flag'
8160 ;;
8161 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8162 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'
8163 tmp_addflag=' $pic_flag -Mnomain' ;;
8164 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8165 tmp_addflag=' -i_dynamic' ;;
8166 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8167 tmp_addflag=' -i_dynamic -nofor_main' ;;
8168 ifc* | ifort*) # Intel Fortran compiler
8169 tmp_addflag=' -nofor_main' ;;
8170 esac
8171 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8172
8173 if test $supports_anon_versioning = yes; then
8174 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8175 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8176 $echo "local: *; };" >> $output_objdir/$libname.ver~
8177 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8178 fi
8179 else
8180 ld_shlibs=no
8181 fi
8182 ;;
8183
8184 netbsd*)
8185 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8186 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8187 wlarc=
8188 else
8189 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8190 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8191 fi
8192 ;;
8193
8194 solaris*)
8195 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8196 ld_shlibs=no
8197 cat <<EOF 1>&2
8198
8199 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8200 *** create shared libraries on Solaris systems. Therefore, libtool
8201 *** is disabling shared libraries support. We urge you to upgrade GNU
8202 *** binutils to release 2.9.1 or newer. Another option is to modify
8203 *** your PATH or compiler configuration so that the native linker is
8204 *** used, and then restart.
8205
8206 EOF
8207 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8208 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8209 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8210 else
8211 ld_shlibs=no
8212 fi
8213 ;;
8214
8215 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8216 case `$LD -v 2>&1` in
8217 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8218 ld_shlibs=no
8219 cat <<_LT_EOF 1>&2
8220
8221 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8222 *** reliably create shared libraries on SCO systems. Therefore, libtool
8223 *** is disabling shared libraries support. We urge you to upgrade GNU
8224 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8225 *** your PATH or compiler configuration so that the native linker is
8226 *** used, and then restart.
8227
8228 _LT_EOF
8229 ;;
8230 *)
8231 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8232 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8233 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8234 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8235 else
8236 ld_shlibs=no
8237 fi
8238 ;;
8239 esac
8240 ;;
8241
8242 sunos4*)
8243 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8244 wlarc=
8245 hardcode_direct=yes
8246 hardcode_shlibpath_var=no
8247 ;;
8248
8249 *)
8250 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8251 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8252 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8253 else
8254 ld_shlibs=no
8255 fi
8256 ;;
8257 esac
8258
8259 if test "$ld_shlibs" = no; then
8260 runpath_var=
8261 hardcode_libdir_flag_spec=
8262 export_dynamic_flag_spec=
8263 whole_archive_flag_spec=
8264 fi
8265 else
8266 # PORTME fill in a description of your system's linker (not GNU ld)
8267 case $host_os in
8268 aix3*)
8269 allow_undefined_flag=unsupported
8270 always_export_symbols=yes
8271 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'
8272 # Note: this linker hardcodes the directories in LIBPATH if there
8273 # are no directories specified by -L.
8274 hardcode_minus_L=yes
8275 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8276 # Neither direct hardcoding nor static linking is supported with a
8277 # broken collect2.
8278 hardcode_direct=unsupported
8279 fi
8280 ;;
8281
8282 aix4* | aix5*)
8283 if test "$host_cpu" = ia64; then
8284 # On IA64, the linker does run time linking by default, so we don't
8285 # have to do anything special.
8286 aix_use_runtimelinking=no
8287 exp_sym_flag='-Bexport'
8288 no_entry_flag=""
8289 else
8290 # If we're using GNU nm, then we don't want the "-C" option.
8291 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8292 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8293 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'
8294 else
8295 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'
8296 fi
8297 aix_use_runtimelinking=no
8298
8299 # Test if we are trying to use run time linking or normal
8300 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8301 # need to do runtime linking.
8302 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8303 for ld_flag in $LDFLAGS; do
8304 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8305 aix_use_runtimelinking=yes
8306 break
8307 fi
8308 done
8309 ;;
8310 esac
8311
8312 exp_sym_flag='-bexport'
8313 no_entry_flag='-bnoentry'
8314 fi
8315
8316 # When large executables or shared objects are built, AIX ld can
8317 # have problems creating the table of contents. If linking a library
8318 # or program results in "error TOC overflow" add -mminimal-toc to
8319 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8320 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8321
8322 archive_cmds=''
8323 hardcode_direct=yes
8324 hardcode_libdir_separator=':'
8325 link_all_deplibs=yes
8326
8327 if test "$GCC" = yes; then
8328 case $host_os in aix4.[012]|aix4.[012].*)
8329 # We only want to do this on AIX 4.2 and lower, the check
8330 # below for broken collect2 doesn't work under 4.3+
8331 collect2name=`${CC} -print-prog-name=collect2`
8332 if test -f "$collect2name" && \
8333 strings "$collect2name" | grep resolve_lib_name >/dev/null
8334 then
8335 # We have reworked collect2
8336 hardcode_direct=yes
8337 else
8338 # We have old collect2
8339 hardcode_direct=unsupported
8340 # It fails to find uninstalled libraries when the uninstalled
8341 # path is not listed in the libpath. Setting hardcode_minus_L
8342 # to unsupported forces relinking
8343 hardcode_minus_L=yes
8344 hardcode_libdir_flag_spec='-L$libdir'
8345 hardcode_libdir_separator=
8346 fi
8347 ;;
8348 esac
8349 shared_flag='-shared'
8350 if test "$aix_use_runtimelinking" = yes; then
8351 shared_flag="$shared_flag "'${wl}-G'
8352 fi
8353 else
8354 # not using gcc
8355 if test "$host_cpu" = ia64; then
8356 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8357 # chokes on -Wl,-G. The following line is correct:
8358 shared_flag='-G'
8359 else
8360 if test "$aix_use_runtimelinking" = yes; then
8361 shared_flag='${wl}-G'
8362 else
8363 shared_flag='${wl}-bM:SRE'
8364 fi
8365 fi
8366 fi
8367
8368 # It seems that -bexpall does not export symbols beginning with
8369 # underscore (_), so it is better to generate a list of symbols to export.
8370 always_export_symbols=yes
8371 if test "$aix_use_runtimelinking" = yes; then
8372 # Warning - without using the other runtime loading flags (-brtl),
8373 # -berok will link without error, but may produce a broken library.
8374 allow_undefined_flag='-berok'
8375 # Determine the default libpath from the value encoded in an empty executable.
8376 cat >conftest.$ac_ext <<_ACEOF
8377 /* confdefs.h. */
8378 _ACEOF
8379 cat confdefs.h >>conftest.$ac_ext
8380 cat >>conftest.$ac_ext <<_ACEOF
8381 /* end confdefs.h. */
8382
8383 int
8384 main ()
8385 {
8386
8387 ;
8388 return 0;
8389 }
8390 _ACEOF
8391 rm -f conftest.$ac_objext conftest$ac_exeext
8392 if { (ac_try="$ac_link"
8393 case "(($ac_try" in
8394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8395 *) ac_try_echo=$ac_try;;
8396 esac
8397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8398 (eval "$ac_link") 2>conftest.er1
8399 ac_status=$?
8400 grep -v '^ *+' conftest.er1 >conftest.err
8401 rm -f conftest.er1
8402 cat conftest.err >&5
8403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404 (exit $ac_status); } &&
8405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8406 { (case "(($ac_try" in
8407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8408 *) ac_try_echo=$ac_try;;
8409 esac
8410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8411 (eval "$ac_try") 2>&5
8412 ac_status=$?
8413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414 (exit $ac_status); }; } &&
8415 { ac_try='test -s conftest$ac_exeext'
8416 { (case "(($ac_try" in
8417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8418 *) ac_try_echo=$ac_try;;
8419 esac
8420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8421 (eval "$ac_try") 2>&5
8422 ac_status=$?
8423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424 (exit $ac_status); }; }; then
8425
8426 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8427 }'`
8428 # Check for a 64-bit object if we didn't find anything.
8429 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8430 }'`; fi
8431 else
8432 echo "$as_me: failed program was:" >&5
8433 sed 's/^/| /' conftest.$ac_ext >&5
8434
8435
8436 fi
8437
8438 rm -f core conftest.err conftest.$ac_objext \
8439 conftest$ac_exeext conftest.$ac_ext
8440 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8441
8442 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8443 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"
8444 else
8445 if test "$host_cpu" = ia64; then
8446 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8447 allow_undefined_flag="-z nodefs"
8448 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"
8449 else
8450 # Determine the default libpath from the value encoded in an empty executable.
8451 cat >conftest.$ac_ext <<_ACEOF
8452 /* confdefs.h. */
8453 _ACEOF
8454 cat confdefs.h >>conftest.$ac_ext
8455 cat >>conftest.$ac_ext <<_ACEOF
8456 /* end confdefs.h. */
8457
8458 int
8459 main ()
8460 {
8461
8462 ;
8463 return 0;
8464 }
8465 _ACEOF
8466 rm -f conftest.$ac_objext conftest$ac_exeext
8467 if { (ac_try="$ac_link"
8468 case "(($ac_try" in
8469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8470 *) ac_try_echo=$ac_try;;
8471 esac
8472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8473 (eval "$ac_link") 2>conftest.er1
8474 ac_status=$?
8475 grep -v '^ *+' conftest.er1 >conftest.err
8476 rm -f conftest.er1
8477 cat conftest.err >&5
8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 (exit $ac_status); } &&
8480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8481 { (case "(($ac_try" in
8482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8483 *) ac_try_echo=$ac_try;;
8484 esac
8485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8486 (eval "$ac_try") 2>&5
8487 ac_status=$?
8488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 (exit $ac_status); }; } &&
8490 { ac_try='test -s conftest$ac_exeext'
8491 { (case "(($ac_try" in
8492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8493 *) ac_try_echo=$ac_try;;
8494 esac
8495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8496 (eval "$ac_try") 2>&5
8497 ac_status=$?
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); }; }; then
8500
8501 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8502 }'`
8503 # Check for a 64-bit object if we didn't find anything.
8504 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8505 }'`; fi
8506 else
8507 echo "$as_me: failed program was:" >&5
8508 sed 's/^/| /' conftest.$ac_ext >&5
8509
8510
8511 fi
8512
8513 rm -f core conftest.err conftest.$ac_objext \
8514 conftest$ac_exeext conftest.$ac_ext
8515 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8516
8517 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8518 # Warning - without using the other run time loading flags,
8519 # -berok will link without error, but may produce a broken library.
8520 no_undefined_flag=' ${wl}-bernotok'
8521 allow_undefined_flag=' ${wl}-berok'
8522 # Exported symbols can be pulled into shared objects from archives
8523 whole_archive_flag_spec='$convenience'
8524 archive_cmds_need_lc=yes
8525 # This is similar to how AIX traditionally builds its shared libraries.
8526 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'
8527 fi
8528 fi
8529 ;;
8530
8531 amigaos*)
8532 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)'
8533 hardcode_libdir_flag_spec='-L$libdir'
8534 hardcode_minus_L=yes
8535 # see comment about different semantics on the GNU ld section
8536 ld_shlibs=no
8537 ;;
8538
8539 bsdi[45]*)
8540 export_dynamic_flag_spec=-rdynamic
8541 ;;
8542
8543 cygwin* | mingw* | pw32*)
8544 # When not using gcc, we currently assume that we are using
8545 # Microsoft Visual C++.
8546 # hardcode_libdir_flag_spec is actually meaningless, as there is
8547 # no search path for DLLs.
8548 hardcode_libdir_flag_spec=' '
8549 allow_undefined_flag=unsupported
8550 # Tell ltmain to make .lib files, not .a files.
8551 libext=lib
8552 # Tell ltmain to make .dll files, not .so files.
8553 shrext_cmds=".dll"
8554 # FIXME: Setting linknames here is a bad hack.
8555 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8556 # The linker will automatically build a .lib file if we build a DLL.
8557 old_archive_From_new_cmds='true'
8558 # FIXME: Should let the user specify the lib program.
8559 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8560 fix_srcfile_path='`cygpath -w "$srcfile"`'
8561 enable_shared_with_static_runtimes=yes
8562 ;;
8563
8564 darwin* | rhapsody*)
8565 case $host_os in
8566 rhapsody* | darwin1.[012])
8567 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8568 ;;
8569 *) # Darwin 1.3 on
8570 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8571 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8572 else
8573 case ${MACOSX_DEPLOYMENT_TARGET} in
8574 10.[012])
8575 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8576 ;;
8577 10.*)
8578 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8579 ;;
8580 esac
8581 fi
8582 ;;
8583 esac
8584 archive_cmds_need_lc=no
8585 hardcode_direct=no
8586 hardcode_automatic=yes
8587 hardcode_shlibpath_var=unsupported
8588 whole_archive_flag_spec=''
8589 link_all_deplibs=yes
8590 if test "$GCC" = yes ; then
8591 output_verbose_link_cmd='echo'
8592 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8593 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8594 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8595 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8596 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}'
8597 else
8598 case $cc_basename in
8599 xlc*)
8600 output_verbose_link_cmd='echo'
8601 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8602 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8603 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8604 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8605 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}'
8606 ;;
8607 *)
8608 ld_shlibs=no
8609 ;;
8610 esac
8611 fi
8612 ;;
8613
8614 dgux*)
8615 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8616 hardcode_libdir_flag_spec='-L$libdir'
8617 hardcode_shlibpath_var=no
8618 ;;
8619
8620 freebsd1*)
8621 ld_shlibs=no
8622 ;;
8623
8624 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8625 # support. Future versions do this automatically, but an explicit c++rt0.o
8626 # does not break anything, and helps significantly (at the cost of a little
8627 # extra space).
8628 freebsd2.2*)
8629 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8630 hardcode_libdir_flag_spec='-R$libdir'
8631 hardcode_direct=yes
8632 hardcode_shlibpath_var=no
8633 ;;
8634
8635 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8636 freebsd2*)
8637 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8638 hardcode_direct=yes
8639 hardcode_minus_L=yes
8640 hardcode_shlibpath_var=no
8641 ;;
8642
8643 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8644 freebsd* | kfreebsd*-gnu | dragonfly*)
8645 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8646 hardcode_libdir_flag_spec='-R$libdir'
8647 hardcode_direct=yes
8648 hardcode_shlibpath_var=no
8649 ;;
8650
8651 hpux9*)
8652 if test "$GCC" = yes; then
8653 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'
8654 else
8655 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'
8656 fi
8657 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8658 hardcode_libdir_separator=:
8659 hardcode_direct=yes
8660
8661 # hardcode_minus_L: Not really in the search PATH,
8662 # but as the default location of the library.
8663 hardcode_minus_L=yes
8664 export_dynamic_flag_spec='${wl}-E'
8665 ;;
8666
8667 hpux10*)
8668 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8669 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8670 else
8671 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8672 fi
8673 if test "$with_gnu_ld" = no; then
8674 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8675 hardcode_libdir_separator=:
8676
8677 hardcode_direct=yes
8678 export_dynamic_flag_spec='${wl}-E'
8679
8680 # hardcode_minus_L: Not really in the search PATH,
8681 # but as the default location of the library.
8682 hardcode_minus_L=yes
8683 fi
8684 ;;
8685
8686 hpux11*)
8687 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8688 case $host_cpu in
8689 hppa*64*)
8690 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8691 ;;
8692 ia64*)
8693 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8694 ;;
8695 *)
8696 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8697 ;;
8698 esac
8699 else
8700 case $host_cpu in
8701 hppa*64*)
8702 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8703 ;;
8704 ia64*)
8705 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8706 ;;
8707 *)
8708 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8709 ;;
8710 esac
8711 fi
8712 if test "$with_gnu_ld" = no; then
8713 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8714 hardcode_libdir_separator=:
8715
8716 case $host_cpu in
8717 hppa*64*|ia64*)
8718 hardcode_libdir_flag_spec_ld='+b $libdir'
8719 hardcode_direct=no
8720 hardcode_shlibpath_var=no
8721 ;;
8722 *)
8723 hardcode_direct=yes
8724 export_dynamic_flag_spec='${wl}-E'
8725
8726 # hardcode_minus_L: Not really in the search PATH,
8727 # but as the default location of the library.
8728 hardcode_minus_L=yes
8729 ;;
8730 esac
8731 fi
8732 ;;
8733
8734 irix5* | irix6* | nonstopux*)
8735 if test "$GCC" = yes; then
8736 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'
8737 else
8738 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'
8739 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8740 fi
8741 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8742 hardcode_libdir_separator=:
8743 link_all_deplibs=yes
8744 ;;
8745
8746 netbsd*)
8747 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8748 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8749 else
8750 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8751 fi
8752 hardcode_libdir_flag_spec='-R$libdir'
8753 hardcode_direct=yes
8754 hardcode_shlibpath_var=no
8755 ;;
8756
8757 newsos6)
8758 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8759 hardcode_direct=yes
8760 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8761 hardcode_libdir_separator=:
8762 hardcode_shlibpath_var=no
8763 ;;
8764
8765 openbsd*)
8766 hardcode_direct=yes
8767 hardcode_shlibpath_var=no
8768 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8769 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8770 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8771 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8772 export_dynamic_flag_spec='${wl}-E'
8773 else
8774 case $host_os in
8775 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8776 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8777 hardcode_libdir_flag_spec='-R$libdir'
8778 ;;
8779 *)
8780 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8781 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8782 ;;
8783 esac
8784 fi
8785 ;;
8786
8787 os2*)
8788 hardcode_libdir_flag_spec='-L$libdir'
8789 hardcode_minus_L=yes
8790 allow_undefined_flag=unsupported
8791 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'
8792 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8793 ;;
8794
8795 osf3*)
8796 if test "$GCC" = yes; then
8797 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8798 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'
8799 else
8800 allow_undefined_flag=' -expect_unresolved \*'
8801 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'
8802 fi
8803 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8804 hardcode_libdir_separator=:
8805 ;;
8806
8807 osf4* | osf5*) # as osf3* with the addition of -msym flag
8808 if test "$GCC" = yes; then
8809 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8810 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'
8811 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8812 else
8813 allow_undefined_flag=' -expect_unresolved \*'
8814 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'
8815 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8816 $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'
8817
8818 # Both c and cxx compiler support -rpath directly
8819 hardcode_libdir_flag_spec='-rpath $libdir'
8820 fi
8821 hardcode_libdir_separator=:
8822 ;;
8823
8824 solaris*)
8825 no_undefined_flag=' -z text'
8826 if test "$GCC" = yes; then
8827 wlarc='${wl}'
8828 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8829 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8830 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8831 else
8832 wlarc=''
8833 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8834 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8835 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8836 fi
8837 hardcode_libdir_flag_spec='-R$libdir'
8838 hardcode_shlibpath_var=no
8839 case $host_os in
8840 solaris2.[0-5] | solaris2.[0-5].*) ;;
8841 *)
8842 # The compiler driver will combine linker options so we
8843 # cannot just pass the convience library names through
8844 # without $wl, iff we do not link with $LD.
8845 # Luckily, gcc supports the same syntax we need for Sun Studio.
8846 # Supported since Solaris 2.6 (maybe 2.5.1?)
8847 case $wlarc in
8848 '')
8849 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8850 *)
8851 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8852 esac ;;
8853 esac
8854 link_all_deplibs=yes
8855 ;;
8856
8857 sunos4*)
8858 if test "x$host_vendor" = xsequent; then
8859 # Use $CC to link under sequent, because it throws in some extra .o
8860 # files that make .init and .fini sections work.
8861 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8862 else
8863 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8864 fi
8865 hardcode_libdir_flag_spec='-L$libdir'
8866 hardcode_direct=yes
8867 hardcode_minus_L=yes
8868 hardcode_shlibpath_var=no
8869 ;;
8870
8871 sysv4)
8872 case $host_vendor in
8873 sni)
8874 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8875 hardcode_direct=yes # is this really true???
8876 ;;
8877 siemens)
8878 ## LD is ld it makes a PLAMLIB
8879 ## CC just makes a GrossModule.
8880 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8881 reload_cmds='$CC -r -o $output$reload_objs'
8882 hardcode_direct=no
8883 ;;
8884 motorola)
8885 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8886 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8887 ;;
8888 esac
8889 runpath_var='LD_RUN_PATH'
8890 hardcode_shlibpath_var=no
8891 ;;
8892
8893 sysv4.3*)
8894 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8895 hardcode_shlibpath_var=no
8896 export_dynamic_flag_spec='-Bexport'
8897 ;;
8898
8899 sysv4*MP*)
8900 if test -d /usr/nec; then
8901 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8902 hardcode_shlibpath_var=no
8903 runpath_var=LD_RUN_PATH
8904 hardcode_runpath_var=yes
8905 ld_shlibs=yes
8906 fi
8907 ;;
8908
8909 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8910 no_undefined_flag='${wl}-z,text'
8911 archive_cmds_need_lc=no
8912 hardcode_shlibpath_var=no
8913 runpath_var='LD_RUN_PATH'
8914
8915 if test "$GCC" = yes; then
8916 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8917 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8918 else
8919 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8920 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8921 fi
8922 ;;
8923
8924 sysv5* | sco3.2v5* | sco5v6*)
8925 # Note: We can NOT use -z defs as we might desire, because we do not
8926 # link with -lc, and that would cause any symbols used from libc to
8927 # always be unresolved, which means just about no library would
8928 # ever link correctly. If we're not using GNU ld we use -z text
8929 # though, which does catch some bad symbols but isn't as heavy-handed
8930 # as -z defs.
8931 no_undefined_flag='${wl}-z,text'
8932 allow_undefined_flag='${wl}-z,nodefs'
8933 archive_cmds_need_lc=no
8934 hardcode_shlibpath_var=no
8935 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8936 hardcode_libdir_separator=':'
8937 link_all_deplibs=yes
8938 export_dynamic_flag_spec='${wl}-Bexport'
8939 runpath_var='LD_RUN_PATH'
8940
8941 if test "$GCC" = yes; then
8942 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8943 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8944 else
8945 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8946 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8947 fi
8948 ;;
8949
8950 uts4*)
8951 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8952 hardcode_libdir_flag_spec='-L$libdir'
8953 hardcode_shlibpath_var=no
8954 ;;
8955
8956 *)
8957 ld_shlibs=no
8958 ;;
8959 esac
8960 fi
8961
8962 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8963 echo "${ECHO_T}$ld_shlibs" >&6; }
8964 test "$ld_shlibs" = no && can_build_shared=no
8965
8966 #
8967 # Do we need to explicitly link libc?
8968 #
8969 case "x$archive_cmds_need_lc" in
8970 x|xyes)
8971 # Assume -lc should be added
8972 archive_cmds_need_lc=yes
8973
8974 if test "$enable_shared" = yes && test "$GCC" = yes; then
8975 case $archive_cmds in
8976 *'~'*)
8977 # FIXME: we may have to deal with multi-command sequences.
8978 ;;
8979 '$CC '*)
8980 # Test whether the compiler implicitly links with -lc since on some
8981 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8982 # to ld, don't add -lc before -lgcc.
8983 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8984 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8985 $rm conftest*
8986 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8987
8988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8989 (eval $ac_compile) 2>&5
8990 ac_status=$?
8991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992 (exit $ac_status); } 2>conftest.err; then
8993 soname=conftest
8994 lib=conftest
8995 libobjs=conftest.$ac_objext
8996 deplibs=
8997 wl=$lt_prog_compiler_wl
8998 pic_flag=$lt_prog_compiler_pic
8999 compiler_flags=-v
9000 linker_flags=-v
9001 verstring=
9002 output_objdir=.
9003 libname=conftest
9004 lt_save_allow_undefined_flag=$allow_undefined_flag
9005 allow_undefined_flag=
9006 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9007 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9008 ac_status=$?
9009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 (exit $ac_status); }
9011 then
9012 archive_cmds_need_lc=no
9013 else
9014 archive_cmds_need_lc=yes
9015 fi
9016 allow_undefined_flag=$lt_save_allow_undefined_flag
9017 else
9018 cat conftest.err 1>&5
9019 fi
9020 $rm conftest*
9021 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9022 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9023 ;;
9024 esac
9025 fi
9026 ;;
9027 esac
9028
9029 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9030 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9031 library_names_spec=
9032 libname_spec='lib$name'
9033 soname_spec=
9034 shrext_cmds=".so"
9035 postinstall_cmds=
9036 postuninstall_cmds=
9037 finish_cmds=
9038 finish_eval=
9039 shlibpath_var=
9040 shlibpath_overrides_runpath=unknown
9041 version_type=none
9042 dynamic_linker="$host_os ld.so"
9043 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9044 if test "$GCC" = yes; then
9045 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9046 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9047 # if the path contains ";" then we assume it to be the separator
9048 # otherwise default to the standard path separator (i.e. ":") - it is
9049 # assumed that no part of a normal pathname contains ";" but that should
9050 # okay in the real world where ";" in dirpaths is itself problematic.
9051 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9052 else
9053 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9054 fi
9055 else
9056 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9057 fi
9058 need_lib_prefix=unknown
9059 hardcode_into_libs=no
9060
9061 # when you set need_version to no, make sure it does not cause -set_version
9062 # flags to be left without arguments
9063 need_version=unknown
9064
9065 case $host_os in
9066 aix3*)
9067 version_type=linux
9068 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9069 shlibpath_var=LIBPATH
9070
9071 # AIX 3 has no versioning support, so we append a major version to the name.
9072 soname_spec='${libname}${release}${shared_ext}$major'
9073 ;;
9074
9075 aix4* | aix5*)
9076 version_type=linux
9077 need_lib_prefix=no
9078 need_version=no
9079 hardcode_into_libs=yes
9080 if test "$host_cpu" = ia64; then
9081 # AIX 5 supports IA64
9082 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9083 shlibpath_var=LD_LIBRARY_PATH
9084 else
9085 # With GCC up to 2.95.x, collect2 would create an import file
9086 # for dependence libraries. The import file would start with
9087 # the line `#! .'. This would cause the generated library to
9088 # depend on `.', always an invalid library. This was fixed in
9089 # development snapshots of GCC prior to 3.0.
9090 case $host_os in
9091 aix4 | aix4.[01] | aix4.[01].*)
9092 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9093 echo ' yes '
9094 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9095 :
9096 else
9097 can_build_shared=no
9098 fi
9099 ;;
9100 esac
9101 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9102 # soname into executable. Probably we can add versioning support to
9103 # collect2, so additional links can be useful in future.
9104 if test "$aix_use_runtimelinking" = yes; then
9105 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9106 # instead of lib<name>.a to let people know that these are not
9107 # typical AIX shared libraries.
9108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9109 else
9110 # We preserve .a as extension for shared libraries through AIX4.2
9111 # and later when we are not doing run time linking.
9112 library_names_spec='${libname}${release}.a $libname.a'
9113 soname_spec='${libname}${release}${shared_ext}$major'
9114 fi
9115 shlibpath_var=LIBPATH
9116 fi
9117 ;;
9118
9119 amigaos*)
9120 library_names_spec='$libname.ixlibrary $libname.a'
9121 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9122 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'
9123 ;;
9124
9125 beos*)
9126 library_names_spec='${libname}${shared_ext}'
9127 dynamic_linker="$host_os ld.so"
9128 shlibpath_var=LIBRARY_PATH
9129 ;;
9130
9131 bsdi[45]*)
9132 version_type=linux
9133 need_version=no
9134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9135 soname_spec='${libname}${release}${shared_ext}$major'
9136 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9137 shlibpath_var=LD_LIBRARY_PATH
9138 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9139 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9140 # the default ld.so.conf also contains /usr/contrib/lib and
9141 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9142 # libtool to hard-code these into programs
9143 ;;
9144
9145 cygwin* | mingw* | pw32*)
9146 version_type=windows
9147 shrext_cmds=".dll"
9148 need_version=no
9149 need_lib_prefix=no
9150
9151 case $GCC,$host_os in
9152 yes,cygwin* | yes,mingw* | yes,pw32*)
9153 library_names_spec='$libname.dll.a'
9154 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9155 postinstall_cmds='base_file=`basename \${file}`~
9156 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9157 dldir=$destdir/`dirname \$dlpath`~
9158 test -d \$dldir || mkdir -p \$dldir~
9159 $install_prog $dir/$dlname \$dldir/$dlname~
9160 chmod a+x \$dldir/$dlname'
9161 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9162 dlpath=$dir/\$dldll~
9163 $rm \$dlpath'
9164 shlibpath_overrides_runpath=yes
9165
9166 case $host_os in
9167 cygwin*)
9168 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9169 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9170 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9171 ;;
9172 mingw*)
9173 # MinGW DLLs use traditional 'lib' prefix
9174 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9175 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9176 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9177 # It is most probably a Windows format PATH printed by
9178 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9179 # path with ; separators, and with drive letters. We can handle the
9180 # drive letters (cygwin fileutils understands them), so leave them,
9181 # especially as we might pass files found there to a mingw objdump,
9182 # which wouldn't understand a cygwinified path. Ahh.
9183 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9184 else
9185 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9186 fi
9187 ;;
9188 pw32*)
9189 # pw32 DLLs use 'pw' prefix rather than 'lib'
9190 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9191 ;;
9192 esac
9193 ;;
9194
9195 *)
9196 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9197 ;;
9198 esac
9199 dynamic_linker='Win32 ld.exe'
9200 # FIXME: first we should search . and the directory the executable is in
9201 shlibpath_var=PATH
9202 ;;
9203
9204 darwin* | rhapsody*)
9205 dynamic_linker="$host_os dyld"
9206 version_type=darwin
9207 need_lib_prefix=no
9208 need_version=no
9209 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9210 soname_spec='${libname}${release}${major}$shared_ext'
9211 shlibpath_overrides_runpath=yes
9212 shlibpath_var=DYLD_LIBRARY_PATH
9213 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9214 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9215 if test "$GCC" = yes; then
9216 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9217 else
9218 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9219 fi
9220 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9221 ;;
9222
9223 dgux*)
9224 version_type=linux
9225 need_lib_prefix=no
9226 need_version=no
9227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9228 soname_spec='${libname}${release}${shared_ext}$major'
9229 shlibpath_var=LD_LIBRARY_PATH
9230 ;;
9231
9232 freebsd1*)
9233 dynamic_linker=no
9234 ;;
9235
9236 kfreebsd*-gnu)
9237 version_type=linux
9238 need_lib_prefix=no
9239 need_version=no
9240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9241 soname_spec='${libname}${release}${shared_ext}$major'
9242 shlibpath_var=LD_LIBRARY_PATH
9243 shlibpath_overrides_runpath=no
9244 hardcode_into_libs=yes
9245 dynamic_linker='GNU ld.so'
9246 ;;
9247
9248 freebsd* | dragonfly*)
9249 # DragonFly does not have aout. When/if they implement a new
9250 # versioning mechanism, adjust this.
9251 if test -x /usr/bin/objformat; then
9252 objformat=`/usr/bin/objformat`
9253 else
9254 case $host_os in
9255 freebsd[123]*) objformat=aout ;;
9256 *) objformat=elf ;;
9257 esac
9258 fi
9259 version_type=freebsd-$objformat
9260 case $version_type in
9261 freebsd-elf*)
9262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9263 need_version=no
9264 need_lib_prefix=no
9265 ;;
9266 freebsd-*)
9267 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9268 need_version=yes
9269 ;;
9270 esac
9271 shlibpath_var=LD_LIBRARY_PATH
9272 case $host_os in
9273 freebsd2*)
9274 shlibpath_overrides_runpath=yes
9275 ;;
9276 freebsd3.[01]* | freebsdelf3.[01]*)
9277 shlibpath_overrides_runpath=yes
9278 hardcode_into_libs=yes
9279 ;;
9280 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9281 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9282 shlibpath_overrides_runpath=no
9283 hardcode_into_libs=yes
9284 ;;
9285 freebsd*) # from 4.6 on
9286 shlibpath_overrides_runpath=yes
9287 hardcode_into_libs=yes
9288 ;;
9289 esac
9290 ;;
9291
9292 gnu*)
9293 version_type=linux
9294 need_lib_prefix=no
9295 need_version=no
9296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9297 soname_spec='${libname}${release}${shared_ext}$major'
9298 shlibpath_var=LD_LIBRARY_PATH
9299 hardcode_into_libs=yes
9300 ;;
9301
9302 hpux9* | hpux10* | hpux11*)
9303 # Give a soname corresponding to the major version so that dld.sl refuses to
9304 # link against other versions.
9305 version_type=sunos
9306 need_lib_prefix=no
9307 need_version=no
9308 case $host_cpu in
9309 ia64*)
9310 shrext_cmds='.so'
9311 hardcode_into_libs=yes
9312 dynamic_linker="$host_os dld.so"
9313 shlibpath_var=LD_LIBRARY_PATH
9314 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9316 soname_spec='${libname}${release}${shared_ext}$major'
9317 if test "X$HPUX_IA64_MODE" = X32; then
9318 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9319 else
9320 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9321 fi
9322 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9323 ;;
9324 hppa*64*)
9325 shrext_cmds='.sl'
9326 hardcode_into_libs=yes
9327 dynamic_linker="$host_os dld.sl"
9328 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9329 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9331 soname_spec='${libname}${release}${shared_ext}$major'
9332 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9333 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9334 ;;
9335 *)
9336 shrext_cmds='.sl'
9337 dynamic_linker="$host_os dld.sl"
9338 shlibpath_var=SHLIB_PATH
9339 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9341 soname_spec='${libname}${release}${shared_ext}$major'
9342 ;;
9343 esac
9344 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9345 postinstall_cmds='chmod 555 $lib'
9346 ;;
9347
9348 interix3*)
9349 version_type=linux
9350 need_lib_prefix=no
9351 need_version=no
9352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9353 soname_spec='${libname}${release}${shared_ext}$major'
9354 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9355 shlibpath_var=LD_LIBRARY_PATH
9356 shlibpath_overrides_runpath=no
9357 hardcode_into_libs=yes
9358 ;;
9359
9360 irix5* | irix6* | nonstopux*)
9361 case $host_os in
9362 nonstopux*) version_type=nonstopux ;;
9363 *)
9364 if test "$lt_cv_prog_gnu_ld" = yes; then
9365 version_type=linux
9366 else
9367 version_type=irix
9368 fi ;;
9369 esac
9370 need_lib_prefix=no
9371 need_version=no
9372 soname_spec='${libname}${release}${shared_ext}$major'
9373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9374 case $host_os in
9375 irix5* | nonstopux*)
9376 libsuff= shlibsuff=
9377 ;;
9378 *)
9379 case $LD in # libtool.m4 will add one of these switches to LD
9380 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9381 libsuff= shlibsuff= libmagic=32-bit;;
9382 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9383 libsuff=32 shlibsuff=N32 libmagic=N32;;
9384 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9385 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9386 *) libsuff= shlibsuff= libmagic=never-match;;
9387 esac
9388 ;;
9389 esac
9390 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9391 shlibpath_overrides_runpath=no
9392 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9393 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9394 hardcode_into_libs=yes
9395 ;;
9396
9397 # No shared lib support for Linux oldld, aout, or coff.
9398 linux*oldld* | linux*aout* | linux*coff*)
9399 dynamic_linker=no
9400 ;;
9401
9402 # This must be Linux ELF.
9403 linux*)
9404 version_type=linux
9405 need_lib_prefix=no
9406 need_version=no
9407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9408 soname_spec='${libname}${release}${shared_ext}$major'
9409 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9410 shlibpath_var=LD_LIBRARY_PATH
9411 shlibpath_overrides_runpath=no
9412 # This implies no fast_install, which is unacceptable.
9413 # Some rework will be needed to allow for fast_install
9414 # before this can be enabled.
9415 hardcode_into_libs=yes
9416
9417 # Append ld.so.conf contents to the search path
9418 if test -f /etc/ld.so.conf; then
9419 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9420 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9421 fi
9422
9423 # We used to test for /lib/ld.so.1 and disable shared libraries on
9424 # powerpc, because MkLinux only supported shared libraries with the
9425 # GNU dynamic linker. Since this was broken with cross compilers,
9426 # most powerpc-linux boxes support dynamic linking these days and
9427 # people can always --disable-shared, the test was removed, and we
9428 # assume the GNU/Linux dynamic linker is in use.
9429 dynamic_linker='GNU/Linux ld.so'
9430 ;;
9431
9432 knetbsd*-gnu)
9433 version_type=linux
9434 need_lib_prefix=no
9435 need_version=no
9436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9437 soname_spec='${libname}${release}${shared_ext}$major'
9438 shlibpath_var=LD_LIBRARY_PATH
9439 shlibpath_overrides_runpath=no
9440 hardcode_into_libs=yes
9441 dynamic_linker='GNU ld.so'
9442 ;;
9443
9444 netbsd*)
9445 version_type=sunos
9446 need_lib_prefix=no
9447 need_version=no
9448 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9450 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9451 dynamic_linker='NetBSD (a.out) ld.so'
9452 else
9453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9454 soname_spec='${libname}${release}${shared_ext}$major'
9455 dynamic_linker='NetBSD ld.elf_so'
9456 fi
9457 shlibpath_var=LD_LIBRARY_PATH
9458 shlibpath_overrides_runpath=yes
9459 hardcode_into_libs=yes
9460 ;;
9461
9462 newsos6)
9463 version_type=linux
9464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9465 shlibpath_var=LD_LIBRARY_PATH
9466 shlibpath_overrides_runpath=yes
9467 ;;
9468
9469 nto-qnx*)
9470 version_type=linux
9471 need_lib_prefix=no
9472 need_version=no
9473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9474 soname_spec='${libname}${release}${shared_ext}$major'
9475 shlibpath_var=LD_LIBRARY_PATH
9476 shlibpath_overrides_runpath=yes
9477 ;;
9478
9479 openbsd*)
9480 version_type=sunos
9481 sys_lib_dlsearch_path_spec="/usr/lib"
9482 need_lib_prefix=no
9483 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9484 case $host_os in
9485 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9486 *) need_version=no ;;
9487 esac
9488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9489 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9490 shlibpath_var=LD_LIBRARY_PATH
9491 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9492 case $host_os in
9493 openbsd2.[89] | openbsd2.[89].*)
9494 shlibpath_overrides_runpath=no
9495 ;;
9496 *)
9497 shlibpath_overrides_runpath=yes
9498 ;;
9499 esac
9500 else
9501 shlibpath_overrides_runpath=yes
9502 fi
9503 ;;
9504
9505 os2*)
9506 libname_spec='$name'
9507 shrext_cmds=".dll"
9508 need_lib_prefix=no
9509 library_names_spec='$libname${shared_ext} $libname.a'
9510 dynamic_linker='OS/2 ld.exe'
9511 shlibpath_var=LIBPATH
9512 ;;
9513
9514 osf3* | osf4* | osf5*)
9515 version_type=osf
9516 need_lib_prefix=no
9517 need_version=no
9518 soname_spec='${libname}${release}${shared_ext}$major'
9519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9520 shlibpath_var=LD_LIBRARY_PATH
9521 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9522 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9523 ;;
9524
9525 solaris*)
9526 version_type=linux
9527 need_lib_prefix=no
9528 need_version=no
9529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9530 soname_spec='${libname}${release}${shared_ext}$major'
9531 shlibpath_var=LD_LIBRARY_PATH
9532 shlibpath_overrides_runpath=yes
9533 hardcode_into_libs=yes
9534 # ldd complains unless libraries are executable
9535 postinstall_cmds='chmod +x $lib'
9536 ;;
9537
9538 sunos4*)
9539 version_type=sunos
9540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9541 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9542 shlibpath_var=LD_LIBRARY_PATH
9543 shlibpath_overrides_runpath=yes
9544 if test "$with_gnu_ld" = yes; then
9545 need_lib_prefix=no
9546 fi
9547 need_version=yes
9548 ;;
9549
9550 sysv4 | sysv4.3*)
9551 version_type=linux
9552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9553 soname_spec='${libname}${release}${shared_ext}$major'
9554 shlibpath_var=LD_LIBRARY_PATH
9555 case $host_vendor in
9556 sni)
9557 shlibpath_overrides_runpath=no
9558 need_lib_prefix=no
9559 export_dynamic_flag_spec='${wl}-Blargedynsym'
9560 runpath_var=LD_RUN_PATH
9561 ;;
9562 siemens)
9563 need_lib_prefix=no
9564 ;;
9565 motorola)
9566 need_lib_prefix=no
9567 need_version=no
9568 shlibpath_overrides_runpath=no
9569 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9570 ;;
9571 esac
9572 ;;
9573
9574 sysv4*MP*)
9575 if test -d /usr/nec ;then
9576 version_type=linux
9577 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9578 soname_spec='$libname${shared_ext}.$major'
9579 shlibpath_var=LD_LIBRARY_PATH
9580 fi
9581 ;;
9582
9583 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9584 version_type=freebsd-elf
9585 need_lib_prefix=no
9586 need_version=no
9587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9588 soname_spec='${libname}${release}${shared_ext}$major'
9589 shlibpath_var=LD_LIBRARY_PATH
9590 hardcode_into_libs=yes
9591 if test "$with_gnu_ld" = yes; then
9592 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9593 shlibpath_overrides_runpath=no
9594 else
9595 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9596 shlibpath_overrides_runpath=yes
9597 case $host_os in
9598 sco3.2v5*)
9599 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9600 ;;
9601 esac
9602 fi
9603 sys_lib_dlsearch_path_spec='/usr/lib'
9604 ;;
9605
9606 uts4*)
9607 version_type=linux
9608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9609 soname_spec='${libname}${release}${shared_ext}$major'
9610 shlibpath_var=LD_LIBRARY_PATH
9611 ;;
9612
9613 *)
9614 dynamic_linker=no
9615 ;;
9616 esac
9617 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9618 echo "${ECHO_T}$dynamic_linker" >&6; }
9619 test "$dynamic_linker" = no && can_build_shared=no
9620
9621 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9622 if test "$GCC" = yes; then
9623 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9624 fi
9625
9626 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9627 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9628 hardcode_action=
9629 if test -n "$hardcode_libdir_flag_spec" || \
9630 test -n "$runpath_var" || \
9631 test "X$hardcode_automatic" = "Xyes" ; then
9632
9633 # We can hardcode non-existant directories.
9634 if test "$hardcode_direct" != no &&
9635 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9636 # have to relink, otherwise we might link with an installed library
9637 # when we should be linking with a yet-to-be-installed one
9638 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9639 test "$hardcode_minus_L" != no; then
9640 # Linking always hardcodes the temporary library directory.
9641 hardcode_action=relink
9642 else
9643 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9644 hardcode_action=immediate
9645 fi
9646 else
9647 # We cannot hardcode anything, or else we can only hardcode existing
9648 # directories.
9649 hardcode_action=unsupported
9650 fi
9651 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9652 echo "${ECHO_T}$hardcode_action" >&6; }
9653
9654 if test "$hardcode_action" = relink; then
9655 # Fast installation is not supported
9656 enable_fast_install=no
9657 elif test "$shlibpath_overrides_runpath" = yes ||
9658 test "$enable_shared" = no; then
9659 # Fast installation is not necessary
9660 enable_fast_install=needless
9661 fi
9662
9663 striplib=
9664 old_striplib=
9665 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9666 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9667 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9668 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9669 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9670 { echo "$as_me:$LINENO: result: yes" >&5
9671 echo "${ECHO_T}yes" >&6; }
9672 else
9673 # FIXME - insert some real tests, host_os isn't really good enough
9674 case $host_os in
9675 darwin*)
9676 if test -n "$STRIP" ; then
9677 striplib="$STRIP -x"
9678 { echo "$as_me:$LINENO: result: yes" >&5
9679 echo "${ECHO_T}yes" >&6; }
9680 else
9681 { echo "$as_me:$LINENO: result: no" >&5
9682 echo "${ECHO_T}no" >&6; }
9683 fi
9684 ;;
9685 *)
9686 { echo "$as_me:$LINENO: result: no" >&5
9687 echo "${ECHO_T}no" >&6; }
9688 ;;
9689 esac
9690 fi
9691
9692 if test "x$enable_dlopen" != xyes; then
9693 enable_dlopen=unknown
9694 enable_dlopen_self=unknown
9695 enable_dlopen_self_static=unknown
9696 else
9697 lt_cv_dlopen=no
9698 lt_cv_dlopen_libs=
9699
9700 case $host_os in
9701 beos*)
9702 lt_cv_dlopen="load_add_on"
9703 lt_cv_dlopen_libs=
9704 lt_cv_dlopen_self=yes
9705 ;;
9706
9707 mingw* | pw32*)
9708 lt_cv_dlopen="LoadLibrary"
9709 lt_cv_dlopen_libs=
9710 ;;
9711
9712 cygwin*)
9713 lt_cv_dlopen="dlopen"
9714 lt_cv_dlopen_libs=
9715 ;;
9716
9717 darwin*)
9718 # if libdl is installed we need to link against it
9719 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9720 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9721 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9722 echo $ECHO_N "(cached) $ECHO_C" >&6
9723 else
9724 ac_check_lib_save_LIBS=$LIBS
9725 LIBS="-ldl $LIBS"
9726 cat >conftest.$ac_ext <<_ACEOF
9727 /* confdefs.h. */
9728 _ACEOF
9729 cat confdefs.h >>conftest.$ac_ext
9730 cat >>conftest.$ac_ext <<_ACEOF
9731 /* end confdefs.h. */
9732
9733 /* Override any GCC internal prototype to avoid an error.
9734 Use char because int might match the return type of a GCC
9735 builtin and then its argument prototype would still apply. */
9736 #ifdef __cplusplus
9737 extern "C"
9738 #endif
9739 char dlopen ();
9740 int
9741 main ()
9742 {
9743 return dlopen ();
9744 ;
9745 return 0;
9746 }
9747 _ACEOF
9748 rm -f conftest.$ac_objext conftest$ac_exeext
9749 if { (ac_try="$ac_link"
9750 case "(($ac_try" in
9751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9752 *) ac_try_echo=$ac_try;;
9753 esac
9754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9755 (eval "$ac_link") 2>conftest.er1
9756 ac_status=$?
9757 grep -v '^ *+' conftest.er1 >conftest.err
9758 rm -f conftest.er1
9759 cat conftest.err >&5
9760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761 (exit $ac_status); } &&
9762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9763 { (case "(($ac_try" in
9764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9765 *) ac_try_echo=$ac_try;;
9766 esac
9767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9768 (eval "$ac_try") 2>&5
9769 ac_status=$?
9770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771 (exit $ac_status); }; } &&
9772 { ac_try='test -s conftest$ac_exeext'
9773 { (case "(($ac_try" in
9774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9775 *) ac_try_echo=$ac_try;;
9776 esac
9777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9778 (eval "$ac_try") 2>&5
9779 ac_status=$?
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); }; }; then
9782 ac_cv_lib_dl_dlopen=yes
9783 else
9784 echo "$as_me: failed program was:" >&5
9785 sed 's/^/| /' conftest.$ac_ext >&5
9786
9787 ac_cv_lib_dl_dlopen=no
9788 fi
9789
9790 rm -f core conftest.err conftest.$ac_objext \
9791 conftest$ac_exeext conftest.$ac_ext
9792 LIBS=$ac_check_lib_save_LIBS
9793 fi
9794 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9795 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9796 if test $ac_cv_lib_dl_dlopen = yes; then
9797 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9798 else
9799
9800 lt_cv_dlopen="dyld"
9801 lt_cv_dlopen_libs=
9802 lt_cv_dlopen_self=yes
9803
9804 fi
9805
9806 ;;
9807
9808 *)
9809 { echo "$as_me:$LINENO: checking for shl_load" >&5
9810 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9811 if test "${ac_cv_func_shl_load+set}" = set; then
9812 echo $ECHO_N "(cached) $ECHO_C" >&6
9813 else
9814 cat >conftest.$ac_ext <<_ACEOF
9815 /* confdefs.h. */
9816 _ACEOF
9817 cat confdefs.h >>conftest.$ac_ext
9818 cat >>conftest.$ac_ext <<_ACEOF
9819 /* end confdefs.h. */
9820 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9821 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9822 #define shl_load innocuous_shl_load
9823
9824 /* System header to define __stub macros and hopefully few prototypes,
9825 which can conflict with char shl_load (); below.
9826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9827 <limits.h> exists even on freestanding compilers. */
9828
9829 #ifdef __STDC__
9830 # include <limits.h>
9831 #else
9832 # include <assert.h>
9833 #endif
9834
9835 #undef shl_load
9836
9837 /* Override any GCC internal prototype to avoid an error.
9838 Use char because int might match the return type of a GCC
9839 builtin and then its argument prototype would still apply. */
9840 #ifdef __cplusplus
9841 extern "C"
9842 #endif
9843 char shl_load ();
9844 /* The GNU C library defines this for functions which it implements
9845 to always fail with ENOSYS. Some functions are actually named
9846 something starting with __ and the normal name is an alias. */
9847 #if defined __stub_shl_load || defined __stub___shl_load
9848 choke me
9849 #endif
9850
9851 int
9852 main ()
9853 {
9854 return shl_load ();
9855 ;
9856 return 0;
9857 }
9858 _ACEOF
9859 rm -f conftest.$ac_objext conftest$ac_exeext
9860 if { (ac_try="$ac_link"
9861 case "(($ac_try" in
9862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9863 *) ac_try_echo=$ac_try;;
9864 esac
9865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9866 (eval "$ac_link") 2>conftest.er1
9867 ac_status=$?
9868 grep -v '^ *+' conftest.er1 >conftest.err
9869 rm -f conftest.er1
9870 cat conftest.err >&5
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); } &&
9873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9874 { (case "(($ac_try" in
9875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9876 *) ac_try_echo=$ac_try;;
9877 esac
9878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9879 (eval "$ac_try") 2>&5
9880 ac_status=$?
9881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882 (exit $ac_status); }; } &&
9883 { ac_try='test -s conftest$ac_exeext'
9884 { (case "(($ac_try" in
9885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9886 *) ac_try_echo=$ac_try;;
9887 esac
9888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9889 (eval "$ac_try") 2>&5
9890 ac_status=$?
9891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892 (exit $ac_status); }; }; then
9893 ac_cv_func_shl_load=yes
9894 else
9895 echo "$as_me: failed program was:" >&5
9896 sed 's/^/| /' conftest.$ac_ext >&5
9897
9898 ac_cv_func_shl_load=no
9899 fi
9900
9901 rm -f core conftest.err conftest.$ac_objext \
9902 conftest$ac_exeext conftest.$ac_ext
9903 fi
9904 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9905 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9906 if test $ac_cv_func_shl_load = yes; then
9907 lt_cv_dlopen="shl_load"
9908 else
9909 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9910 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9911 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9912 echo $ECHO_N "(cached) $ECHO_C" >&6
9913 else
9914 ac_check_lib_save_LIBS=$LIBS
9915 LIBS="-ldld $LIBS"
9916 cat >conftest.$ac_ext <<_ACEOF
9917 /* confdefs.h. */
9918 _ACEOF
9919 cat confdefs.h >>conftest.$ac_ext
9920 cat >>conftest.$ac_ext <<_ACEOF
9921 /* end confdefs.h. */
9922
9923 /* Override any GCC internal prototype to avoid an error.
9924 Use char because int might match the return type of a GCC
9925 builtin and then its argument prototype would still apply. */
9926 #ifdef __cplusplus
9927 extern "C"
9928 #endif
9929 char shl_load ();
9930 int
9931 main ()
9932 {
9933 return shl_load ();
9934 ;
9935 return 0;
9936 }
9937 _ACEOF
9938 rm -f conftest.$ac_objext conftest$ac_exeext
9939 if { (ac_try="$ac_link"
9940 case "(($ac_try" in
9941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9942 *) ac_try_echo=$ac_try;;
9943 esac
9944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9945 (eval "$ac_link") 2>conftest.er1
9946 ac_status=$?
9947 grep -v '^ *+' conftest.er1 >conftest.err
9948 rm -f conftest.er1
9949 cat conftest.err >&5
9950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951 (exit $ac_status); } &&
9952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9953 { (case "(($ac_try" in
9954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9955 *) ac_try_echo=$ac_try;;
9956 esac
9957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9958 (eval "$ac_try") 2>&5
9959 ac_status=$?
9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 (exit $ac_status); }; } &&
9962 { ac_try='test -s conftest$ac_exeext'
9963 { (case "(($ac_try" in
9964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9965 *) ac_try_echo=$ac_try;;
9966 esac
9967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9968 (eval "$ac_try") 2>&5
9969 ac_status=$?
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); }; }; then
9972 ac_cv_lib_dld_shl_load=yes
9973 else
9974 echo "$as_me: failed program was:" >&5
9975 sed 's/^/| /' conftest.$ac_ext >&5
9976
9977 ac_cv_lib_dld_shl_load=no
9978 fi
9979
9980 rm -f core conftest.err conftest.$ac_objext \
9981 conftest$ac_exeext conftest.$ac_ext
9982 LIBS=$ac_check_lib_save_LIBS
9983 fi
9984 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9985 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9986 if test $ac_cv_lib_dld_shl_load = yes; then
9987 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9988 else
9989 { echo "$as_me:$LINENO: checking for dlopen" >&5
9990 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9991 if test "${ac_cv_func_dlopen+set}" = set; then
9992 echo $ECHO_N "(cached) $ECHO_C" >&6
9993 else
9994 cat >conftest.$ac_ext <<_ACEOF
9995 /* confdefs.h. */
9996 _ACEOF
9997 cat confdefs.h >>conftest.$ac_ext
9998 cat >>conftest.$ac_ext <<_ACEOF
9999 /* end confdefs.h. */
10000 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10001 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10002 #define dlopen innocuous_dlopen
10003
10004 /* System header to define __stub macros and hopefully few prototypes,
10005 which can conflict with char dlopen (); below.
10006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10007 <limits.h> exists even on freestanding compilers. */
10008
10009 #ifdef __STDC__
10010 # include <limits.h>
10011 #else
10012 # include <assert.h>
10013 #endif
10014
10015 #undef dlopen
10016
10017 /* Override any GCC internal prototype to avoid an error.
10018 Use char because int might match the return type of a GCC
10019 builtin and then its argument prototype would still apply. */
10020 #ifdef __cplusplus
10021 extern "C"
10022 #endif
10023 char dlopen ();
10024 /* The GNU C library defines this for functions which it implements
10025 to always fail with ENOSYS. Some functions are actually named
10026 something starting with __ and the normal name is an alias. */
10027 #if defined __stub_dlopen || defined __stub___dlopen
10028 choke me
10029 #endif
10030
10031 int
10032 main ()
10033 {
10034 return dlopen ();
10035 ;
10036 return 0;
10037 }
10038 _ACEOF
10039 rm -f conftest.$ac_objext conftest$ac_exeext
10040 if { (ac_try="$ac_link"
10041 case "(($ac_try" in
10042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10043 *) ac_try_echo=$ac_try;;
10044 esac
10045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10046 (eval "$ac_link") 2>conftest.er1
10047 ac_status=$?
10048 grep -v '^ *+' conftest.er1 >conftest.err
10049 rm -f conftest.er1
10050 cat conftest.err >&5
10051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052 (exit $ac_status); } &&
10053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10054 { (case "(($ac_try" in
10055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10056 *) ac_try_echo=$ac_try;;
10057 esac
10058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10059 (eval "$ac_try") 2>&5
10060 ac_status=$?
10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062 (exit $ac_status); }; } &&
10063 { ac_try='test -s conftest$ac_exeext'
10064 { (case "(($ac_try" in
10065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10066 *) ac_try_echo=$ac_try;;
10067 esac
10068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10069 (eval "$ac_try") 2>&5
10070 ac_status=$?
10071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072 (exit $ac_status); }; }; then
10073 ac_cv_func_dlopen=yes
10074 else
10075 echo "$as_me: failed program was:" >&5
10076 sed 's/^/| /' conftest.$ac_ext >&5
10077
10078 ac_cv_func_dlopen=no
10079 fi
10080
10081 rm -f core conftest.err conftest.$ac_objext \
10082 conftest$ac_exeext conftest.$ac_ext
10083 fi
10084 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10085 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10086 if test $ac_cv_func_dlopen = yes; then
10087 lt_cv_dlopen="dlopen"
10088 else
10089 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10090 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10091 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10092 echo $ECHO_N "(cached) $ECHO_C" >&6
10093 else
10094 ac_check_lib_save_LIBS=$LIBS
10095 LIBS="-ldl $LIBS"
10096 cat >conftest.$ac_ext <<_ACEOF
10097 /* confdefs.h. */
10098 _ACEOF
10099 cat confdefs.h >>conftest.$ac_ext
10100 cat >>conftest.$ac_ext <<_ACEOF
10101 /* end confdefs.h. */
10102
10103 /* Override any GCC internal prototype to avoid an error.
10104 Use char because int might match the return type of a GCC
10105 builtin and then its argument prototype would still apply. */
10106 #ifdef __cplusplus
10107 extern "C"
10108 #endif
10109 char dlopen ();
10110 int
10111 main ()
10112 {
10113 return dlopen ();
10114 ;
10115 return 0;
10116 }
10117 _ACEOF
10118 rm -f conftest.$ac_objext conftest$ac_exeext
10119 if { (ac_try="$ac_link"
10120 case "(($ac_try" in
10121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10122 *) ac_try_echo=$ac_try;;
10123 esac
10124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10125 (eval "$ac_link") 2>conftest.er1
10126 ac_status=$?
10127 grep -v '^ *+' conftest.er1 >conftest.err
10128 rm -f conftest.er1
10129 cat conftest.err >&5
10130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131 (exit $ac_status); } &&
10132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10133 { (case "(($ac_try" in
10134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10135 *) ac_try_echo=$ac_try;;
10136 esac
10137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10138 (eval "$ac_try") 2>&5
10139 ac_status=$?
10140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141 (exit $ac_status); }; } &&
10142 { ac_try='test -s conftest$ac_exeext'
10143 { (case "(($ac_try" in
10144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10145 *) ac_try_echo=$ac_try;;
10146 esac
10147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10148 (eval "$ac_try") 2>&5
10149 ac_status=$?
10150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151 (exit $ac_status); }; }; then
10152 ac_cv_lib_dl_dlopen=yes
10153 else
10154 echo "$as_me: failed program was:" >&5
10155 sed 's/^/| /' conftest.$ac_ext >&5
10156
10157 ac_cv_lib_dl_dlopen=no
10158 fi
10159
10160 rm -f core conftest.err conftest.$ac_objext \
10161 conftest$ac_exeext conftest.$ac_ext
10162 LIBS=$ac_check_lib_save_LIBS
10163 fi
10164 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10165 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10166 if test $ac_cv_lib_dl_dlopen = yes; then
10167 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10168 else
10169 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10170 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10171 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10172 echo $ECHO_N "(cached) $ECHO_C" >&6
10173 else
10174 ac_check_lib_save_LIBS=$LIBS
10175 LIBS="-lsvld $LIBS"
10176 cat >conftest.$ac_ext <<_ACEOF
10177 /* confdefs.h. */
10178 _ACEOF
10179 cat confdefs.h >>conftest.$ac_ext
10180 cat >>conftest.$ac_ext <<_ACEOF
10181 /* end confdefs.h. */
10182
10183 /* Override any GCC internal prototype to avoid an error.
10184 Use char because int might match the return type of a GCC
10185 builtin and then its argument prototype would still apply. */
10186 #ifdef __cplusplus
10187 extern "C"
10188 #endif
10189 char dlopen ();
10190 int
10191 main ()
10192 {
10193 return dlopen ();
10194 ;
10195 return 0;
10196 }
10197 _ACEOF
10198 rm -f conftest.$ac_objext conftest$ac_exeext
10199 if { (ac_try="$ac_link"
10200 case "(($ac_try" in
10201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10202 *) ac_try_echo=$ac_try;;
10203 esac
10204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10205 (eval "$ac_link") 2>conftest.er1
10206 ac_status=$?
10207 grep -v '^ *+' conftest.er1 >conftest.err
10208 rm -f conftest.er1
10209 cat conftest.err >&5
10210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211 (exit $ac_status); } &&
10212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10213 { (case "(($ac_try" in
10214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10215 *) ac_try_echo=$ac_try;;
10216 esac
10217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10218 (eval "$ac_try") 2>&5
10219 ac_status=$?
10220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221 (exit $ac_status); }; } &&
10222 { ac_try='test -s conftest$ac_exeext'
10223 { (case "(($ac_try" in
10224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10225 *) ac_try_echo=$ac_try;;
10226 esac
10227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10228 (eval "$ac_try") 2>&5
10229 ac_status=$?
10230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231 (exit $ac_status); }; }; then
10232 ac_cv_lib_svld_dlopen=yes
10233 else
10234 echo "$as_me: failed program was:" >&5
10235 sed 's/^/| /' conftest.$ac_ext >&5
10236
10237 ac_cv_lib_svld_dlopen=no
10238 fi
10239
10240 rm -f core conftest.err conftest.$ac_objext \
10241 conftest$ac_exeext conftest.$ac_ext
10242 LIBS=$ac_check_lib_save_LIBS
10243 fi
10244 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10245 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10246 if test $ac_cv_lib_svld_dlopen = yes; then
10247 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10248 else
10249 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10250 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10251 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10252 echo $ECHO_N "(cached) $ECHO_C" >&6
10253 else
10254 ac_check_lib_save_LIBS=$LIBS
10255 LIBS="-ldld $LIBS"
10256 cat >conftest.$ac_ext <<_ACEOF
10257 /* confdefs.h. */
10258 _ACEOF
10259 cat confdefs.h >>conftest.$ac_ext
10260 cat >>conftest.$ac_ext <<_ACEOF
10261 /* end confdefs.h. */
10262
10263 /* Override any GCC internal prototype to avoid an error.
10264 Use char because int might match the return type of a GCC
10265 builtin and then its argument prototype would still apply. */
10266 #ifdef __cplusplus
10267 extern "C"
10268 #endif
10269 char dld_link ();
10270 int
10271 main ()
10272 {
10273 return dld_link ();
10274 ;
10275 return 0;
10276 }
10277 _ACEOF
10278 rm -f conftest.$ac_objext conftest$ac_exeext
10279 if { (ac_try="$ac_link"
10280 case "(($ac_try" in
10281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10282 *) ac_try_echo=$ac_try;;
10283 esac
10284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10285 (eval "$ac_link") 2>conftest.er1
10286 ac_status=$?
10287 grep -v '^ *+' conftest.er1 >conftest.err
10288 rm -f conftest.er1
10289 cat conftest.err >&5
10290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291 (exit $ac_status); } &&
10292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10293 { (case "(($ac_try" in
10294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10295 *) ac_try_echo=$ac_try;;
10296 esac
10297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10298 (eval "$ac_try") 2>&5
10299 ac_status=$?
10300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301 (exit $ac_status); }; } &&
10302 { ac_try='test -s conftest$ac_exeext'
10303 { (case "(($ac_try" in
10304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10305 *) ac_try_echo=$ac_try;;
10306 esac
10307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10308 (eval "$ac_try") 2>&5
10309 ac_status=$?
10310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311 (exit $ac_status); }; }; then
10312 ac_cv_lib_dld_dld_link=yes
10313 else
10314 echo "$as_me: failed program was:" >&5
10315 sed 's/^/| /' conftest.$ac_ext >&5
10316
10317 ac_cv_lib_dld_dld_link=no
10318 fi
10319
10320 rm -f core conftest.err conftest.$ac_objext \
10321 conftest$ac_exeext conftest.$ac_ext
10322 LIBS=$ac_check_lib_save_LIBS
10323 fi
10324 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10325 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10326 if test $ac_cv_lib_dld_dld_link = yes; then
10327 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10328 fi
10329
10330
10331 fi
10332
10333
10334 fi
10335
10336
10337 fi
10338
10339
10340 fi
10341
10342
10343 fi
10344
10345 ;;
10346 esac
10347
10348 if test "x$lt_cv_dlopen" != xno; then
10349 enable_dlopen=yes
10350 else
10351 enable_dlopen=no
10352 fi
10353
10354 case $lt_cv_dlopen in
10355 dlopen)
10356 save_CPPFLAGS="$CPPFLAGS"
10357 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10358
10359 save_LDFLAGS="$LDFLAGS"
10360 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10361
10362 save_LIBS="$LIBS"
10363 LIBS="$lt_cv_dlopen_libs $LIBS"
10364
10365 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10366 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10367 if test "${lt_cv_dlopen_self+set}" = set; then
10368 echo $ECHO_N "(cached) $ECHO_C" >&6
10369 else
10370 if test "$cross_compiling" = yes; then :
10371 lt_cv_dlopen_self=cross
10372 else
10373 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10374 lt_status=$lt_dlunknown
10375 cat > conftest.$ac_ext <<EOF
10376 #line 10376 "configure"
10377 #include "confdefs.h"
10378
10379 #if HAVE_DLFCN_H
10380 #include <dlfcn.h>
10381 #endif
10382
10383 #include <stdio.h>
10384
10385 #ifdef RTLD_GLOBAL
10386 # define LT_DLGLOBAL RTLD_GLOBAL
10387 #else
10388 # ifdef DL_GLOBAL
10389 # define LT_DLGLOBAL DL_GLOBAL
10390 # else
10391 # define LT_DLGLOBAL 0
10392 # endif
10393 #endif
10394
10395 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10396 find out it does not work in some platform. */
10397 #ifndef LT_DLLAZY_OR_NOW
10398 # ifdef RTLD_LAZY
10399 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10400 # else
10401 # ifdef DL_LAZY
10402 # define LT_DLLAZY_OR_NOW DL_LAZY
10403 # else
10404 # ifdef RTLD_NOW
10405 # define LT_DLLAZY_OR_NOW RTLD_NOW
10406 # else
10407 # ifdef DL_NOW
10408 # define LT_DLLAZY_OR_NOW DL_NOW
10409 # else
10410 # define LT_DLLAZY_OR_NOW 0
10411 # endif
10412 # endif
10413 # endif
10414 # endif
10415 #endif
10416
10417 #ifdef __cplusplus
10418 extern "C" void exit (int);
10419 #endif
10420
10421 void fnord() { int i=42;}
10422 int main ()
10423 {
10424 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10425 int status = $lt_dlunknown;
10426
10427 if (self)
10428 {
10429 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10430 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10431 /* dlclose (self); */
10432 }
10433 else
10434 puts (dlerror ());
10435
10436 exit (status);
10437 }
10438 EOF
10439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10440 (eval $ac_link) 2>&5
10441 ac_status=$?
10442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10444 (./conftest; exit; ) >&5 2>/dev/null
10445 lt_status=$?
10446 case x$lt_status in
10447 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10448 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10449 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10450 esac
10451 else :
10452 # compilation failed
10453 lt_cv_dlopen_self=no
10454 fi
10455 fi
10456 rm -fr conftest*
10457
10458
10459 fi
10460 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10461 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10462
10463 if test "x$lt_cv_dlopen_self" = xyes; then
10464 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10465 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10466 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10467 if test "${lt_cv_dlopen_self_static+set}" = set; then
10468 echo $ECHO_N "(cached) $ECHO_C" >&6
10469 else
10470 if test "$cross_compiling" = yes; then :
10471 lt_cv_dlopen_self_static=cross
10472 else
10473 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10474 lt_status=$lt_dlunknown
10475 cat > conftest.$ac_ext <<EOF
10476 #line 10476 "configure"
10477 #include "confdefs.h"
10478
10479 #if HAVE_DLFCN_H
10480 #include <dlfcn.h>
10481 #endif
10482
10483 #include <stdio.h>
10484
10485 #ifdef RTLD_GLOBAL
10486 # define LT_DLGLOBAL RTLD_GLOBAL
10487 #else
10488 # ifdef DL_GLOBAL
10489 # define LT_DLGLOBAL DL_GLOBAL
10490 # else
10491 # define LT_DLGLOBAL 0
10492 # endif
10493 #endif
10494
10495 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10496 find out it does not work in some platform. */
10497 #ifndef LT_DLLAZY_OR_NOW
10498 # ifdef RTLD_LAZY
10499 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10500 # else
10501 # ifdef DL_LAZY
10502 # define LT_DLLAZY_OR_NOW DL_LAZY
10503 # else
10504 # ifdef RTLD_NOW
10505 # define LT_DLLAZY_OR_NOW RTLD_NOW
10506 # else
10507 # ifdef DL_NOW
10508 # define LT_DLLAZY_OR_NOW DL_NOW
10509 # else
10510 # define LT_DLLAZY_OR_NOW 0
10511 # endif
10512 # endif
10513 # endif
10514 # endif
10515 #endif
10516
10517 #ifdef __cplusplus
10518 extern "C" void exit (int);
10519 #endif
10520
10521 void fnord() { int i=42;}
10522 int main ()
10523 {
10524 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10525 int status = $lt_dlunknown;
10526
10527 if (self)
10528 {
10529 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10530 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10531 /* dlclose (self); */
10532 }
10533 else
10534 puts (dlerror ());
10535
10536 exit (status);
10537 }
10538 EOF
10539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10540 (eval $ac_link) 2>&5
10541 ac_status=$?
10542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10544 (./conftest; exit; ) >&5 2>/dev/null
10545 lt_status=$?
10546 case x$lt_status in
10547 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10548 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10549 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10550 esac
10551 else :
10552 # compilation failed
10553 lt_cv_dlopen_self_static=no
10554 fi
10555 fi
10556 rm -fr conftest*
10557
10558
10559 fi
10560 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10561 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10562 fi
10563
10564 CPPFLAGS="$save_CPPFLAGS"
10565 LDFLAGS="$save_LDFLAGS"
10566 LIBS="$save_LIBS"
10567 ;;
10568 esac
10569
10570 case $lt_cv_dlopen_self in
10571 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10572 *) enable_dlopen_self=unknown ;;
10573 esac
10574
10575 case $lt_cv_dlopen_self_static in
10576 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10577 *) enable_dlopen_self_static=unknown ;;
10578 esac
10579 fi
10580
10581
10582 # Report which library types will actually be built
10583 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10584 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10585 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10586 echo "${ECHO_T}$can_build_shared" >&6; }
10587
10588 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10589 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10590 test "$can_build_shared" = "no" && enable_shared=no
10591
10592 # On AIX, shared libraries and static libraries use the same namespace, and
10593 # are all built from PIC.
10594 case $host_os in
10595 aix3*)
10596 test "$enable_shared" = yes && enable_static=no
10597 if test -n "$RANLIB"; then
10598 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10599 postinstall_cmds='$RANLIB $lib'
10600 fi
10601 ;;
10602
10603 aix4* | aix5*)
10604 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10605 test "$enable_shared" = yes && enable_static=no
10606 fi
10607 ;;
10608 esac
10609 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10610 echo "${ECHO_T}$enable_shared" >&6; }
10611
10612 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10613 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10614 # Make sure either enable_shared or enable_static is yes.
10615 test "$enable_shared" = yes || enable_static=yes
10616 { echo "$as_me:$LINENO: result: $enable_static" >&5
10617 echo "${ECHO_T}$enable_static" >&6; }
10618
10619 # The else clause should only fire when bootstrapping the
10620 # libtool distribution, otherwise you forgot to ship ltmain.sh
10621 # with your package, and you will get complaints that there are
10622 # no rules to generate ltmain.sh.
10623 if test -f "$ltmain"; then
10624 # See if we are running on zsh, and set the options which allow our commands through
10625 # without removal of \ escapes.
10626 if test -n "${ZSH_VERSION+set}" ; then
10627 setopt NO_GLOB_SUBST
10628 fi
10629 # Now quote all the things that may contain metacharacters while being
10630 # careful not to overquote the AC_SUBSTed values. We take copies of the
10631 # variables and quote the copies for generation of the libtool script.
10632 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10633 SED SHELL STRIP \
10634 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10635 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10636 deplibs_check_method reload_flag reload_cmds need_locks \
10637 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10638 lt_cv_sys_global_symbol_to_c_name_address \
10639 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10640 old_postinstall_cmds old_postuninstall_cmds \
10641 compiler \
10642 CC \
10643 LD \
10644 lt_prog_compiler_wl \
10645 lt_prog_compiler_pic \
10646 lt_prog_compiler_static \
10647 lt_prog_compiler_no_builtin_flag \
10648 export_dynamic_flag_spec \
10649 thread_safe_flag_spec \
10650 whole_archive_flag_spec \
10651 enable_shared_with_static_runtimes \
10652 old_archive_cmds \
10653 old_archive_from_new_cmds \
10654 predep_objects \
10655 postdep_objects \
10656 predeps \
10657 postdeps \
10658 compiler_lib_search_path \
10659 archive_cmds \
10660 archive_expsym_cmds \
10661 postinstall_cmds \
10662 postuninstall_cmds \
10663 old_archive_from_expsyms_cmds \
10664 allow_undefined_flag \
10665 no_undefined_flag \
10666 export_symbols_cmds \
10667 hardcode_libdir_flag_spec \
10668 hardcode_libdir_flag_spec_ld \
10669 hardcode_libdir_separator \
10670 hardcode_automatic \
10671 module_cmds \
10672 module_expsym_cmds \
10673 lt_cv_prog_compiler_c_o \
10674 exclude_expsyms \
10675 include_expsyms; do
10676
10677 case $var in
10678 old_archive_cmds | \
10679 old_archive_from_new_cmds | \
10680 archive_cmds | \
10681 archive_expsym_cmds | \
10682 module_cmds | \
10683 module_expsym_cmds | \
10684 old_archive_from_expsyms_cmds | \
10685 export_symbols_cmds | \
10686 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10687 postinstall_cmds | postuninstall_cmds | \
10688 old_postinstall_cmds | old_postuninstall_cmds | \
10689 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10690 # Double-quote double-evaled strings.
10691 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10692 ;;
10693 *)
10694 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10695 ;;
10696 esac
10697 done
10698
10699 case $lt_echo in
10700 *'\$0 --fallback-echo"')
10701 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10702 ;;
10703 esac
10704
10705 cfgfile="${ofile}T"
10706 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10707 $rm -f "$cfgfile"
10708 { echo "$as_me:$LINENO: creating $ofile" >&5
10709 echo "$as_me: creating $ofile" >&6;}
10710
10711 cat <<__EOF__ >> "$cfgfile"
10712 #! $SHELL
10713
10714 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10715 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10716 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10717 #
10718 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10719 # Free Software Foundation, Inc.
10720 #
10721 # This file is part of GNU Libtool:
10722 # Originally by Gordon Matzigkeit <[email protected]>, 1996
10723 #
10724 # This program is free software; you can redistribute it and/or modify
10725 # it under the terms of the GNU General Public License as published by
10726 # the Free Software Foundation; either version 2 of the License, or
10727 # (at your option) any later version.
10728 #
10729 # This program is distributed in the hope that it will be useful, but
10730 # WITHOUT ANY WARRANTY; without even the implied warranty of
10731 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10732 # General Public License for more details.
10733 #
10734 # You should have received a copy of the GNU General Public License
10735 # along with this program; if not, write to the Free Software
10736 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10737 #
10738 # As a special exception to the GNU General Public License, if you
10739 # distribute this file as part of a program that contains a
10740 # configuration script generated by Autoconf, you may include it under
10741 # the same distribution terms that you use for the rest of that program.
10742
10743 # A sed program that does not truncate output.
10744 SED=$lt_SED
10745
10746 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10747 Xsed="$SED -e 1s/^X//"
10748
10749 # The HP-UX ksh and POSIX shell print the target directory to stdout
10750 # if CDPATH is set.
10751 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10752
10753 # The names of the tagged configurations supported by this script.
10754 available_tags=
10755
10756 # ### BEGIN LIBTOOL CONFIG
10757
10758 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10759
10760 # Shell to use when invoking shell scripts.
10761 SHELL=$lt_SHELL
10762
10763 # Whether or not to build shared libraries.
10764 build_libtool_libs=$enable_shared
10765
10766 # Whether or not to build static libraries.
10767 build_old_libs=$enable_static
10768
10769 # Whether or not to add -lc for building shared libraries.
10770 build_libtool_need_lc=$archive_cmds_need_lc
10771
10772 # Whether or not to disallow shared libs when runtime libs are static
10773 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10774
10775 # Whether or not to optimize for fast installation.
10776 fast_install=$enable_fast_install
10777
10778 # The host system.
10779 host_alias=$host_alias
10780 host=$host
10781 host_os=$host_os
10782
10783 # The build system.
10784 build_alias=$build_alias
10785 build=$build
10786 build_os=$build_os
10787
10788 # An echo program that does not interpret backslashes.
10789 echo=$lt_echo
10790
10791 # The archiver.
10792 AR=$lt_AR
10793 AR_FLAGS=$lt_AR_FLAGS
10794
10795 # A C compiler.
10796 LTCC=$lt_LTCC
10797
10798 # LTCC compiler flags.
10799 LTCFLAGS=$lt_LTCFLAGS
10800
10801 # A language-specific compiler.
10802 CC=$lt_compiler
10803
10804 # Is the compiler the GNU C compiler?
10805 with_gcc=$GCC
10806
10807 # An ERE matcher.
10808 EGREP=$lt_EGREP
10809
10810 # The linker used to build libraries.
10811 LD=$lt_LD
10812
10813 # Whether we need hard or soft links.
10814 LN_S=$lt_LN_S
10815
10816 # A BSD-compatible nm program.
10817 NM=$lt_NM
10818
10819 # A symbol stripping program
10820 STRIP=$lt_STRIP
10821
10822 # Used to examine libraries when file_magic_cmd begins "file"
10823 MAGIC_CMD=$MAGIC_CMD
10824
10825 # Used on cygwin: DLL creation program.
10826 DLLTOOL="$DLLTOOL"
10827
10828 # Used on cygwin: object dumper.
10829 OBJDUMP="$OBJDUMP"
10830
10831 # Used on cygwin: assembler.
10832 AS="$AS"
10833
10834 # The name of the directory that contains temporary libtool files.
10835 objdir=$objdir
10836
10837 # How to create reloadable object files.
10838 reload_flag=$lt_reload_flag
10839 reload_cmds=$lt_reload_cmds
10840
10841 # How to pass a linker flag through the compiler.
10842 wl=$lt_lt_prog_compiler_wl
10843
10844 # Object file suffix (normally "o").
10845 objext="$ac_objext"
10846
10847 # Old archive suffix (normally "a").
10848 libext="$libext"
10849
10850 # Shared library suffix (normally ".so").
10851 shrext_cmds='$shrext_cmds'
10852
10853 # Executable file suffix (normally "").
10854 exeext="$exeext"
10855
10856 # Additional compiler flags for building library objects.
10857 pic_flag=$lt_lt_prog_compiler_pic
10858 pic_mode=$pic_mode
10859
10860 # What is the maximum length of a command?
10861 max_cmd_len=$lt_cv_sys_max_cmd_len
10862
10863 # Does compiler simultaneously support -c and -o options?
10864 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10865
10866 # Must we lock files when doing compilation?
10867 need_locks=$lt_need_locks
10868
10869 # Do we need the lib prefix for modules?
10870 need_lib_prefix=$need_lib_prefix
10871
10872 # Do we need a version for libraries?
10873 need_version=$need_version
10874
10875 # Whether dlopen is supported.
10876 dlopen_support=$enable_dlopen
10877
10878 # Whether dlopen of programs is supported.
10879 dlopen_self=$enable_dlopen_self
10880
10881 # Whether dlopen of statically linked programs is supported.
10882 dlopen_self_static=$enable_dlopen_self_static
10883
10884 # Compiler flag to prevent dynamic linking.
10885 link_static_flag=$lt_lt_prog_compiler_static
10886
10887 # Compiler flag to turn off builtin functions.
10888 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10889
10890 # Compiler flag to allow reflexive dlopens.
10891 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10892
10893 # Compiler flag to generate shared objects directly from archives.
10894 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10895
10896 # Compiler flag to generate thread-safe objects.
10897 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10898
10899 # Library versioning type.
10900 version_type=$version_type
10901
10902 # Format of library name prefix.
10903 libname_spec=$lt_libname_spec
10904
10905 # List of archive names. First name is the real one, the rest are links.
10906 # The last name is the one that the linker finds with -lNAME.
10907 library_names_spec=$lt_library_names_spec
10908
10909 # The coded name of the library, if different from the real name.
10910 soname_spec=$lt_soname_spec
10911
10912 # Commands used to build and install an old-style archive.
10913 RANLIB=$lt_RANLIB
10914 old_archive_cmds=$lt_old_archive_cmds
10915 old_postinstall_cmds=$lt_old_postinstall_cmds
10916 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10917
10918 # Create an old-style archive from a shared archive.
10919 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10920
10921 # Create a temporary old-style archive to link instead of a shared archive.
10922 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10923
10924 # Commands used to build and install a shared archive.
10925 archive_cmds=$lt_archive_cmds
10926 archive_expsym_cmds=$lt_archive_expsym_cmds
10927 postinstall_cmds=$lt_postinstall_cmds
10928 postuninstall_cmds=$lt_postuninstall_cmds
10929
10930 # Commands used to build a loadable module (assumed same as above if empty)
10931 module_cmds=$lt_module_cmds
10932 module_expsym_cmds=$lt_module_expsym_cmds
10933
10934 # Commands to strip libraries.
10935 old_striplib=$lt_old_striplib
10936 striplib=$lt_striplib
10937
10938 # Dependencies to place before the objects being linked to create a
10939 # shared library.
10940 predep_objects=$lt_predep_objects
10941
10942 # Dependencies to place after the objects being linked to create a
10943 # shared library.
10944 postdep_objects=$lt_postdep_objects
10945
10946 # Dependencies to place before the objects being linked to create a
10947 # shared library.
10948 predeps=$lt_predeps
10949
10950 # Dependencies to place after the objects being linked to create a
10951 # shared library.
10952 postdeps=$lt_postdeps
10953
10954 # The library search path used internally by the compiler when linking
10955 # a shared library.
10956 compiler_lib_search_path=$lt_compiler_lib_search_path
10957
10958 # Method to check whether dependent libraries are shared objects.
10959 deplibs_check_method=$lt_deplibs_check_method
10960
10961 # Command to use when deplibs_check_method == file_magic.
10962 file_magic_cmd=$lt_file_magic_cmd
10963
10964 # Flag that allows shared libraries with undefined symbols to be built.
10965 allow_undefined_flag=$lt_allow_undefined_flag
10966
10967 # Flag that forces no undefined symbols.
10968 no_undefined_flag=$lt_no_undefined_flag
10969
10970 # Commands used to finish a libtool library installation in a directory.
10971 finish_cmds=$lt_finish_cmds
10972
10973 # Same as above, but a single script fragment to be evaled but not shown.
10974 finish_eval=$lt_finish_eval
10975
10976 # Take the output of nm and produce a listing of raw symbols and C names.
10977 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10978
10979 # Transform the output of nm in a proper C declaration
10980 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10981
10982 # Transform the output of nm in a C name address pair
10983 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10984
10985 # This is the shared library runtime path variable.
10986 runpath_var=$runpath_var
10987
10988 # This is the shared library path variable.
10989 shlibpath_var=$shlibpath_var
10990
10991 # Is shlibpath searched before the hard-coded library search path?
10992 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10993
10994 # How to hardcode a shared library path into an executable.
10995 hardcode_action=$hardcode_action
10996
10997 # Whether we should hardcode library paths into libraries.
10998 hardcode_into_libs=$hardcode_into_libs
10999
11000 # Flag to hardcode \$libdir into a binary during linking.
11001 # This must work even if \$libdir does not exist.
11002 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11003
11004 # If ld is used when linking, flag to hardcode \$libdir into
11005 # a binary during linking. This must work even if \$libdir does
11006 # not exist.
11007 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11008
11009 # Whether we need a single -rpath flag with a separated argument.
11010 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11011
11012 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11013 # resulting binary.
11014 hardcode_direct=$hardcode_direct
11015
11016 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11017 # resulting binary.
11018 hardcode_minus_L=$hardcode_minus_L
11019
11020 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11021 # the resulting binary.
11022 hardcode_shlibpath_var=$hardcode_shlibpath_var
11023
11024 # Set to yes if building a shared library automatically hardcodes DIR into the library
11025 # and all subsequent libraries and executables linked against it.
11026 hardcode_automatic=$hardcode_automatic
11027
11028 # Variables whose values should be saved in libtool wrapper scripts and
11029 # restored at relink time.
11030 variables_saved_for_relink="$variables_saved_for_relink"
11031
11032 # Whether libtool must link a program against all its dependency libraries.
11033 link_all_deplibs=$link_all_deplibs
11034
11035 # Compile-time system search path for libraries
11036 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11037
11038 # Run-time system search path for libraries
11039 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11040
11041 # Fix the shell variable \$srcfile for the compiler.
11042 fix_srcfile_path="$fix_srcfile_path"
11043
11044 # Set to yes if exported symbols are required.
11045 always_export_symbols=$always_export_symbols
11046
11047 # The commands to list exported symbols.
11048 export_symbols_cmds=$lt_export_symbols_cmds
11049
11050 # The commands to extract the exported symbol list from a shared archive.
11051 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11052
11053 # Symbols that should not be listed in the preloaded symbols.
11054 exclude_expsyms=$lt_exclude_expsyms
11055
11056 # Symbols that must always be exported.
11057 include_expsyms=$lt_include_expsyms
11058
11059 # ### END LIBTOOL CONFIG
11060
11061 __EOF__
11062
11063
11064 case $host_os in
11065 aix3*)
11066 cat <<\EOF >> "$cfgfile"
11067
11068 # AIX sometimes has problems with the GCC collect2 program. For some
11069 # reason, if we set the COLLECT_NAMES environment variable, the problems
11070 # vanish in a puff of smoke.
11071 if test "X${COLLECT_NAMES+set}" != Xset; then
11072 COLLECT_NAMES=
11073 export COLLECT_NAMES
11074 fi
11075 EOF
11076 ;;
11077 esac
11078
11079 # We use sed instead of cat because bash on DJGPP gets confused if
11080 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11081 # text mode, it properly converts lines to CR/LF. This bash problem
11082 # is reportedly fixed, but why not run on old versions too?
11083 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11084
11085 mv -f "$cfgfile" "$ofile" || \
11086 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11087 chmod +x "$ofile"
11088
11089 else
11090 # If there is no Makefile yet, we rely on a make rule to execute
11091 # `config.status --recheck' to rerun these tests and create the
11092 # libtool script then.
11093 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11094 if test -f "$ltmain_in"; then
11095 test -f Makefile && make "$ltmain"
11096 fi
11097 fi
11098
11099
11100 ac_ext=c
11101 ac_cpp='$CPP $CPPFLAGS'
11102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11105
11106 CC="$lt_save_CC"
11107
11108
11109 # Check whether --with-tags was given.
11110 if test "${with_tags+set}" = set; then
11111 withval=$with_tags; tagnames="$withval"
11112 fi
11113
11114
11115 if test -f "$ltmain" && test -n "$tagnames"; then
11116 if test ! -f "${ofile}"; then
11117 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11118 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11119 fi
11120
11121 if test -z "$LTCC"; then
11122 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11123 if test -z "$LTCC"; then
11124 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11125 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11126 else
11127 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11128 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11129 fi
11130 fi
11131 if test -z "$LTCFLAGS"; then
11132 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11133 fi
11134
11135 # Extract list of available tagged configurations in $ofile.
11136 # Note that this assumes the entire list is on one line.
11137 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11138
11139 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11140 for tagname in $tagnames; do
11141 IFS="$lt_save_ifs"
11142 # Check whether tagname contains only valid characters
11143 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11144 "") ;;
11145 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11146 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11147 { (exit 1); exit 1; }; }
11148 ;;
11149 esac
11150
11151 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11152 then
11153 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11154 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11155 { (exit 1); exit 1; }; }
11156 fi
11157
11158 # Update the list of available tags.
11159 if test -n "$tagname"; then
11160 echo appending configuration tag \"$tagname\" to $ofile
11161
11162 case $tagname in
11163 CXX)
11164 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11165 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11166 (test "X$CXX" != "Xg++"))) ; then
11167 ac_ext=cpp
11168 ac_cpp='$CXXCPP $CPPFLAGS'
11169 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11170 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11171 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11172
11173
11174
11175
11176 archive_cmds_need_lc_CXX=no
11177 allow_undefined_flag_CXX=
11178 always_export_symbols_CXX=no
11179 archive_expsym_cmds_CXX=
11180 export_dynamic_flag_spec_CXX=
11181 hardcode_direct_CXX=no
11182 hardcode_libdir_flag_spec_CXX=
11183 hardcode_libdir_flag_spec_ld_CXX=
11184 hardcode_libdir_separator_CXX=
11185 hardcode_minus_L_CXX=no
11186 hardcode_shlibpath_var_CXX=unsupported
11187 hardcode_automatic_CXX=no
11188 module_cmds_CXX=
11189 module_expsym_cmds_CXX=
11190 link_all_deplibs_CXX=unknown
11191 old_archive_cmds_CXX=$old_archive_cmds
11192 no_undefined_flag_CXX=
11193 whole_archive_flag_spec_CXX=
11194 enable_shared_with_static_runtimes_CXX=no
11195
11196 # Dependencies to place before and after the object being linked:
11197 predep_objects_CXX=
11198 postdep_objects_CXX=
11199 predeps_CXX=
11200 postdeps_CXX=
11201 compiler_lib_search_path_CXX=
11202
11203 # Source file extension for C++ test sources.
11204 ac_ext=cpp
11205
11206 # Object file extension for compiled C++ test sources.
11207 objext=o
11208 objext_CXX=$objext
11209
11210 # Code to be used in simple compile tests
11211 lt_simple_compile_test_code="int some_variable = 0;\n"
11212
11213 # Code to be used in simple link tests
11214 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11215
11216 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11217
11218 # If no C compiler was specified, use CC.
11219 LTCC=${LTCC-"$CC"}
11220
11221 # If no C compiler flags were specified, use CFLAGS.
11222 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11223
11224 # Allow CC to be a program name with arguments.
11225 compiler=$CC
11226
11227
11228 # save warnings/boilerplate of simple test code
11229 ac_outfile=conftest.$ac_objext
11230 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11231 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11232 _lt_compiler_boilerplate=`cat conftest.err`
11233 $rm conftest*
11234
11235 ac_outfile=conftest.$ac_objext
11236 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11237 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11238 _lt_linker_boilerplate=`cat conftest.err`
11239 $rm conftest*
11240
11241
11242 # Allow CC to be a program name with arguments.
11243 lt_save_CC=$CC
11244 lt_save_LD=$LD
11245 lt_save_GCC=$GCC
11246 GCC=$GXX
11247 lt_save_with_gnu_ld=$with_gnu_ld
11248 lt_save_path_LD=$lt_cv_path_LD
11249 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11250 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11251 else
11252 $as_unset lt_cv_prog_gnu_ld
11253 fi
11254 if test -n "${lt_cv_path_LDCXX+set}"; then
11255 lt_cv_path_LD=$lt_cv_path_LDCXX
11256 else
11257 $as_unset lt_cv_path_LD
11258 fi
11259 test -z "${LDCXX+set}" || LD=$LDCXX
11260 CC=${CXX-"c++"}
11261 compiler=$CC
11262 compiler_CXX=$CC
11263 for cc_temp in $compiler""; do
11264 case $cc_temp in
11265 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11266 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11267 \-*) ;;
11268 *) break;;
11269 esac
11270 done
11271 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11272
11273
11274 # We don't want -fno-exception wen compiling C++ code, so set the
11275 # no_builtin_flag separately
11276 if test "$GXX" = yes; then
11277 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11278 else
11279 lt_prog_compiler_no_builtin_flag_CXX=
11280 fi
11281
11282 if test "$GXX" = yes; then
11283 # Set up default GNU C++ configuration
11284
11285
11286 # Check whether --with-gnu-ld was given.
11287 if test "${with_gnu_ld+set}" = set; then
11288 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11289 else
11290 with_gnu_ld=no
11291 fi
11292
11293 ac_prog=ld
11294 if test "$GCC" = yes; then
11295 # Check if gcc -print-prog-name=ld gives a path.
11296 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11297 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11298 case $host in
11299 *-*-mingw*)
11300 # gcc leaves a trailing carriage return which upsets mingw
11301 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11302 *)
11303 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11304 esac
11305 case $ac_prog in
11306 # Accept absolute paths.
11307 [\\/]* | ?:[\\/]*)
11308 re_direlt='/[^/][^/]*/\.\./'
11309 # Canonicalize the pathname of ld
11310 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11311 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11312 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11313 done
11314 test -z "$LD" && LD="$ac_prog"
11315 ;;
11316 "")
11317 # If it fails, then pretend we aren't using GCC.
11318 ac_prog=ld
11319 ;;
11320 *)
11321 # If it is relative, then search for the first ld in PATH.
11322 with_gnu_ld=unknown
11323 ;;
11324 esac
11325 elif test "$with_gnu_ld" = yes; then
11326 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11327 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11328 else
11329 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11330 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11331 fi
11332 if test "${lt_cv_path_LD+set}" = set; then
11333 echo $ECHO_N "(cached) $ECHO_C" >&6
11334 else
11335 if test -z "$LD"; then
11336 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11337 for ac_dir in $PATH; do
11338 IFS="$lt_save_ifs"
11339 test -z "$ac_dir" && ac_dir=.
11340 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11341 lt_cv_path_LD="$ac_dir/$ac_prog"
11342 # Check to see if the program is GNU ld. I'd rather use --version,
11343 # but apparently some variants of GNU ld only accept -v.
11344 # Break only if it was the GNU/non-GNU ld that we prefer.
11345 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11346 *GNU* | *'with BFD'*)
11347 test "$with_gnu_ld" != no && break
11348 ;;
11349 *)
11350 test "$with_gnu_ld" != yes && break
11351 ;;
11352 esac
11353 fi
11354 done
11355 IFS="$lt_save_ifs"
11356 else
11357 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11358 fi
11359 fi
11360
11361 LD="$lt_cv_path_LD"
11362 if test -n "$LD"; then
11363 { echo "$as_me:$LINENO: result: $LD" >&5
11364 echo "${ECHO_T}$LD" >&6; }
11365 else
11366 { echo "$as_me:$LINENO: result: no" >&5
11367 echo "${ECHO_T}no" >&6; }
11368 fi
11369 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11370 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11371 { (exit 1); exit 1; }; }
11372 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11373 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11374 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11375 echo $ECHO_N "(cached) $ECHO_C" >&6
11376 else
11377 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11378 case `$LD -v 2>&1 </dev/null` in
11379 *GNU* | *'with BFD'*)
11380 lt_cv_prog_gnu_ld=yes
11381 ;;
11382 *)
11383 lt_cv_prog_gnu_ld=no
11384 ;;
11385 esac
11386 fi
11387 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11388 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11389 with_gnu_ld=$lt_cv_prog_gnu_ld
11390
11391
11392
11393 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11394 # archiving commands below assume that GNU ld is being used.
11395 if test "$with_gnu_ld" = yes; then
11396 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11397 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'
11398
11399 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11400 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11401
11402 # If archive_cmds runs LD, not CC, wlarc should be empty
11403 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11404 # investigate it a little bit more. (MM)
11405 wlarc='${wl}'
11406
11407 # ancient GNU ld didn't support --whole-archive et. al.
11408 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11409 grep 'no-whole-archive' > /dev/null; then
11410 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11411 else
11412 whole_archive_flag_spec_CXX=
11413 fi
11414 else
11415 with_gnu_ld=no
11416 wlarc=
11417
11418 # A generic and very simple default shared library creation
11419 # command for GNU C++ for the case where it uses the native
11420 # linker, instead of GNU ld. If possible, this setting should
11421 # overridden to take advantage of the native linker features on
11422 # the platform it is being used on.
11423 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11424 fi
11425
11426 # Commands to make compiler produce verbose output that lists
11427 # what "hidden" libraries, object files and flags are used when
11428 # linking a shared library.
11429 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11430
11431 else
11432 GXX=no
11433 with_gnu_ld=no
11434 wlarc=
11435 fi
11436
11437 # PORTME: fill in a description of your system's C++ link characteristics
11438 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11439 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11440 ld_shlibs_CXX=yes
11441 case $host_os in
11442 aix3*)
11443 # FIXME: insert proper C++ library support
11444 ld_shlibs_CXX=no
11445 ;;
11446 aix4* | aix5*)
11447 if test "$host_cpu" = ia64; then
11448 # On IA64, the linker does run time linking by default, so we don't
11449 # have to do anything special.
11450 aix_use_runtimelinking=no
11451 exp_sym_flag='-Bexport'
11452 no_entry_flag=""
11453 else
11454 aix_use_runtimelinking=no
11455
11456 # Test if we are trying to use run time linking or normal
11457 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11458 # need to do runtime linking.
11459 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11460 for ld_flag in $LDFLAGS; do
11461 case $ld_flag in
11462 *-brtl*)
11463 aix_use_runtimelinking=yes
11464 break
11465 ;;
11466 esac
11467 done
11468 ;;
11469 esac
11470
11471 exp_sym_flag='-bexport'
11472 no_entry_flag='-bnoentry'
11473 fi
11474
11475 # When large executables or shared objects are built, AIX ld can
11476 # have problems creating the table of contents. If linking a library
11477 # or program results in "error TOC overflow" add -mminimal-toc to
11478 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11479 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11480
11481 archive_cmds_CXX=''
11482 hardcode_direct_CXX=yes
11483 hardcode_libdir_separator_CXX=':'
11484 link_all_deplibs_CXX=yes
11485
11486 if test "$GXX" = yes; then
11487 case $host_os in aix4.[012]|aix4.[012].*)
11488 # We only want to do this on AIX 4.2 and lower, the check
11489 # below for broken collect2 doesn't work under 4.3+
11490 collect2name=`${CC} -print-prog-name=collect2`
11491 if test -f "$collect2name" && \
11492 strings "$collect2name" | grep resolve_lib_name >/dev/null
11493 then
11494 # We have reworked collect2
11495 hardcode_direct_CXX=yes
11496 else
11497 # We have old collect2
11498 hardcode_direct_CXX=unsupported
11499 # It fails to find uninstalled libraries when the uninstalled
11500 # path is not listed in the libpath. Setting hardcode_minus_L
11501 # to unsupported forces relinking
11502 hardcode_minus_L_CXX=yes
11503 hardcode_libdir_flag_spec_CXX='-L$libdir'
11504 hardcode_libdir_separator_CXX=
11505 fi
11506 ;;
11507 esac
11508 shared_flag='-shared'
11509 if test "$aix_use_runtimelinking" = yes; then
11510 shared_flag="$shared_flag "'${wl}-G'
11511 fi
11512 else
11513 # not using gcc
11514 if test "$host_cpu" = ia64; then
11515 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11516 # chokes on -Wl,-G. The following line is correct:
11517 shared_flag='-G'
11518 else
11519 if test "$aix_use_runtimelinking" = yes; then
11520 shared_flag='${wl}-G'
11521 else
11522 shared_flag='${wl}-bM:SRE'
11523 fi
11524 fi
11525 fi
11526
11527 # It seems that -bexpall does not export symbols beginning with
11528 # underscore (_), so it is better to generate a list of symbols to export.
11529 always_export_symbols_CXX=yes
11530 if test "$aix_use_runtimelinking" = yes; then
11531 # Warning - without using the other runtime loading flags (-brtl),
11532 # -berok will link without error, but may produce a broken library.
11533 allow_undefined_flag_CXX='-berok'
11534 # Determine the default libpath from the value encoded in an empty executable.
11535 cat >conftest.$ac_ext <<_ACEOF
11536 /* confdefs.h. */
11537 _ACEOF
11538 cat confdefs.h >>conftest.$ac_ext
11539 cat >>conftest.$ac_ext <<_ACEOF
11540 /* end confdefs.h. */
11541
11542 int
11543 main ()
11544 {
11545
11546 ;
11547 return 0;
11548 }
11549 _ACEOF
11550 rm -f conftest.$ac_objext conftest$ac_exeext
11551 if { (ac_try="$ac_link"
11552 case "(($ac_try" in
11553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11554 *) ac_try_echo=$ac_try;;
11555 esac
11556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11557 (eval "$ac_link") 2>conftest.er1
11558 ac_status=$?
11559 grep -v '^ *+' conftest.er1 >conftest.err
11560 rm -f conftest.er1
11561 cat conftest.err >&5
11562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563 (exit $ac_status); } &&
11564 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11565 { (case "(($ac_try" in
11566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11567 *) ac_try_echo=$ac_try;;
11568 esac
11569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11570 (eval "$ac_try") 2>&5
11571 ac_status=$?
11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573 (exit $ac_status); }; } &&
11574 { ac_try='test -s conftest$ac_exeext'
11575 { (case "(($ac_try" in
11576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11577 *) ac_try_echo=$ac_try;;
11578 esac
11579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11580 (eval "$ac_try") 2>&5
11581 ac_status=$?
11582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583 (exit $ac_status); }; }; then
11584
11585 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11586 }'`
11587 # Check for a 64-bit object if we didn't find anything.
11588 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11589 }'`; fi
11590 else
11591 echo "$as_me: failed program was:" >&5
11592 sed 's/^/| /' conftest.$ac_ext >&5
11593
11594
11595 fi
11596
11597 rm -f core conftest.err conftest.$ac_objext \
11598 conftest$ac_exeext conftest.$ac_ext
11599 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11600
11601 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11602
11603 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"
11604 else
11605 if test "$host_cpu" = ia64; then
11606 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11607 allow_undefined_flag_CXX="-z nodefs"
11608 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"
11609 else
11610 # Determine the default libpath from the value encoded in an empty executable.
11611 cat >conftest.$ac_ext <<_ACEOF
11612 /* confdefs.h. */
11613 _ACEOF
11614 cat confdefs.h >>conftest.$ac_ext
11615 cat >>conftest.$ac_ext <<_ACEOF
11616 /* end confdefs.h. */
11617
11618 int
11619 main ()
11620 {
11621
11622 ;
11623 return 0;
11624 }
11625 _ACEOF
11626 rm -f conftest.$ac_objext conftest$ac_exeext
11627 if { (ac_try="$ac_link"
11628 case "(($ac_try" in
11629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11630 *) ac_try_echo=$ac_try;;
11631 esac
11632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11633 (eval "$ac_link") 2>conftest.er1
11634 ac_status=$?
11635 grep -v '^ *+' conftest.er1 >conftest.err
11636 rm -f conftest.er1
11637 cat conftest.err >&5
11638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11639 (exit $ac_status); } &&
11640 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11641 { (case "(($ac_try" in
11642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11643 *) ac_try_echo=$ac_try;;
11644 esac
11645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11646 (eval "$ac_try") 2>&5
11647 ac_status=$?
11648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649 (exit $ac_status); }; } &&
11650 { ac_try='test -s conftest$ac_exeext'
11651 { (case "(($ac_try" in
11652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11653 *) ac_try_echo=$ac_try;;
11654 esac
11655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11656 (eval "$ac_try") 2>&5
11657 ac_status=$?
11658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659 (exit $ac_status); }; }; then
11660
11661 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11662 }'`
11663 # Check for a 64-bit object if we didn't find anything.
11664 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11665 }'`; fi
11666 else
11667 echo "$as_me: failed program was:" >&5
11668 sed 's/^/| /' conftest.$ac_ext >&5
11669
11670
11671 fi
11672
11673 rm -f core conftest.err conftest.$ac_objext \
11674 conftest$ac_exeext conftest.$ac_ext
11675 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11676
11677 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11678 # Warning - without using the other run time loading flags,
11679 # -berok will link without error, but may produce a broken library.
11680 no_undefined_flag_CXX=' ${wl}-bernotok'
11681 allow_undefined_flag_CXX=' ${wl}-berok'
11682 # Exported symbols can be pulled into shared objects from archives
11683 whole_archive_flag_spec_CXX='$convenience'
11684 archive_cmds_need_lc_CXX=yes
11685 # This is similar to how AIX traditionally builds its shared libraries.
11686 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'
11687 fi
11688 fi
11689 ;;
11690
11691 beos*)
11692 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11693 allow_undefined_flag_CXX=unsupported
11694 # Joseph Beckenbach <[email protected]> says some releases of gcc
11695 # support --undefined. This deserves some investigation. FIXME
11696 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11697 else
11698 ld_shlibs_CXX=no
11699 fi
11700 ;;
11701
11702 chorus*)
11703 case $cc_basename in
11704 *)
11705 # FIXME: insert proper C++ library support
11706 ld_shlibs_CXX=no
11707 ;;
11708 esac
11709 ;;
11710
11711 cygwin* | mingw* | pw32*)
11712 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11713 # as there is no search path for DLLs.
11714 hardcode_libdir_flag_spec_CXX='-L$libdir'
11715 allow_undefined_flag_CXX=unsupported
11716 always_export_symbols_CXX=no
11717 enable_shared_with_static_runtimes_CXX=yes
11718
11719 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11720 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'
11721 # If the export-symbols file already is a .def file (1st line
11722 # is EXPORTS), use it as is; otherwise, prepend...
11723 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11724 cp $export_symbols $output_objdir/$soname.def;
11725 else
11726 echo EXPORTS > $output_objdir/$soname.def;
11727 cat $export_symbols >> $output_objdir/$soname.def;
11728 fi~
11729 $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'
11730 else
11731 ld_shlibs_CXX=no
11732 fi
11733 ;;
11734 darwin* | rhapsody*)
11735 case $host_os in
11736 rhapsody* | darwin1.[012])
11737 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11738 ;;
11739 *) # Darwin 1.3 on
11740 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11741 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11742 else
11743 case ${MACOSX_DEPLOYMENT_TARGET} in
11744 10.[012])
11745 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11746 ;;
11747 10.*)
11748 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11749 ;;
11750 esac
11751 fi
11752 ;;
11753 esac
11754 archive_cmds_need_lc_CXX=no
11755 hardcode_direct_CXX=no
11756 hardcode_automatic_CXX=yes
11757 hardcode_shlibpath_var_CXX=unsupported
11758 whole_archive_flag_spec_CXX=''
11759 link_all_deplibs_CXX=yes
11760
11761 if test "$GXX" = yes ; then
11762 lt_int_apple_cc_single_mod=no
11763 output_verbose_link_cmd='echo'
11764 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11765 lt_int_apple_cc_single_mod=yes
11766 fi
11767 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11768 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11769 else
11770 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'
11771 fi
11772 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11773 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11774 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11775 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11776 else
11777 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11778 fi
11779 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}'
11780 else
11781 case $cc_basename in
11782 xlc*)
11783 output_verbose_link_cmd='echo'
11784 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11785 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11786 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11787 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11788 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}'
11789 ;;
11790 *)
11791 ld_shlibs_CXX=no
11792 ;;
11793 esac
11794 fi
11795 ;;
11796
11797 dgux*)
11798 case $cc_basename in
11799 ec++*)
11800 # FIXME: insert proper C++ library support
11801 ld_shlibs_CXX=no
11802 ;;
11803 ghcx*)
11804 # Green Hills C++ Compiler
11805 # FIXME: insert proper C++ library support
11806 ld_shlibs_CXX=no
11807 ;;
11808 *)
11809 # FIXME: insert proper C++ library support
11810 ld_shlibs_CXX=no
11811 ;;
11812 esac
11813 ;;
11814 freebsd[12]*)
11815 # C++ shared libraries reported to be fairly broken before switch to ELF
11816 ld_shlibs_CXX=no
11817 ;;
11818 freebsd-elf*)
11819 archive_cmds_need_lc_CXX=no
11820 ;;
11821 freebsd* | kfreebsd*-gnu | dragonfly*)
11822 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11823 # conventions
11824 ld_shlibs_CXX=yes
11825 ;;
11826 gnu*)
11827 ;;
11828 hpux9*)
11829 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11830 hardcode_libdir_separator_CXX=:
11831 export_dynamic_flag_spec_CXX='${wl}-E'
11832 hardcode_direct_CXX=yes
11833 hardcode_minus_L_CXX=yes # Not in the search PATH,
11834 # but as the default
11835 # location of the library.
11836
11837 case $cc_basename in
11838 CC*)
11839 # FIXME: insert proper C++ library support
11840 ld_shlibs_CXX=no
11841 ;;
11842 aCC*)
11843 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'
11844 # Commands to make compiler produce verbose output that lists
11845 # what "hidden" libraries, object files and flags are used when
11846 # linking a shared library.
11847 #
11848 # There doesn't appear to be a way to prevent this compiler from
11849 # explicitly linking system object files so we need to strip them
11850 # from the output so that they don't get included in the library
11851 # dependencies.
11852 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'
11853 ;;
11854 *)
11855 if test "$GXX" = yes; then
11856 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'
11857 else
11858 # FIXME: insert proper C++ library support
11859 ld_shlibs_CXX=no
11860 fi
11861 ;;
11862 esac
11863 ;;
11864 hpux10*|hpux11*)
11865 if test $with_gnu_ld = no; then
11866 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11867 hardcode_libdir_separator_CXX=:
11868
11869 case $host_cpu in
11870 hppa*64*|ia64*)
11871 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11872 ;;
11873 *)
11874 export_dynamic_flag_spec_CXX='${wl}-E'
11875 ;;
11876 esac
11877 fi
11878 case $host_cpu in
11879 hppa*64*|ia64*)
11880 hardcode_direct_CXX=no
11881 hardcode_shlibpath_var_CXX=no
11882 ;;
11883 *)
11884 hardcode_direct_CXX=yes
11885 hardcode_minus_L_CXX=yes # Not in the search PATH,
11886 # but as the default
11887 # location of the library.
11888 ;;
11889 esac
11890
11891 case $cc_basename in
11892 CC*)
11893 # FIXME: insert proper C++ library support
11894 ld_shlibs_CXX=no
11895 ;;
11896 aCC*)
11897 case $host_cpu in
11898 hppa*64*)
11899 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11900 ;;
11901 ia64*)
11902 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11903 ;;
11904 *)
11905 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11906 ;;
11907 esac
11908 # Commands to make compiler produce verbose output that lists
11909 # what "hidden" libraries, object files and flags are used when
11910 # linking a shared library.
11911 #
11912 # There doesn't appear to be a way to prevent this compiler from
11913 # explicitly linking system object files so we need to strip them
11914 # from the output so that they don't get included in the library
11915 # dependencies.
11916 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'
11917 ;;
11918 *)
11919 if test "$GXX" = yes; then
11920 if test $with_gnu_ld = no; then
11921 case $host_cpu in
11922 hppa*64*)
11923 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11924 ;;
11925 ia64*)
11926 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11927 ;;
11928 *)
11929 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'
11930 ;;
11931 esac
11932 fi
11933 else
11934 # FIXME: insert proper C++ library support
11935 ld_shlibs_CXX=no
11936 fi
11937 ;;
11938 esac
11939 ;;
11940 interix3*)
11941 hardcode_direct_CXX=no
11942 hardcode_shlibpath_var_CXX=no
11943 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11944 export_dynamic_flag_spec_CXX='${wl}-E'
11945 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11946 # Instead, shared libraries are loaded at an image base (0x10000000 by
11947 # default) and relocated if they conflict, which is a slow very memory
11948 # consuming and fragmenting process. To avoid this, we pick a random,
11949 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11950 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11951 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'
11952 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'
11953 ;;
11954 irix5* | irix6*)
11955 case $cc_basename in
11956 CC*)
11957 # SGI C++
11958 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'
11959
11960 # Archives containing C++ object files must be created using
11961 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11962 # necessary to make sure instantiated templates are included
11963 # in the archive.
11964 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11965 ;;
11966 *)
11967 if test "$GXX" = yes; then
11968 if test "$with_gnu_ld" = no; then
11969 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'
11970 else
11971 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'
11972 fi
11973 fi
11974 link_all_deplibs_CXX=yes
11975 ;;
11976 esac
11977 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11978 hardcode_libdir_separator_CXX=:
11979 ;;
11980 linux*)
11981 case $cc_basename in
11982 KCC*)
11983 # Kuck and Associates, Inc. (KAI) C++ Compiler
11984
11985 # KCC will only create a shared library if the output file
11986 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11987 # to its proper name (with version) after linking.
11988 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'
11989 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'
11990 # Commands to make compiler produce verbose output that lists
11991 # what "hidden" libraries, object files and flags are used when
11992 # linking a shared library.
11993 #
11994 # There doesn't appear to be a way to prevent this compiler from
11995 # explicitly linking system object files so we need to strip them
11996 # from the output so that they don't get included in the library
11997 # dependencies.
11998 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'
11999
12000 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12001 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12002
12003 # Archives containing C++ object files must be created using
12004 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12005 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12006 ;;
12007 icpc*)
12008 # Intel C++
12009 with_gnu_ld=yes
12010 # version 8.0 and above of icpc choke on multiply defined symbols
12011 # if we add $predep_objects and $postdep_objects, however 7.1 and
12012 # earlier do not add the objects themselves.
12013 case `$CC -V 2>&1` in
12014 *"Version 7."*)
12015 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12016 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'
12017 ;;
12018 *) # Version 8.0 or newer
12019 tmp_idyn=
12020 case $host_cpu in
12021 ia64*) tmp_idyn=' -i_dynamic';;
12022 esac
12023 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12024 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'
12025 ;;
12026 esac
12027 archive_cmds_need_lc_CXX=no
12028 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12029 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12030 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12031 ;;
12032 pgCC*)
12033 # Portland Group C++ compiler
12034 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12035 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'
12036
12037 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12038 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12039 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'
12040 ;;
12041 cxx*)
12042 # Compaq C++
12043 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12044 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'
12045
12046 runpath_var=LD_RUN_PATH
12047 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12048 hardcode_libdir_separator_CXX=:
12049
12050 # Commands to make compiler produce verbose output that lists
12051 # what "hidden" libraries, object files and flags are used when
12052 # linking a shared library.
12053 #
12054 # There doesn't appear to be a way to prevent this compiler from
12055 # explicitly linking system object files so we need to strip them
12056 # from the output so that they don't get included in the library
12057 # dependencies.
12058 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'
12059 ;;
12060 esac
12061 ;;
12062 lynxos*)
12063 # FIXME: insert proper C++ library support
12064 ld_shlibs_CXX=no
12065 ;;
12066 m88k*)
12067 # FIXME: insert proper C++ library support
12068 ld_shlibs_CXX=no
12069 ;;
12070 mvs*)
12071 case $cc_basename in
12072 cxx*)
12073 # FIXME: insert proper C++ library support
12074 ld_shlibs_CXX=no
12075 ;;
12076 *)
12077 # FIXME: insert proper C++ library support
12078 ld_shlibs_CXX=no
12079 ;;
12080 esac
12081 ;;
12082 netbsd*)
12083 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12084 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12085 wlarc=
12086 hardcode_libdir_flag_spec_CXX='-R$libdir'
12087 hardcode_direct_CXX=yes
12088 hardcode_shlibpath_var_CXX=no
12089 fi
12090 # Workaround some broken pre-1.5 toolchains
12091 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12092 ;;
12093 openbsd2*)
12094 # C++ shared libraries are fairly broken
12095 ld_shlibs_CXX=no
12096 ;;
12097 openbsd*)
12098 hardcode_direct_CXX=yes
12099 hardcode_shlibpath_var_CXX=no
12100 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12101 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12102 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12103 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12104 export_dynamic_flag_spec_CXX='${wl}-E'
12105 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12106 fi
12107 output_verbose_link_cmd='echo'
12108 ;;
12109 osf3*)
12110 case $cc_basename in
12111 KCC*)
12112 # Kuck and Associates, Inc. (KAI) C++ Compiler
12113
12114 # KCC will only create a shared library if the output file
12115 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12116 # to its proper name (with version) after linking.
12117 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'
12118
12119 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12120 hardcode_libdir_separator_CXX=:
12121
12122 # Archives containing C++ object files must be created using
12123 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12124 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12125
12126 ;;
12127 RCC*)
12128 # Rational C++ 2.4.1
12129 # FIXME: insert proper C++ library support
12130 ld_shlibs_CXX=no
12131 ;;
12132 cxx*)
12133 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12134 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'
12135
12136 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12137 hardcode_libdir_separator_CXX=:
12138
12139 # Commands to make compiler produce verbose output that lists
12140 # what "hidden" libraries, object files and flags are used when
12141 # linking a shared library.
12142 #
12143 # There doesn't appear to be a way to prevent this compiler from
12144 # explicitly linking system object files so we need to strip them
12145 # from the output so that they don't get included in the library
12146 # dependencies.
12147 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'
12148 ;;
12149 *)
12150 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12151 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12152 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'
12153
12154 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12155 hardcode_libdir_separator_CXX=:
12156
12157 # Commands to make compiler produce verbose output that lists
12158 # what "hidden" libraries, object files and flags are used when
12159 # linking a shared library.
12160 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12161
12162 else
12163 # FIXME: insert proper C++ library support
12164 ld_shlibs_CXX=no
12165 fi
12166 ;;
12167 esac
12168 ;;
12169 osf4* | osf5*)
12170 case $cc_basename in
12171 KCC*)
12172 # Kuck and Associates, Inc. (KAI) C++ Compiler
12173
12174 # KCC will only create a shared library if the output file
12175 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12176 # to its proper name (with version) after linking.
12177 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'
12178
12179 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12180 hardcode_libdir_separator_CXX=:
12181
12182 # Archives containing C++ object files must be created using
12183 # the KAI C++ compiler.
12184 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12185 ;;
12186 RCC*)
12187 # Rational C++ 2.4.1
12188 # FIXME: insert proper C++ library support
12189 ld_shlibs_CXX=no
12190 ;;
12191 cxx*)
12192 allow_undefined_flag_CXX=' -expect_unresolved \*'
12193 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'
12194 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12195 echo "-hidden">> $lib.exp~
12196 $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~
12197 $rm $lib.exp'
12198
12199 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12200 hardcode_libdir_separator_CXX=:
12201
12202 # Commands to make compiler produce verbose output that lists
12203 # what "hidden" libraries, object files and flags are used when
12204 # linking a shared library.
12205 #
12206 # There doesn't appear to be a way to prevent this compiler from
12207 # explicitly linking system object files so we need to strip them
12208 # from the output so that they don't get included in the library
12209 # dependencies.
12210 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'
12211 ;;
12212 *)
12213 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12214 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12215 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'
12216
12217 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12218 hardcode_libdir_separator_CXX=:
12219
12220 # Commands to make compiler produce verbose output that lists
12221 # what "hidden" libraries, object files and flags are used when
12222 # linking a shared library.
12223 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12224
12225 else
12226 # FIXME: insert proper C++ library support
12227 ld_shlibs_CXX=no
12228 fi
12229 ;;
12230 esac
12231 ;;
12232 psos*)
12233 # FIXME: insert proper C++ library support
12234 ld_shlibs_CXX=no
12235 ;;
12236 sunos4*)
12237 case $cc_basename in
12238 CC*)
12239 # Sun C++ 4.x
12240 # FIXME: insert proper C++ library support
12241 ld_shlibs_CXX=no
12242 ;;
12243 lcc*)
12244 # Lucid
12245 # FIXME: insert proper C++ library support
12246 ld_shlibs_CXX=no
12247 ;;
12248 *)
12249 # FIXME: insert proper C++ library support
12250 ld_shlibs_CXX=no
12251 ;;
12252 esac
12253 ;;
12254 solaris*)
12255 case $cc_basename in
12256 CC*)
12257 # Sun C++ 4.2, 5.x and Centerline C++
12258 archive_cmds_need_lc_CXX=yes
12259 no_undefined_flag_CXX=' -zdefs'
12260 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12261 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12262 $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'
12263
12264 hardcode_libdir_flag_spec_CXX='-R$libdir'
12265 hardcode_shlibpath_var_CXX=no
12266 case $host_os in
12267 solaris2.[0-5] | solaris2.[0-5].*) ;;
12268 *)
12269 # The C++ compiler is used as linker so we must use $wl
12270 # flag to pass the commands to the underlying system
12271 # linker. We must also pass each convience library through
12272 # to the system linker between allextract/defaultextract.
12273 # The C++ compiler will combine linker options so we
12274 # cannot just pass the convience library names through
12275 # without $wl.
12276 # Supported since Solaris 2.6 (maybe 2.5.1?)
12277 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
12278 ;;
12279 esac
12280 link_all_deplibs_CXX=yes
12281
12282 output_verbose_link_cmd='echo'
12283
12284 # Archives containing C++ object files must be created using
12285 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12286 # necessary to make sure instantiated templates are included
12287 # in the archive.
12288 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12289 ;;
12290 gcx*)
12291 # Green Hills C++ Compiler
12292 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12293
12294 # The C++ compiler must be used to create the archive.
12295 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12296 ;;
12297 *)
12298 # GNU C++ compiler with Solaris linker
12299 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12300 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12301 if $CC --version | grep -v '^2\.7' > /dev/null; then
12302 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12303 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12304 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12305
12306 # Commands to make compiler produce verbose output that lists
12307 # what "hidden" libraries, object files and flags are used when
12308 # linking a shared library.
12309 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12310 else
12311 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12312 # platform.
12313 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12314 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12315 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12316
12317 # Commands to make compiler produce verbose output that lists
12318 # what "hidden" libraries, object files and flags are used when
12319 # linking a shared library.
12320 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12321 fi
12322
12323 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12324 fi
12325 ;;
12326 esac
12327 ;;
12328 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12329 no_undefined_flag_CXX='${wl}-z,text'
12330 archive_cmds_need_lc_CXX=no
12331 hardcode_shlibpath_var_CXX=no
12332 runpath_var='LD_RUN_PATH'
12333
12334 case $cc_basename in
12335 CC*)
12336 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12337 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12338 ;;
12339 *)
12340 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12341 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12342 ;;
12343 esac
12344 ;;
12345 sysv5* | sco3.2v5* | sco5v6*)
12346 # Note: We can NOT use -z defs as we might desire, because we do not
12347 # link with -lc, and that would cause any symbols used from libc to
12348 # always be unresolved, which means just about no library would
12349 # ever link correctly. If we're not using GNU ld we use -z text
12350 # though, which does catch some bad symbols but isn't as heavy-handed
12351 # as -z defs.
12352 # For security reasons, it is highly recommended that you always
12353 # use absolute paths for naming shared libraries, and exclude the
12354 # DT_RUNPATH tag from executables and libraries. But doing so
12355 # requires that you compile everything twice, which is a pain.
12356 # So that behaviour is only enabled if SCOABSPATH is set to a
12357 # non-empty value in the environment. Most likely only useful for
12358 # creating official distributions of packages.
12359 # This is a hack until libtool officially supports absolute path
12360 # names for shared libraries.
12361 no_undefined_flag_CXX='${wl}-z,text'
12362 allow_undefined_flag_CXX='${wl}-z,nodefs'
12363 archive_cmds_need_lc_CXX=no
12364 hardcode_shlibpath_var_CXX=no
12365 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12366 hardcode_libdir_separator_CXX=':'
12367 link_all_deplibs_CXX=yes
12368 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12369 runpath_var='LD_RUN_PATH'
12370
12371 case $cc_basename in
12372 CC*)
12373 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12374 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12375 ;;
12376 *)
12377 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12378 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12379 ;;
12380 esac
12381 ;;
12382 tandem*)
12383 case $cc_basename in
12384 NCC*)
12385 # NonStop-UX NCC 3.20
12386 # FIXME: insert proper C++ library support
12387 ld_shlibs_CXX=no
12388 ;;
12389 *)
12390 # FIXME: insert proper C++ library support
12391 ld_shlibs_CXX=no
12392 ;;
12393 esac
12394 ;;
12395 vxworks*)
12396 # FIXME: insert proper C++ library support
12397 ld_shlibs_CXX=no
12398 ;;
12399 *)
12400 # FIXME: insert proper C++ library support
12401 ld_shlibs_CXX=no
12402 ;;
12403 esac
12404 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12405 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12406 test "$ld_shlibs_CXX" = no && can_build_shared=no
12407
12408 GCC_CXX="$GXX"
12409 LD_CXX="$LD"
12410
12411
12412 cat > conftest.$ac_ext <<EOF
12413 class Foo
12414 {
12415 public:
12416 Foo (void) { a = 0; }
12417 private:
12418 int a;
12419 };
12420 EOF
12421
12422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12423 (eval $ac_compile) 2>&5
12424 ac_status=$?
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); }; then
12427 # Parse the compiler output and extract the necessary
12428 # objects, libraries and library flags.
12429
12430 # Sentinel used to keep track of whether or not we are before
12431 # the conftest object file.
12432 pre_test_object_deps_done=no
12433
12434 # The `*' in the case matches for architectures that use `case' in
12435 # $output_verbose_cmd can trigger glob expansion during the loop
12436 # eval without this substitution.
12437 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12438
12439 for p in `eval $output_verbose_link_cmd`; do
12440 case $p in
12441
12442 -L* | -R* | -l*)
12443 # Some compilers place space between "-{L,R}" and the path.
12444 # Remove the space.
12445 if test $p = "-L" \
12446 || test $p = "-R"; then
12447 prev=$p
12448 continue
12449 else
12450 prev=
12451 fi
12452
12453 if test "$pre_test_object_deps_done" = no; then
12454 case $p in
12455 -L* | -R*)
12456 # Internal compiler library paths should come after those
12457 # provided the user. The postdeps already come after the
12458 # user supplied libs so there is no need to process them.
12459 if test -z "$compiler_lib_search_path_CXX"; then
12460 compiler_lib_search_path_CXX="${prev}${p}"
12461 else
12462 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12463 fi
12464 ;;
12465 # The "-l" case would never come before the object being
12466 # linked, so don't bother handling this case.
12467 esac
12468 else
12469 if test -z "$postdeps_CXX"; then
12470 postdeps_CXX="${prev}${p}"
12471 else
12472 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12473 fi
12474 fi
12475 ;;
12476
12477 *.$objext)
12478 # This assumes that the test object file only shows up
12479 # once in the compiler output.
12480 if test "$p" = "conftest.$objext"; then
12481 pre_test_object_deps_done=yes
12482 continue
12483 fi
12484
12485 if test "$pre_test_object_deps_done" = no; then
12486 if test -z "$predep_objects_CXX"; then
12487 predep_objects_CXX="$p"
12488 else
12489 predep_objects_CXX="$predep_objects_CXX $p"
12490 fi
12491 else
12492 if test -z "$postdep_objects_CXX"; then
12493 postdep_objects_CXX="$p"
12494 else
12495 postdep_objects_CXX="$postdep_objects_CXX $p"
12496 fi
12497 fi
12498 ;;
12499
12500 *) ;; # Ignore the rest.
12501
12502 esac
12503 done
12504
12505 # Clean up.
12506 rm -f a.out a.exe
12507 else
12508 echo "libtool.m4: error: problem compiling CXX test program"
12509 fi
12510
12511 $rm -f confest.$objext
12512
12513 # PORTME: override above test on systems where it is broken
12514 case $host_os in
12515 interix3*)
12516 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12517 # hack all around it, let's just trust "g++" to DTRT.
12518 predep_objects_CXX=
12519 postdep_objects_CXX=
12520 postdeps_CXX=
12521 ;;
12522
12523 solaris*)
12524 case $cc_basename in
12525 CC*)
12526 # Adding this requires a known-good setup of shared libraries for
12527 # Sun compiler versions before 5.6, else PIC objects from an old
12528 # archive will be linked into the output, leading to subtle bugs.
12529 postdeps_CXX='-lCstd -lCrun'
12530 ;;
12531 esac
12532 ;;
12533 esac
12534
12535
12536 case " $postdeps_CXX " in
12537 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12538 esac
12539
12540 lt_prog_compiler_wl_CXX=
12541 lt_prog_compiler_pic_CXX=
12542 lt_prog_compiler_static_CXX=
12543
12544 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12545 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12546
12547 # C++ specific cases for pic, static, wl, etc.
12548 if test "$GXX" = yes; then
12549 lt_prog_compiler_wl_CXX='-Wl,'
12550 lt_prog_compiler_static_CXX='-static'
12551
12552 case $host_os in
12553 aix*)
12554 # All AIX code is PIC.
12555 if test "$host_cpu" = ia64; then
12556 # AIX 5 now supports IA64 processor
12557 lt_prog_compiler_static_CXX='-Bstatic'
12558 fi
12559 ;;
12560 amigaos*)
12561 # FIXME: we need at least 68020 code to build shared libraries, but
12562 # adding the `-m68020' flag to GCC prevents building anything better,
12563 # like `-m68040'.
12564 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12565 ;;
12566 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12567 # PIC is the default for these OSes.
12568 ;;
12569 mingw* | os2* | pw32*)
12570 # This hack is so that the source file can tell whether it is being
12571 # built for inclusion in a dll (and should export symbols for example).
12572 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12573 ;;
12574 darwin* | rhapsody*)
12575 # PIC is the default on this platform
12576 # Common symbols not allowed in MH_DYLIB files
12577 lt_prog_compiler_pic_CXX='-fno-common'
12578 ;;
12579 *djgpp*)
12580 # DJGPP does not support shared libraries at all
12581 lt_prog_compiler_pic_CXX=
12582 ;;
12583 interix3*)
12584 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12585 # Instead, we relocate shared libraries at runtime.
12586 ;;
12587 sysv4*MP*)
12588 if test -d /usr/nec; then
12589 lt_prog_compiler_pic_CXX=-Kconform_pic
12590 fi
12591 ;;
12592 hpux*)
12593 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12594 # not for PA HP-UX.
12595 case $host_cpu in
12596 hppa*64*|ia64*)
12597 ;;
12598 *)
12599 lt_prog_compiler_pic_CXX='-fPIC'
12600 ;;
12601 esac
12602 ;;
12603 *)
12604 lt_prog_compiler_pic_CXX='-fPIC'
12605 ;;
12606 esac
12607 else
12608 case $host_os in
12609 aix4* | aix5*)
12610 # All AIX code is PIC.
12611 if test "$host_cpu" = ia64; then
12612 # AIX 5 now supports IA64 processor
12613 lt_prog_compiler_static_CXX='-Bstatic'
12614 else
12615 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12616 fi
12617 ;;
12618 chorus*)
12619 case $cc_basename in
12620 cxch68*)
12621 # Green Hills C++ Compiler
12622 # _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"
12623 ;;
12624 esac
12625 ;;
12626 darwin*)
12627 # PIC is the default on this platform
12628 # Common symbols not allowed in MH_DYLIB files
12629 case $cc_basename in
12630 xlc*)
12631 lt_prog_compiler_pic_CXX='-qnocommon'
12632 lt_prog_compiler_wl_CXX='-Wl,'
12633 ;;
12634 esac
12635 ;;
12636 dgux*)
12637 case $cc_basename in
12638 ec++*)
12639 lt_prog_compiler_pic_CXX='-KPIC'
12640 ;;
12641 ghcx*)
12642 # Green Hills C++ Compiler
12643 lt_prog_compiler_pic_CXX='-pic'
12644 ;;
12645 *)
12646 ;;
12647 esac
12648 ;;
12649 freebsd* | kfreebsd*-gnu | dragonfly*)
12650 # FreeBSD uses GNU C++
12651 ;;
12652 hpux9* | hpux10* | hpux11*)
12653 case $cc_basename in
12654 CC*)
12655 lt_prog_compiler_wl_CXX='-Wl,'
12656 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12657 if test "$host_cpu" != ia64; then
12658 lt_prog_compiler_pic_CXX='+Z'
12659 fi
12660 ;;
12661 aCC*)
12662 lt_prog_compiler_wl_CXX='-Wl,'
12663 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12664 case $host_cpu in
12665 hppa*64*|ia64*)
12666 # +Z the default
12667 ;;
12668 *)
12669 lt_prog_compiler_pic_CXX='+Z'
12670 ;;
12671 esac
12672 ;;
12673 *)
12674 ;;
12675 esac
12676 ;;
12677 interix*)
12678 # This is c89, which is MS Visual C++ (no shared libs)
12679 # Anyone wants to do a port?
12680 ;;
12681 irix5* | irix6* | nonstopux*)
12682 case $cc_basename in
12683 CC*)
12684 lt_prog_compiler_wl_CXX='-Wl,'
12685 lt_prog_compiler_static_CXX='-non_shared'
12686 # CC pic flag -KPIC is the default.
12687 ;;
12688 *)
12689 ;;
12690 esac
12691 ;;
12692 linux*)
12693 case $cc_basename in
12694 KCC*)
12695 # KAI C++ Compiler
12696 lt_prog_compiler_wl_CXX='--backend -Wl,'
12697 lt_prog_compiler_pic_CXX='-fPIC'
12698 ;;
12699 icpc* | ecpc*)
12700 # Intel C++
12701 lt_prog_compiler_wl_CXX='-Wl,'
12702 lt_prog_compiler_pic_CXX='-KPIC'
12703 lt_prog_compiler_static_CXX='-static'
12704 ;;
12705 pgCC*)
12706 # Portland Group C++ compiler.
12707 lt_prog_compiler_wl_CXX='-Wl,'
12708 lt_prog_compiler_pic_CXX='-fpic'
12709 lt_prog_compiler_static_CXX='-Bstatic'
12710 ;;
12711 cxx*)
12712 # Compaq C++
12713 # Make sure the PIC flag is empty. It appears that all Alpha
12714 # Linux and Compaq Tru64 Unix objects are PIC.
12715 lt_prog_compiler_pic_CXX=
12716 lt_prog_compiler_static_CXX='-non_shared'
12717 ;;
12718 *)
12719 ;;
12720 esac
12721 ;;
12722 lynxos*)
12723 ;;
12724 m88k*)
12725 ;;
12726 mvs*)
12727 case $cc_basename in
12728 cxx*)
12729 lt_prog_compiler_pic_CXX='-W c,exportall'
12730 ;;
12731 *)
12732 ;;
12733 esac
12734 ;;
12735 netbsd*)
12736 ;;
12737 osf3* | osf4* | osf5*)
12738 case $cc_basename in
12739 KCC*)
12740 lt_prog_compiler_wl_CXX='--backend -Wl,'
12741 ;;
12742 RCC*)
12743 # Rational C++ 2.4.1
12744 lt_prog_compiler_pic_CXX='-pic'
12745 ;;
12746 cxx*)
12747 # Digital/Compaq C++
12748 lt_prog_compiler_wl_CXX='-Wl,'
12749 # Make sure the PIC flag is empty. It appears that all Alpha
12750 # Linux and Compaq Tru64 Unix objects are PIC.
12751 lt_prog_compiler_pic_CXX=
12752 lt_prog_compiler_static_CXX='-non_shared'
12753 ;;
12754 *)
12755 ;;
12756 esac
12757 ;;
12758 psos*)
12759 ;;
12760 solaris*)
12761 case $cc_basename in
12762 CC*)
12763 # Sun C++ 4.2, 5.x and Centerline C++
12764 lt_prog_compiler_pic_CXX='-KPIC'
12765 lt_prog_compiler_static_CXX='-Bstatic'
12766 lt_prog_compiler_wl_CXX='-Qoption ld '
12767 ;;
12768 gcx*)
12769 # Green Hills C++ Compiler
12770 lt_prog_compiler_pic_CXX='-PIC'
12771 ;;
12772 *)
12773 ;;
12774 esac
12775 ;;
12776 sunos4*)
12777 case $cc_basename in
12778 CC*)
12779 # Sun C++ 4.x
12780 lt_prog_compiler_pic_CXX='-pic'
12781 lt_prog_compiler_static_CXX='-Bstatic'
12782 ;;
12783 lcc*)
12784 # Lucid
12785 lt_prog_compiler_pic_CXX='-pic'
12786 ;;
12787 *)
12788 ;;
12789 esac
12790 ;;
12791 tandem*)
12792 case $cc_basename in
12793 NCC*)
12794 # NonStop-UX NCC 3.20
12795 lt_prog_compiler_pic_CXX='-KPIC'
12796 ;;
12797 *)
12798 ;;
12799 esac
12800 ;;
12801 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12802 case $cc_basename in
12803 CC*)
12804 lt_prog_compiler_wl_CXX='-Wl,'
12805 lt_prog_compiler_pic_CXX='-KPIC'
12806 lt_prog_compiler_static_CXX='-Bstatic'
12807 ;;
12808 esac
12809 ;;
12810 vxworks*)
12811 ;;
12812 *)
12813 lt_prog_compiler_can_build_shared_CXX=no
12814 ;;
12815 esac
12816 fi
12817
12818 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12819 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12820
12821 #
12822 # Check to make sure the PIC flag actually works.
12823 #
12824 if test -n "$lt_prog_compiler_pic_CXX"; then
12825
12826 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12827 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12828 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12829 echo $ECHO_N "(cached) $ECHO_C" >&6
12830 else
12831 lt_prog_compiler_pic_works_CXX=no
12832 ac_outfile=conftest.$ac_objext
12833 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12834 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12835 # Insert the option either (1) after the last *FLAGS variable, or
12836 # (2) before a word containing "conftest.", or (3) at the end.
12837 # Note that $ac_compile itself does not contain backslashes and begins
12838 # with a dollar sign (not a hyphen), so the echo should work correctly.
12839 # The option is referenced via a variable to avoid confusing sed.
12840 lt_compile=`echo "$ac_compile" | $SED \
12841 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12842 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12843 -e 's:$: $lt_compiler_flag:'`
12844 (eval echo "\"\$as_me:12844: $lt_compile\"" >&5)
12845 (eval "$lt_compile" 2>conftest.err)
12846 ac_status=$?
12847 cat conftest.err >&5
12848 echo "$as_me:12848: \$? = $ac_status" >&5
12849 if (exit $ac_status) && test -s "$ac_outfile"; then
12850 # The compiler can only warn and ignore the option if not recognized
12851 # So say no if there are warnings other than the usual output.
12852 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12853 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12854 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12855 lt_prog_compiler_pic_works_CXX=yes
12856 fi
12857 fi
12858 $rm conftest*
12859
12860 fi
12861 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12862 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12863
12864 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12865 case $lt_prog_compiler_pic_CXX in
12866 "" | " "*) ;;
12867 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12868 esac
12869 else
12870 lt_prog_compiler_pic_CXX=
12871 lt_prog_compiler_can_build_shared_CXX=no
12872 fi
12873
12874 fi
12875 case $host_os in
12876 # For platforms which do not support PIC, -DPIC is meaningless:
12877 *djgpp*)
12878 lt_prog_compiler_pic_CXX=
12879 ;;
12880 *)
12881 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12882 ;;
12883 esac
12884
12885 #
12886 # Check to make sure the static flag actually works.
12887 #
12888 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12889 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12890 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12891 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12892 echo $ECHO_N "(cached) $ECHO_C" >&6
12893 else
12894 lt_prog_compiler_static_works_CXX=no
12895 save_LDFLAGS="$LDFLAGS"
12896 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12897 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12898 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12899 # The linker can only warn and ignore the option if not recognized
12900 # So say no if there are warnings
12901 if test -s conftest.err; then
12902 # Append any errors to the config.log.
12903 cat conftest.err 1>&5
12904 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12905 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12906 if diff conftest.exp conftest.er2 >/dev/null; then
12907 lt_prog_compiler_static_works_CXX=yes
12908 fi
12909 else
12910 lt_prog_compiler_static_works_CXX=yes
12911 fi
12912 fi
12913 $rm conftest*
12914 LDFLAGS="$save_LDFLAGS"
12915
12916 fi
12917 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12918 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12919
12920 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12921 :
12922 else
12923 lt_prog_compiler_static_CXX=
12924 fi
12925
12926
12927 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12928 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12929 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12930 echo $ECHO_N "(cached) $ECHO_C" >&6
12931 else
12932 lt_cv_prog_compiler_c_o_CXX=no
12933 $rm -r conftest 2>/dev/null
12934 mkdir conftest
12935 cd conftest
12936 mkdir out
12937 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12938
12939 lt_compiler_flag="-o out/conftest2.$ac_objext"
12940 # Insert the option either (1) after the last *FLAGS variable, or
12941 # (2) before a word containing "conftest.", or (3) at the end.
12942 # Note that $ac_compile itself does not contain backslashes and begins
12943 # with a dollar sign (not a hyphen), so the echo should work correctly.
12944 lt_compile=`echo "$ac_compile" | $SED \
12945 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12946 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12947 -e 's:$: $lt_compiler_flag:'`
12948 (eval echo "\"\$as_me:12948: $lt_compile\"" >&5)
12949 (eval "$lt_compile" 2>out/conftest.err)
12950 ac_status=$?
12951 cat out/conftest.err >&5
12952 echo "$as_me:12952: \$? = $ac_status" >&5
12953 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12954 then
12955 # The compiler can only warn and ignore the option if not recognized
12956 # So say no if there are warnings
12957 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12958 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12959 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12960 lt_cv_prog_compiler_c_o_CXX=yes
12961 fi
12962 fi
12963 chmod u+w . 2>&5
12964 $rm conftest*
12965 # SGI C++ compiler will create directory out/ii_files/ for
12966 # template instantiation
12967 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12968 $rm out/* && rmdir out
12969 cd ..
12970 rmdir conftest
12971 $rm conftest*
12972
12973 fi
12974 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12975 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12976
12977
12978 hard_links="nottested"
12979 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12980 # do not overwrite the value of need_locks provided by the user
12981 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12982 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12983 hard_links=yes
12984 $rm conftest*
12985 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12986 touch conftest.a
12987 ln conftest.a conftest.b 2>&5 || hard_links=no
12988 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12989 { echo "$as_me:$LINENO: result: $hard_links" >&5
12990 echo "${ECHO_T}$hard_links" >&6; }
12991 if test "$hard_links" = no; then
12992 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12993 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12994 need_locks=warn
12995 fi
12996 else
12997 need_locks=no
12998 fi
12999
13000 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13001 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13002
13003 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13004 case $host_os in
13005 aix4* | aix5*)
13006 # If we're using GNU nm, then we don't want the "-C" option.
13007 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13008 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13009 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'
13010 else
13011 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'
13012 fi
13013 ;;
13014 pw32*)
13015 export_symbols_cmds_CXX="$ltdll_cmds"
13016 ;;
13017 cygwin* | mingw*)
13018 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'
13019 ;;
13020 *)
13021 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13022 ;;
13023 esac
13024
13025 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13026 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13027 test "$ld_shlibs_CXX" = no && can_build_shared=no
13028
13029 #
13030 # Do we need to explicitly link libc?
13031 #
13032 case "x$archive_cmds_need_lc_CXX" in
13033 x|xyes)
13034 # Assume -lc should be added
13035 archive_cmds_need_lc_CXX=yes
13036
13037 if test "$enable_shared" = yes && test "$GCC" = yes; then
13038 case $archive_cmds_CXX in
13039 *'~'*)
13040 # FIXME: we may have to deal with multi-command sequences.
13041 ;;
13042 '$CC '*)
13043 # Test whether the compiler implicitly links with -lc since on some
13044 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13045 # to ld, don't add -lc before -lgcc.
13046 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13047 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13048 $rm conftest*
13049 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13050
13051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13052 (eval $ac_compile) 2>&5
13053 ac_status=$?
13054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055 (exit $ac_status); } 2>conftest.err; then
13056 soname=conftest
13057 lib=conftest
13058 libobjs=conftest.$ac_objext
13059 deplibs=
13060 wl=$lt_prog_compiler_wl_CXX
13061 pic_flag=$lt_prog_compiler_pic_CXX
13062 compiler_flags=-v
13063 linker_flags=-v
13064 verstring=
13065 output_objdir=.
13066 libname=conftest
13067 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13068 allow_undefined_flag_CXX=
13069 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13070 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13071 ac_status=$?
13072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073 (exit $ac_status); }
13074 then
13075 archive_cmds_need_lc_CXX=no
13076 else
13077 archive_cmds_need_lc_CXX=yes
13078 fi
13079 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13080 else
13081 cat conftest.err 1>&5
13082 fi
13083 $rm conftest*
13084 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13085 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13086 ;;
13087 esac
13088 fi
13089 ;;
13090 esac
13091
13092 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13093 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13094 library_names_spec=
13095 libname_spec='lib$name'
13096 soname_spec=
13097 shrext_cmds=".so"
13098 postinstall_cmds=
13099 postuninstall_cmds=
13100 finish_cmds=
13101 finish_eval=
13102 shlibpath_var=
13103 shlibpath_overrides_runpath=unknown
13104 version_type=none
13105 dynamic_linker="$host_os ld.so"
13106 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13107 if test "$GCC" = yes; then
13108 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13109 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13110 # if the path contains ";" then we assume it to be the separator
13111 # otherwise default to the standard path separator (i.e. ":") - it is
13112 # assumed that no part of a normal pathname contains ";" but that should
13113 # okay in the real world where ";" in dirpaths is itself problematic.
13114 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13115 else
13116 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13117 fi
13118 else
13119 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13120 fi
13121 need_lib_prefix=unknown
13122 hardcode_into_libs=no
13123
13124 # when you set need_version to no, make sure it does not cause -set_version
13125 # flags to be left without arguments
13126 need_version=unknown
13127
13128 case $host_os in
13129 aix3*)
13130 version_type=linux
13131 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13132 shlibpath_var=LIBPATH
13133
13134 # AIX 3 has no versioning support, so we append a major version to the name.
13135 soname_spec='${libname}${release}${shared_ext}$major'
13136 ;;
13137
13138 aix4* | aix5*)
13139 version_type=linux
13140 need_lib_prefix=no
13141 need_version=no
13142 hardcode_into_libs=yes
13143 if test "$host_cpu" = ia64; then
13144 # AIX 5 supports IA64
13145 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13146 shlibpath_var=LD_LIBRARY_PATH
13147 else
13148 # With GCC up to 2.95.x, collect2 would create an import file
13149 # for dependence libraries. The import file would start with
13150 # the line `#! .'. This would cause the generated library to
13151 # depend on `.', always an invalid library. This was fixed in
13152 # development snapshots of GCC prior to 3.0.
13153 case $host_os in
13154 aix4 | aix4.[01] | aix4.[01].*)
13155 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13156 echo ' yes '
13157 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13158 :
13159 else
13160 can_build_shared=no
13161 fi
13162 ;;
13163 esac
13164 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13165 # soname into executable. Probably we can add versioning support to
13166 # collect2, so additional links can be useful in future.
13167 if test "$aix_use_runtimelinking" = yes; then
13168 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13169 # instead of lib<name>.a to let people know that these are not
13170 # typical AIX shared libraries.
13171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13172 else
13173 # We preserve .a as extension for shared libraries through AIX4.2
13174 # and later when we are not doing run time linking.
13175 library_names_spec='${libname}${release}.a $libname.a'
13176 soname_spec='${libname}${release}${shared_ext}$major'
13177 fi
13178 shlibpath_var=LIBPATH
13179 fi
13180 ;;
13181
13182 amigaos*)
13183 library_names_spec='$libname.ixlibrary $libname.a'
13184 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13185 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'
13186 ;;
13187
13188 beos*)
13189 library_names_spec='${libname}${shared_ext}'
13190 dynamic_linker="$host_os ld.so"
13191 shlibpath_var=LIBRARY_PATH
13192 ;;
13193
13194 bsdi[45]*)
13195 version_type=linux
13196 need_version=no
13197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13198 soname_spec='${libname}${release}${shared_ext}$major'
13199 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13200 shlibpath_var=LD_LIBRARY_PATH
13201 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13202 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13203 # the default ld.so.conf also contains /usr/contrib/lib and
13204 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13205 # libtool to hard-code these into programs
13206 ;;
13207
13208 cygwin* | mingw* | pw32*)
13209 version_type=windows
13210 shrext_cmds=".dll"
13211 need_version=no
13212 need_lib_prefix=no
13213
13214 case $GCC,$host_os in
13215 yes,cygwin* | yes,mingw* | yes,pw32*)
13216 library_names_spec='$libname.dll.a'
13217 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13218 postinstall_cmds='base_file=`basename \${file}`~
13219 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13220 dldir=$destdir/`dirname \$dlpath`~
13221 test -d \$dldir || mkdir -p \$dldir~
13222 $install_prog $dir/$dlname \$dldir/$dlname~
13223 chmod a+x \$dldir/$dlname'
13224 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13225 dlpath=$dir/\$dldll~
13226 $rm \$dlpath'
13227 shlibpath_overrides_runpath=yes
13228
13229 case $host_os in
13230 cygwin*)
13231 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13232 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13233 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13234 ;;
13235 mingw*)
13236 # MinGW DLLs use traditional 'lib' prefix
13237 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13238 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13239 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13240 # It is most probably a Windows format PATH printed by
13241 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13242 # path with ; separators, and with drive letters. We can handle the
13243 # drive letters (cygwin fileutils understands them), so leave them,
13244 # especially as we might pass files found there to a mingw objdump,
13245 # which wouldn't understand a cygwinified path. Ahh.
13246 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13247 else
13248 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13249 fi
13250 ;;
13251 pw32*)
13252 # pw32 DLLs use 'pw' prefix rather than 'lib'
13253 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13254 ;;
13255 esac
13256 ;;
13257
13258 *)
13259 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13260 ;;
13261 esac
13262 dynamic_linker='Win32 ld.exe'
13263 # FIXME: first we should search . and the directory the executable is in
13264 shlibpath_var=PATH
13265 ;;
13266
13267 darwin* | rhapsody*)
13268 dynamic_linker="$host_os dyld"
13269 version_type=darwin
13270 need_lib_prefix=no
13271 need_version=no
13272 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13273 soname_spec='${libname}${release}${major}$shared_ext'
13274 shlibpath_overrides_runpath=yes
13275 shlibpath_var=DYLD_LIBRARY_PATH
13276 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13277 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13278 if test "$GCC" = yes; then
13279 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
13280 else
13281 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13282 fi
13283 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13284 ;;
13285
13286 dgux*)
13287 version_type=linux
13288 need_lib_prefix=no
13289 need_version=no
13290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13291 soname_spec='${libname}${release}${shared_ext}$major'
13292 shlibpath_var=LD_LIBRARY_PATH
13293 ;;
13294
13295 freebsd1*)
13296 dynamic_linker=no
13297 ;;
13298
13299 kfreebsd*-gnu)
13300 version_type=linux
13301 need_lib_prefix=no
13302 need_version=no
13303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13304 soname_spec='${libname}${release}${shared_ext}$major'
13305 shlibpath_var=LD_LIBRARY_PATH
13306 shlibpath_overrides_runpath=no
13307 hardcode_into_libs=yes
13308 dynamic_linker='GNU ld.so'
13309 ;;
13310
13311 freebsd* | dragonfly*)
13312 # DragonFly does not have aout. When/if they implement a new
13313 # versioning mechanism, adjust this.
13314 if test -x /usr/bin/objformat; then
13315 objformat=`/usr/bin/objformat`
13316 else
13317 case $host_os in
13318 freebsd[123]*) objformat=aout ;;
13319 *) objformat=elf ;;
13320 esac
13321 fi
13322 version_type=freebsd-$objformat
13323 case $version_type in
13324 freebsd-elf*)
13325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13326 need_version=no
13327 need_lib_prefix=no
13328 ;;
13329 freebsd-*)
13330 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13331 need_version=yes
13332 ;;
13333 esac
13334 shlibpath_var=LD_LIBRARY_PATH
13335 case $host_os in
13336 freebsd2*)
13337 shlibpath_overrides_runpath=yes
13338 ;;
13339 freebsd3.[01]* | freebsdelf3.[01]*)
13340 shlibpath_overrides_runpath=yes
13341 hardcode_into_libs=yes
13342 ;;
13343 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13344 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13345 shlibpath_overrides_runpath=no
13346 hardcode_into_libs=yes
13347 ;;
13348 freebsd*) # from 4.6 on
13349 shlibpath_overrides_runpath=yes
13350 hardcode_into_libs=yes
13351 ;;
13352 esac
13353 ;;
13354
13355 gnu*)
13356 version_type=linux
13357 need_lib_prefix=no
13358 need_version=no
13359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13360 soname_spec='${libname}${release}${shared_ext}$major'
13361 shlibpath_var=LD_LIBRARY_PATH
13362 hardcode_into_libs=yes
13363 ;;
13364
13365 hpux9* | hpux10* | hpux11*)
13366 # Give a soname corresponding to the major version so that dld.sl refuses to
13367 # link against other versions.
13368 version_type=sunos
13369 need_lib_prefix=no
13370 need_version=no
13371 case $host_cpu in
13372 ia64*)
13373 shrext_cmds='.so'
13374 hardcode_into_libs=yes
13375 dynamic_linker="$host_os dld.so"
13376 shlibpath_var=LD_LIBRARY_PATH
13377 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13379 soname_spec='${libname}${release}${shared_ext}$major'
13380 if test "X$HPUX_IA64_MODE" = X32; then
13381 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13382 else
13383 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13384 fi
13385 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13386 ;;
13387 hppa*64*)
13388 shrext_cmds='.sl'
13389 hardcode_into_libs=yes
13390 dynamic_linker="$host_os dld.sl"
13391 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13392 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13394 soname_spec='${libname}${release}${shared_ext}$major'
13395 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13396 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13397 ;;
13398 *)
13399 shrext_cmds='.sl'
13400 dynamic_linker="$host_os dld.sl"
13401 shlibpath_var=SHLIB_PATH
13402 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13404 soname_spec='${libname}${release}${shared_ext}$major'
13405 ;;
13406 esac
13407 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13408 postinstall_cmds='chmod 555 $lib'
13409 ;;
13410
13411 interix3*)
13412 version_type=linux
13413 need_lib_prefix=no
13414 need_version=no
13415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13416 soname_spec='${libname}${release}${shared_ext}$major'
13417 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13418 shlibpath_var=LD_LIBRARY_PATH
13419 shlibpath_overrides_runpath=no
13420 hardcode_into_libs=yes
13421 ;;
13422
13423 irix5* | irix6* | nonstopux*)
13424 case $host_os in
13425 nonstopux*) version_type=nonstopux ;;
13426 *)
13427 if test "$lt_cv_prog_gnu_ld" = yes; then
13428 version_type=linux
13429 else
13430 version_type=irix
13431 fi ;;
13432 esac
13433 need_lib_prefix=no
13434 need_version=no
13435 soname_spec='${libname}${release}${shared_ext}$major'
13436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13437 case $host_os in
13438 irix5* | nonstopux*)
13439 libsuff= shlibsuff=
13440 ;;
13441 *)
13442 case $LD in # libtool.m4 will add one of these switches to LD
13443 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13444 libsuff= shlibsuff= libmagic=32-bit;;
13445 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13446 libsuff=32 shlibsuff=N32 libmagic=N32;;
13447 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13448 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13449 *) libsuff= shlibsuff= libmagic=never-match;;
13450 esac
13451 ;;
13452 esac
13453 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13454 shlibpath_overrides_runpath=no
13455 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13456 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13457 hardcode_into_libs=yes
13458 ;;
13459
13460 # No shared lib support for Linux oldld, aout, or coff.
13461 linux*oldld* | linux*aout* | linux*coff*)
13462 dynamic_linker=no
13463 ;;
13464
13465 # This must be Linux ELF.
13466 linux*)
13467 version_type=linux
13468 need_lib_prefix=no
13469 need_version=no
13470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13471 soname_spec='${libname}${release}${shared_ext}$major'
13472 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13473 shlibpath_var=LD_LIBRARY_PATH
13474 shlibpath_overrides_runpath=no
13475 # This implies no fast_install, which is unacceptable.
13476 # Some rework will be needed to allow for fast_install
13477 # before this can be enabled.
13478 hardcode_into_libs=yes
13479
13480 # Append ld.so.conf contents to the search path
13481 if test -f /etc/ld.so.conf; then
13482 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13483 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13484 fi
13485
13486 # We used to test for /lib/ld.so.1 and disable shared libraries on
13487 # powerpc, because MkLinux only supported shared libraries with the
13488 # GNU dynamic linker. Since this was broken with cross compilers,
13489 # most powerpc-linux boxes support dynamic linking these days and
13490 # people can always --disable-shared, the test was removed, and we
13491 # assume the GNU/Linux dynamic linker is in use.
13492 dynamic_linker='GNU/Linux ld.so'
13493 ;;
13494
13495 knetbsd*-gnu)
13496 version_type=linux
13497 need_lib_prefix=no
13498 need_version=no
13499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13500 soname_spec='${libname}${release}${shared_ext}$major'
13501 shlibpath_var=LD_LIBRARY_PATH
13502 shlibpath_overrides_runpath=no
13503 hardcode_into_libs=yes
13504 dynamic_linker='GNU ld.so'
13505 ;;
13506
13507 netbsd*)
13508 version_type=sunos
13509 need_lib_prefix=no
13510 need_version=no
13511 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13513 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13514 dynamic_linker='NetBSD (a.out) ld.so'
13515 else
13516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13517 soname_spec='${libname}${release}${shared_ext}$major'
13518 dynamic_linker='NetBSD ld.elf_so'
13519 fi
13520 shlibpath_var=LD_LIBRARY_PATH
13521 shlibpath_overrides_runpath=yes
13522 hardcode_into_libs=yes
13523 ;;
13524
13525 newsos6)
13526 version_type=linux
13527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13528 shlibpath_var=LD_LIBRARY_PATH
13529 shlibpath_overrides_runpath=yes
13530 ;;
13531
13532 nto-qnx*)
13533 version_type=linux
13534 need_lib_prefix=no
13535 need_version=no
13536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13537 soname_spec='${libname}${release}${shared_ext}$major'
13538 shlibpath_var=LD_LIBRARY_PATH
13539 shlibpath_overrides_runpath=yes
13540 ;;
13541
13542 openbsd*)
13543 version_type=sunos
13544 sys_lib_dlsearch_path_spec="/usr/lib"
13545 need_lib_prefix=no
13546 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13547 case $host_os in
13548 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13549 *) need_version=no ;;
13550 esac
13551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13552 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13553 shlibpath_var=LD_LIBRARY_PATH
13554 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13555 case $host_os in
13556 openbsd2.[89] | openbsd2.[89].*)
13557 shlibpath_overrides_runpath=no
13558 ;;
13559 *)
13560 shlibpath_overrides_runpath=yes
13561 ;;
13562 esac
13563 else
13564 shlibpath_overrides_runpath=yes
13565 fi
13566 ;;
13567
13568 os2*)
13569 libname_spec='$name'
13570 shrext_cmds=".dll"
13571 need_lib_prefix=no
13572 library_names_spec='$libname${shared_ext} $libname.a'
13573 dynamic_linker='OS/2 ld.exe'
13574 shlibpath_var=LIBPATH
13575 ;;
13576
13577 osf3* | osf4* | osf5*)
13578 version_type=osf
13579 need_lib_prefix=no
13580 need_version=no
13581 soname_spec='${libname}${release}${shared_ext}$major'
13582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13583 shlibpath_var=LD_LIBRARY_PATH
13584 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13585 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13586 ;;
13587
13588 solaris*)
13589 version_type=linux
13590 need_lib_prefix=no
13591 need_version=no
13592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13593 soname_spec='${libname}${release}${shared_ext}$major'
13594 shlibpath_var=LD_LIBRARY_PATH
13595 shlibpath_overrides_runpath=yes
13596 hardcode_into_libs=yes
13597 # ldd complains unless libraries are executable
13598 postinstall_cmds='chmod +x $lib'
13599 ;;
13600
13601 sunos4*)
13602 version_type=sunos
13603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13604 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13605 shlibpath_var=LD_LIBRARY_PATH
13606 shlibpath_overrides_runpath=yes
13607 if test "$with_gnu_ld" = yes; then
13608 need_lib_prefix=no
13609 fi
13610 need_version=yes
13611 ;;
13612
13613 sysv4 | sysv4.3*)
13614 version_type=linux
13615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13616 soname_spec='${libname}${release}${shared_ext}$major'
13617 shlibpath_var=LD_LIBRARY_PATH
13618 case $host_vendor in
13619 sni)
13620 shlibpath_overrides_runpath=no
13621 need_lib_prefix=no
13622 export_dynamic_flag_spec='${wl}-Blargedynsym'
13623 runpath_var=LD_RUN_PATH
13624 ;;
13625 siemens)
13626 need_lib_prefix=no
13627 ;;
13628 motorola)
13629 need_lib_prefix=no
13630 need_version=no
13631 shlibpath_overrides_runpath=no
13632 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13633 ;;
13634 esac
13635 ;;
13636
13637 sysv4*MP*)
13638 if test -d /usr/nec ;then
13639 version_type=linux
13640 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13641 soname_spec='$libname${shared_ext}.$major'
13642 shlibpath_var=LD_LIBRARY_PATH
13643 fi
13644 ;;
13645
13646 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13647 version_type=freebsd-elf
13648 need_lib_prefix=no
13649 need_version=no
13650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13651 soname_spec='${libname}${release}${shared_ext}$major'
13652 shlibpath_var=LD_LIBRARY_PATH
13653 hardcode_into_libs=yes
13654 if test "$with_gnu_ld" = yes; then
13655 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13656 shlibpath_overrides_runpath=no
13657 else
13658 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13659 shlibpath_overrides_runpath=yes
13660 case $host_os in
13661 sco3.2v5*)
13662 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13663 ;;
13664 esac
13665 fi
13666 sys_lib_dlsearch_path_spec='/usr/lib'
13667 ;;
13668
13669 uts4*)
13670 version_type=linux
13671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13672 soname_spec='${libname}${release}${shared_ext}$major'
13673 shlibpath_var=LD_LIBRARY_PATH
13674 ;;
13675
13676 *)
13677 dynamic_linker=no
13678 ;;
13679 esac
13680 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13681 echo "${ECHO_T}$dynamic_linker" >&6; }
13682 test "$dynamic_linker" = no && can_build_shared=no
13683
13684 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13685 if test "$GCC" = yes; then
13686 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13687 fi
13688
13689 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13690 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13691 hardcode_action_CXX=
13692 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13693 test -n "$runpath_var_CXX" || \
13694 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13695
13696 # We can hardcode non-existant directories.
13697 if test "$hardcode_direct_CXX" != no &&
13698 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13699 # have to relink, otherwise we might link with an installed library
13700 # when we should be linking with a yet-to-be-installed one
13701 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13702 test "$hardcode_minus_L_CXX" != no; then
13703 # Linking always hardcodes the temporary library directory.
13704 hardcode_action_CXX=relink
13705 else
13706 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13707 hardcode_action_CXX=immediate
13708 fi
13709 else
13710 # We cannot hardcode anything, or else we can only hardcode existing
13711 # directories.
13712 hardcode_action_CXX=unsupported
13713 fi
13714 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13715 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13716
13717 if test "$hardcode_action_CXX" = relink; then
13718 # Fast installation is not supported
13719 enable_fast_install=no
13720 elif test "$shlibpath_overrides_runpath" = yes ||
13721 test "$enable_shared" = no; then
13722 # Fast installation is not necessary
13723 enable_fast_install=needless
13724 fi
13725
13726
13727 # The else clause should only fire when bootstrapping the
13728 # libtool distribution, otherwise you forgot to ship ltmain.sh
13729 # with your package, and you will get complaints that there are
13730 # no rules to generate ltmain.sh.
13731 if test -f "$ltmain"; then
13732 # See if we are running on zsh, and set the options which allow our commands through
13733 # without removal of \ escapes.
13734 if test -n "${ZSH_VERSION+set}" ; then
13735 setopt NO_GLOB_SUBST
13736 fi
13737 # Now quote all the things that may contain metacharacters while being
13738 # careful not to overquote the AC_SUBSTed values. We take copies of the
13739 # variables and quote the copies for generation of the libtool script.
13740 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13741 SED SHELL STRIP \
13742 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13743 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13744 deplibs_check_method reload_flag reload_cmds need_locks \
13745 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13746 lt_cv_sys_global_symbol_to_c_name_address \
13747 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13748 old_postinstall_cmds old_postuninstall_cmds \
13749 compiler_CXX \
13750 CC_CXX \
13751 LD_CXX \
13752 lt_prog_compiler_wl_CXX \
13753 lt_prog_compiler_pic_CXX \
13754 lt_prog_compiler_static_CXX \
13755 lt_prog_compiler_no_builtin_flag_CXX \
13756 export_dynamic_flag_spec_CXX \
13757 thread_safe_flag_spec_CXX \
13758 whole_archive_flag_spec_CXX \
13759 enable_shared_with_static_runtimes_CXX \
13760 old_archive_cmds_CXX \
13761 old_archive_from_new_cmds_CXX \
13762 predep_objects_CXX \
13763 postdep_objects_CXX \
13764 predeps_CXX \
13765 postdeps_CXX \
13766 compiler_lib_search_path_CXX \
13767 archive_cmds_CXX \
13768 archive_expsym_cmds_CXX \
13769 postinstall_cmds_CXX \
13770 postuninstall_cmds_CXX \
13771 old_archive_from_expsyms_cmds_CXX \
13772 allow_undefined_flag_CXX \
13773 no_undefined_flag_CXX \
13774 export_symbols_cmds_CXX \
13775 hardcode_libdir_flag_spec_CXX \
13776 hardcode_libdir_flag_spec_ld_CXX \
13777 hardcode_libdir_separator_CXX \
13778 hardcode_automatic_CXX \
13779 module_cmds_CXX \
13780 module_expsym_cmds_CXX \
13781 lt_cv_prog_compiler_c_o_CXX \
13782 exclude_expsyms_CXX \
13783 include_expsyms_CXX; do
13784
13785 case $var in
13786 old_archive_cmds_CXX | \
13787 old_archive_from_new_cmds_CXX | \
13788 archive_cmds_CXX | \
13789 archive_expsym_cmds_CXX | \
13790 module_cmds_CXX | \
13791 module_expsym_cmds_CXX | \
13792 old_archive_from_expsyms_cmds_CXX | \
13793 export_symbols_cmds_CXX | \
13794 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13795 postinstall_cmds | postuninstall_cmds | \
13796 old_postinstall_cmds | old_postuninstall_cmds | \
13797 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13798 # Double-quote double-evaled strings.
13799 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13800 ;;
13801 *)
13802 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13803 ;;
13804 esac
13805 done
13806
13807 case $lt_echo in
13808 *'\$0 --fallback-echo"')
13809 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13810 ;;
13811 esac
13812
13813 cfgfile="$ofile"
13814
13815 cat <<__EOF__ >> "$cfgfile"
13816 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13817
13818 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13819
13820 # Shell to use when invoking shell scripts.
13821 SHELL=$lt_SHELL
13822
13823 # Whether or not to build shared libraries.
13824 build_libtool_libs=$enable_shared
13825
13826 # Whether or not to build static libraries.
13827 build_old_libs=$enable_static
13828
13829 # Whether or not to add -lc for building shared libraries.
13830 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13831
13832 # Whether or not to disallow shared libs when runtime libs are static
13833 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13834
13835 # Whether or not to optimize for fast installation.
13836 fast_install=$enable_fast_install
13837
13838 # The host system.
13839 host_alias=$host_alias
13840 host=$host
13841 host_os=$host_os
13842
13843 # The build system.
13844 build_alias=$build_alias
13845 build=$build
13846 build_os=$build_os
13847
13848 # An echo program that does not interpret backslashes.
13849 echo=$lt_echo
13850
13851 # The archiver.
13852 AR=$lt_AR
13853 AR_FLAGS=$lt_AR_FLAGS
13854
13855 # A C compiler.
13856 LTCC=$lt_LTCC
13857
13858 # LTCC compiler flags.
13859 LTCFLAGS=$lt_LTCFLAGS
13860
13861 # A language-specific compiler.
13862 CC=$lt_compiler_CXX
13863
13864 # Is the compiler the GNU C compiler?
13865 with_gcc=$GCC_CXX
13866
13867 # An ERE matcher.
13868 EGREP=$lt_EGREP
13869
13870 # The linker used to build libraries.
13871 LD=$lt_LD_CXX
13872
13873 # Whether we need hard or soft links.
13874 LN_S=$lt_LN_S
13875
13876 # A BSD-compatible nm program.
13877 NM=$lt_NM
13878
13879 # A symbol stripping program
13880 STRIP=$lt_STRIP
13881
13882 # Used to examine libraries when file_magic_cmd begins "file"
13883 MAGIC_CMD=$MAGIC_CMD
13884
13885 # Used on cygwin: DLL creation program.
13886 DLLTOOL="$DLLTOOL"
13887
13888 # Used on cygwin: object dumper.
13889 OBJDUMP="$OBJDUMP"
13890
13891 # Used on cygwin: assembler.
13892 AS="$AS"
13893
13894 # The name of the directory that contains temporary libtool files.
13895 objdir=$objdir
13896
13897 # How to create reloadable object files.
13898 reload_flag=$lt_reload_flag
13899 reload_cmds=$lt_reload_cmds
13900
13901 # How to pass a linker flag through the compiler.
13902 wl=$lt_lt_prog_compiler_wl_CXX
13903
13904 # Object file suffix (normally "o").
13905 objext="$ac_objext"
13906
13907 # Old archive suffix (normally "a").
13908 libext="$libext"
13909
13910 # Shared library suffix (normally ".so").
13911 shrext_cmds='$shrext_cmds'
13912
13913 # Executable file suffix (normally "").
13914 exeext="$exeext"
13915
13916 # Additional compiler flags for building library objects.
13917 pic_flag=$lt_lt_prog_compiler_pic_CXX
13918 pic_mode=$pic_mode
13919
13920 # What is the maximum length of a command?
13921 max_cmd_len=$lt_cv_sys_max_cmd_len
13922
13923 # Does compiler simultaneously support -c and -o options?
13924 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13925
13926 # Must we lock files when doing compilation?
13927 need_locks=$lt_need_locks
13928
13929 # Do we need the lib prefix for modules?
13930 need_lib_prefix=$need_lib_prefix
13931
13932 # Do we need a version for libraries?
13933 need_version=$need_version
13934
13935 # Whether dlopen is supported.
13936 dlopen_support=$enable_dlopen
13937
13938 # Whether dlopen of programs is supported.
13939 dlopen_self=$enable_dlopen_self
13940
13941 # Whether dlopen of statically linked programs is supported.
13942 dlopen_self_static=$enable_dlopen_self_static
13943
13944 # Compiler flag to prevent dynamic linking.
13945 link_static_flag=$lt_lt_prog_compiler_static_CXX
13946
13947 # Compiler flag to turn off builtin functions.
13948 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13949
13950 # Compiler flag to allow reflexive dlopens.
13951 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13952
13953 # Compiler flag to generate shared objects directly from archives.
13954 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13955
13956 # Compiler flag to generate thread-safe objects.
13957 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13958
13959 # Library versioning type.
13960 version_type=$version_type
13961
13962 # Format of library name prefix.
13963 libname_spec=$lt_libname_spec
13964
13965 # List of archive names. First name is the real one, the rest are links.
13966 # The last name is the one that the linker finds with -lNAME.
13967 library_names_spec=$lt_library_names_spec
13968
13969 # The coded name of the library, if different from the real name.
13970 soname_spec=$lt_soname_spec
13971
13972 # Commands used to build and install an old-style archive.
13973 RANLIB=$lt_RANLIB
13974 old_archive_cmds=$lt_old_archive_cmds_CXX
13975 old_postinstall_cmds=$lt_old_postinstall_cmds
13976 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13977
13978 # Create an old-style archive from a shared archive.
13979 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13980
13981 # Create a temporary old-style archive to link instead of a shared archive.
13982 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13983
13984 # Commands used to build and install a shared archive.
13985 archive_cmds=$lt_archive_cmds_CXX
13986 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13987 postinstall_cmds=$lt_postinstall_cmds
13988 postuninstall_cmds=$lt_postuninstall_cmds
13989
13990 # Commands used to build a loadable module (assumed same as above if empty)
13991 module_cmds=$lt_module_cmds_CXX
13992 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13993
13994 # Commands to strip libraries.
13995 old_striplib=$lt_old_striplib
13996 striplib=$lt_striplib
13997
13998 # Dependencies to place before the objects being linked to create a
13999 # shared library.
14000 predep_objects=$lt_predep_objects_CXX
14001
14002 # Dependencies to place after the objects being linked to create a
14003 # shared library.
14004 postdep_objects=$lt_postdep_objects_CXX
14005
14006 # Dependencies to place before the objects being linked to create a
14007 # shared library.
14008 predeps=$lt_predeps_CXX
14009
14010 # Dependencies to place after the objects being linked to create a
14011 # shared library.
14012 postdeps=$lt_postdeps_CXX
14013
14014 # The library search path used internally by the compiler when linking
14015 # a shared library.
14016 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14017
14018 # Method to check whether dependent libraries are shared objects.
14019 deplibs_check_method=$lt_deplibs_check_method
14020
14021 # Command to use when deplibs_check_method == file_magic.
14022 file_magic_cmd=$lt_file_magic_cmd
14023
14024 # Flag that allows shared libraries with undefined symbols to be built.
14025 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14026
14027 # Flag that forces no undefined symbols.
14028 no_undefined_flag=$lt_no_undefined_flag_CXX
14029
14030 # Commands used to finish a libtool library installation in a directory.
14031 finish_cmds=$lt_finish_cmds
14032
14033 # Same as above, but a single script fragment to be evaled but not shown.
14034 finish_eval=$lt_finish_eval
14035
14036 # Take the output of nm and produce a listing of raw symbols and C names.
14037 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14038
14039 # Transform the output of nm in a proper C declaration
14040 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14041
14042 # Transform the output of nm in a C name address pair
14043 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14044
14045 # This is the shared library runtime path variable.
14046 runpath_var=$runpath_var
14047
14048 # This is the shared library path variable.
14049 shlibpath_var=$shlibpath_var
14050
14051 # Is shlibpath searched before the hard-coded library search path?
14052 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14053
14054 # How to hardcode a shared library path into an executable.
14055 hardcode_action=$hardcode_action_CXX
14056
14057 # Whether we should hardcode library paths into libraries.
14058 hardcode_into_libs=$hardcode_into_libs
14059
14060 # Flag to hardcode \$libdir into a binary during linking.
14061 # This must work even if \$libdir does not exist.
14062 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14063
14064 # If ld is used when linking, flag to hardcode \$libdir into
14065 # a binary during linking. This must work even if \$libdir does
14066 # not exist.
14067 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14068
14069 # Whether we need a single -rpath flag with a separated argument.
14070 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14071
14072 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14073 # resulting binary.
14074 hardcode_direct=$hardcode_direct_CXX
14075
14076 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14077 # resulting binary.
14078 hardcode_minus_L=$hardcode_minus_L_CXX
14079
14080 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14081 # the resulting binary.
14082 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14083
14084 # Set to yes if building a shared library automatically hardcodes DIR into the library
14085 # and all subsequent libraries and executables linked against it.
14086 hardcode_automatic=$hardcode_automatic_CXX
14087
14088 # Variables whose values should be saved in libtool wrapper scripts and
14089 # restored at relink time.
14090 variables_saved_for_relink="$variables_saved_for_relink"
14091
14092 # Whether libtool must link a program against all its dependency libraries.
14093 link_all_deplibs=$link_all_deplibs_CXX
14094
14095 # Compile-time system search path for libraries
14096 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14097
14098 # Run-time system search path for libraries
14099 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14100
14101 # Fix the shell variable \$srcfile for the compiler.
14102 fix_srcfile_path="$fix_srcfile_path_CXX"
14103
14104 # Set to yes if exported symbols are required.
14105 always_export_symbols=$always_export_symbols_CXX
14106
14107 # The commands to list exported symbols.
14108 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14109
14110 # The commands to extract the exported symbol list from a shared archive.
14111 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14112
14113 # Symbols that should not be listed in the preloaded symbols.
14114 exclude_expsyms=$lt_exclude_expsyms_CXX
14115
14116 # Symbols that must always be exported.
14117 include_expsyms=$lt_include_expsyms_CXX
14118
14119 # ### END LIBTOOL TAG CONFIG: $tagname
14120
14121 __EOF__
14122
14123
14124 else
14125 # If there is no Makefile yet, we rely on a make rule to execute
14126 # `config.status --recheck' to rerun these tests and create the
14127 # libtool script then.
14128 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14129 if test -f "$ltmain_in"; then
14130 test -f Makefile && make "$ltmain"
14131 fi
14132 fi
14133
14134
14135 ac_ext=c
14136 ac_cpp='$CPP $CPPFLAGS'
14137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14140
14141 CC=$lt_save_CC
14142 LDCXX=$LD
14143 LD=$lt_save_LD
14144 GCC=$lt_save_GCC
14145 with_gnu_ldcxx=$with_gnu_ld
14146 with_gnu_ld=$lt_save_with_gnu_ld
14147 lt_cv_path_LDCXX=$lt_cv_path_LD
14148 lt_cv_path_LD=$lt_save_path_LD
14149 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14150 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14151
14152 else
14153 tagname=""
14154 fi
14155 ;;
14156
14157 F77)
14158 if test -n "$F77" && test "X$F77" != "Xno"; then
14159
14160 ac_ext=f
14161 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14162 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14163 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14164
14165
14166 archive_cmds_need_lc_F77=no
14167 allow_undefined_flag_F77=
14168 always_export_symbols_F77=no
14169 archive_expsym_cmds_F77=
14170 export_dynamic_flag_spec_F77=
14171 hardcode_direct_F77=no
14172 hardcode_libdir_flag_spec_F77=
14173 hardcode_libdir_flag_spec_ld_F77=
14174 hardcode_libdir_separator_F77=
14175 hardcode_minus_L_F77=no
14176 hardcode_automatic_F77=no
14177 module_cmds_F77=
14178 module_expsym_cmds_F77=
14179 link_all_deplibs_F77=unknown
14180 old_archive_cmds_F77=$old_archive_cmds
14181 no_undefined_flag_F77=
14182 whole_archive_flag_spec_F77=
14183 enable_shared_with_static_runtimes_F77=no
14184
14185 # Source file extension for f77 test sources.
14186 ac_ext=f
14187
14188 # Object file extension for compiled f77 test sources.
14189 objext=o
14190 objext_F77=$objext
14191
14192 # Code to be used in simple compile tests
14193 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14194
14195 # Code to be used in simple link tests
14196 lt_simple_link_test_code=" program t\n end\n"
14197
14198 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14199
14200 # If no C compiler was specified, use CC.
14201 LTCC=${LTCC-"$CC"}
14202
14203 # If no C compiler flags were specified, use CFLAGS.
14204 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14205
14206 # Allow CC to be a program name with arguments.
14207 compiler=$CC
14208
14209
14210 # save warnings/boilerplate of simple test code
14211 ac_outfile=conftest.$ac_objext
14212 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14213 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14214 _lt_compiler_boilerplate=`cat conftest.err`
14215 $rm conftest*
14216
14217 ac_outfile=conftest.$ac_objext
14218 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14219 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14220 _lt_linker_boilerplate=`cat conftest.err`
14221 $rm conftest*
14222
14223
14224 # Allow CC to be a program name with arguments.
14225 lt_save_CC="$CC"
14226 CC=${F77-"f77"}
14227 compiler=$CC
14228 compiler_F77=$CC
14229 for cc_temp in $compiler""; do
14230 case $cc_temp in
14231 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14232 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14233 \-*) ;;
14234 *) break;;
14235 esac
14236 done
14237 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14238
14239
14240 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14241 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14242 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14243 echo "${ECHO_T}$can_build_shared" >&6; }
14244
14245 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14246 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14247 test "$can_build_shared" = "no" && enable_shared=no
14248
14249 # On AIX, shared libraries and static libraries use the same namespace, and
14250 # are all built from PIC.
14251 case $host_os in
14252 aix3*)
14253 test "$enable_shared" = yes && enable_static=no
14254 if test -n "$RANLIB"; then
14255 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14256 postinstall_cmds='$RANLIB $lib'
14257 fi
14258 ;;
14259 aix4* | aix5*)
14260 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14261 test "$enable_shared" = yes && enable_static=no
14262 fi
14263 ;;
14264 esac
14265 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14266 echo "${ECHO_T}$enable_shared" >&6; }
14267
14268 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14269 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14270 # Make sure either enable_shared or enable_static is yes.
14271 test "$enable_shared" = yes || enable_static=yes
14272 { echo "$as_me:$LINENO: result: $enable_static" >&5
14273 echo "${ECHO_T}$enable_static" >&6; }
14274
14275 GCC_F77="$G77"
14276 LD_F77="$LD"
14277
14278 lt_prog_compiler_wl_F77=
14279 lt_prog_compiler_pic_F77=
14280 lt_prog_compiler_static_F77=
14281
14282 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14283 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14284
14285 if test "$GCC" = yes; then
14286 lt_prog_compiler_wl_F77='-Wl,'
14287 lt_prog_compiler_static_F77='-static'
14288
14289 case $host_os in
14290 aix*)
14291 # All AIX code is PIC.
14292 if test "$host_cpu" = ia64; then
14293 # AIX 5 now supports IA64 processor
14294 lt_prog_compiler_static_F77='-Bstatic'
14295 fi
14296 ;;
14297
14298 amigaos*)
14299 # FIXME: we need at least 68020 code to build shared libraries, but
14300 # adding the `-m68020' flag to GCC prevents building anything better,
14301 # like `-m68040'.
14302 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14303 ;;
14304
14305 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14306 # PIC is the default for these OSes.
14307 ;;
14308
14309 mingw* | pw32* | os2*)
14310 # This hack is so that the source file can tell whether it is being
14311 # built for inclusion in a dll (and should export symbols for example).
14312 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14313 ;;
14314
14315 darwin* | rhapsody*)
14316 # PIC is the default on this platform
14317 # Common symbols not allowed in MH_DYLIB files
14318 lt_prog_compiler_pic_F77='-fno-common'
14319 ;;
14320
14321 interix3*)
14322 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14323 # Instead, we relocate shared libraries at runtime.
14324 ;;
14325
14326 msdosdjgpp*)
14327 # Just because we use GCC doesn't mean we suddenly get shared libraries
14328 # on systems that don't support them.
14329 lt_prog_compiler_can_build_shared_F77=no
14330 enable_shared=no
14331 ;;
14332
14333 sysv4*MP*)
14334 if test -d /usr/nec; then
14335 lt_prog_compiler_pic_F77=-Kconform_pic
14336 fi
14337 ;;
14338
14339 hpux*)
14340 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14341 # not for PA HP-UX.
14342 case $host_cpu in
14343 hppa*64*|ia64*)
14344 # +Z the default
14345 ;;
14346 *)
14347 lt_prog_compiler_pic_F77='-fPIC'
14348 ;;
14349 esac
14350 ;;
14351
14352 *)
14353 lt_prog_compiler_pic_F77='-fPIC'
14354 ;;
14355 esac
14356 else
14357 # PORTME Check for flag to pass linker flags through the system compiler.
14358 case $host_os in
14359 aix*)
14360 lt_prog_compiler_wl_F77='-Wl,'
14361 if test "$host_cpu" = ia64; then
14362 # AIX 5 now supports IA64 processor
14363 lt_prog_compiler_static_F77='-Bstatic'
14364 else
14365 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14366 fi
14367 ;;
14368 darwin*)
14369 # PIC is the default on this platform
14370 # Common symbols not allowed in MH_DYLIB files
14371 case $cc_basename in
14372 xlc*)
14373 lt_prog_compiler_pic_F77='-qnocommon'
14374 lt_prog_compiler_wl_F77='-Wl,'
14375 ;;
14376 esac
14377 ;;
14378
14379 mingw* | pw32* | os2*)
14380 # This hack is so that the source file can tell whether it is being
14381 # built for inclusion in a dll (and should export symbols for example).
14382 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14383 ;;
14384
14385 hpux9* | hpux10* | hpux11*)
14386 lt_prog_compiler_wl_F77='-Wl,'
14387 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14388 # not for PA HP-UX.
14389 case $host_cpu in
14390 hppa*64*|ia64*)
14391 # +Z the default
14392 ;;
14393 *)
14394 lt_prog_compiler_pic_F77='+Z'
14395 ;;
14396 esac
14397 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14398 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14399 ;;
14400
14401 irix5* | irix6* | nonstopux*)
14402 lt_prog_compiler_wl_F77='-Wl,'
14403 # PIC (with -KPIC) is the default.
14404 lt_prog_compiler_static_F77='-non_shared'
14405 ;;
14406
14407 newsos6)
14408 lt_prog_compiler_pic_F77='-KPIC'
14409 lt_prog_compiler_static_F77='-Bstatic'
14410 ;;
14411
14412 linux*)
14413 case $cc_basename in
14414 icc* | ecc*)
14415 lt_prog_compiler_wl_F77='-Wl,'
14416 lt_prog_compiler_pic_F77='-KPIC'
14417 lt_prog_compiler_static_F77='-static'
14418 ;;
14419 pgcc* | pgf77* | pgf90* | pgf95*)
14420 # Portland Group compilers (*not* the Pentium gcc compiler,
14421 # which looks to be a dead project)
14422 lt_prog_compiler_wl_F77='-Wl,'
14423 lt_prog_compiler_pic_F77='-fpic'
14424 lt_prog_compiler_static_F77='-Bstatic'
14425 ;;
14426 ccc*)
14427 lt_prog_compiler_wl_F77='-Wl,'
14428 # All Alpha code is PIC.
14429 lt_prog_compiler_static_F77='-non_shared'
14430 ;;
14431 esac
14432 ;;
14433
14434 osf3* | osf4* | osf5*)
14435 lt_prog_compiler_wl_F77='-Wl,'
14436 # All OSF/1 code is PIC.
14437 lt_prog_compiler_static_F77='-non_shared'
14438 ;;
14439
14440 solaris*)
14441 lt_prog_compiler_pic_F77='-KPIC'
14442 lt_prog_compiler_static_F77='-Bstatic'
14443 case $cc_basename in
14444 f77* | f90* | f95*)
14445 lt_prog_compiler_wl_F77='-Qoption ld ';;
14446 *)
14447 lt_prog_compiler_wl_F77='-Wl,';;
14448 esac
14449 ;;
14450
14451 sunos4*)
14452 lt_prog_compiler_wl_F77='-Qoption ld '
14453 lt_prog_compiler_pic_F77='-PIC'
14454 lt_prog_compiler_static_F77='-Bstatic'
14455 ;;
14456
14457 sysv4 | sysv4.2uw2* | sysv4.3*)
14458 lt_prog_compiler_wl_F77='-Wl,'
14459 lt_prog_compiler_pic_F77='-KPIC'
14460 lt_prog_compiler_static_F77='-Bstatic'
14461 ;;
14462
14463 sysv4*MP*)
14464 if test -d /usr/nec ;then
14465 lt_prog_compiler_pic_F77='-Kconform_pic'
14466 lt_prog_compiler_static_F77='-Bstatic'
14467 fi
14468 ;;
14469
14470 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14471 lt_prog_compiler_wl_F77='-Wl,'
14472 lt_prog_compiler_pic_F77='-KPIC'
14473 lt_prog_compiler_static_F77='-Bstatic'
14474 ;;
14475
14476 unicos*)
14477 lt_prog_compiler_wl_F77='-Wl,'
14478 lt_prog_compiler_can_build_shared_F77=no
14479 ;;
14480
14481 uts4*)
14482 lt_prog_compiler_pic_F77='-pic'
14483 lt_prog_compiler_static_F77='-Bstatic'
14484 ;;
14485
14486 *)
14487 lt_prog_compiler_can_build_shared_F77=no
14488 ;;
14489 esac
14490 fi
14491
14492 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14493 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14494
14495 #
14496 # Check to make sure the PIC flag actually works.
14497 #
14498 if test -n "$lt_prog_compiler_pic_F77"; then
14499
14500 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14501 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14502 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14503 echo $ECHO_N "(cached) $ECHO_C" >&6
14504 else
14505 lt_prog_compiler_pic_works_F77=no
14506 ac_outfile=conftest.$ac_objext
14507 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14508 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14509 # Insert the option either (1) after the last *FLAGS variable, or
14510 # (2) before a word containing "conftest.", or (3) at the end.
14511 # Note that $ac_compile itself does not contain backslashes and begins
14512 # with a dollar sign (not a hyphen), so the echo should work correctly.
14513 # The option is referenced via a variable to avoid confusing sed.
14514 lt_compile=`echo "$ac_compile" | $SED \
14515 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14516 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14517 -e 's:$: $lt_compiler_flag:'`
14518 (eval echo "\"\$as_me:14518: $lt_compile\"" >&5)
14519 (eval "$lt_compile" 2>conftest.err)
14520 ac_status=$?
14521 cat conftest.err >&5
14522 echo "$as_me:14522: \$? = $ac_status" >&5
14523 if (exit $ac_status) && test -s "$ac_outfile"; then
14524 # The compiler can only warn and ignore the option if not recognized
14525 # So say no if there are warnings other than the usual output.
14526 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14527 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14528 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14529 lt_prog_compiler_pic_works_F77=yes
14530 fi
14531 fi
14532 $rm conftest*
14533
14534 fi
14535 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14536 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14537
14538 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14539 case $lt_prog_compiler_pic_F77 in
14540 "" | " "*) ;;
14541 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14542 esac
14543 else
14544 lt_prog_compiler_pic_F77=
14545 lt_prog_compiler_can_build_shared_F77=no
14546 fi
14547
14548 fi
14549 case $host_os in
14550 # For platforms which do not support PIC, -DPIC is meaningless:
14551 *djgpp*)
14552 lt_prog_compiler_pic_F77=
14553 ;;
14554 *)
14555 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14556 ;;
14557 esac
14558
14559 #
14560 # Check to make sure the static flag actually works.
14561 #
14562 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14563 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14564 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14565 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14566 echo $ECHO_N "(cached) $ECHO_C" >&6
14567 else
14568 lt_prog_compiler_static_works_F77=no
14569 save_LDFLAGS="$LDFLAGS"
14570 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14571 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14572 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14573 # The linker can only warn and ignore the option if not recognized
14574 # So say no if there are warnings
14575 if test -s conftest.err; then
14576 # Append any errors to the config.log.
14577 cat conftest.err 1>&5
14578 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14579 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14580 if diff conftest.exp conftest.er2 >/dev/null; then
14581 lt_prog_compiler_static_works_F77=yes
14582 fi
14583 else
14584 lt_prog_compiler_static_works_F77=yes
14585 fi
14586 fi
14587 $rm conftest*
14588 LDFLAGS="$save_LDFLAGS"
14589
14590 fi
14591 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14592 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14593
14594 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14595 :
14596 else
14597 lt_prog_compiler_static_F77=
14598 fi
14599
14600
14601 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14602 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14603 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14604 echo $ECHO_N "(cached) $ECHO_C" >&6
14605 else
14606 lt_cv_prog_compiler_c_o_F77=no
14607 $rm -r conftest 2>/dev/null
14608 mkdir conftest
14609 cd conftest
14610 mkdir out
14611 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14612
14613 lt_compiler_flag="-o out/conftest2.$ac_objext"
14614 # Insert the option either (1) after the last *FLAGS variable, or
14615 # (2) before a word containing "conftest.", or (3) at the end.
14616 # Note that $ac_compile itself does not contain backslashes and begins
14617 # with a dollar sign (not a hyphen), so the echo should work correctly.
14618 lt_compile=`echo "$ac_compile" | $SED \
14619 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14620 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14621 -e 's:$: $lt_compiler_flag:'`
14622 (eval echo "\"\$as_me:14622: $lt_compile\"" >&5)
14623 (eval "$lt_compile" 2>out/conftest.err)
14624 ac_status=$?
14625 cat out/conftest.err >&5
14626 echo "$as_me:14626: \$? = $ac_status" >&5
14627 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14628 then
14629 # The compiler can only warn and ignore the option if not recognized
14630 # So say no if there are warnings
14631 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14632 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14633 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14634 lt_cv_prog_compiler_c_o_F77=yes
14635 fi
14636 fi
14637 chmod u+w . 2>&5
14638 $rm conftest*
14639 # SGI C++ compiler will create directory out/ii_files/ for
14640 # template instantiation
14641 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14642 $rm out/* && rmdir out
14643 cd ..
14644 rmdir conftest
14645 $rm conftest*
14646
14647 fi
14648 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14649 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14650
14651
14652 hard_links="nottested"
14653 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14654 # do not overwrite the value of need_locks provided by the user
14655 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14656 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14657 hard_links=yes
14658 $rm conftest*
14659 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14660 touch conftest.a
14661 ln conftest.a conftest.b 2>&5 || hard_links=no
14662 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14663 { echo "$as_me:$LINENO: result: $hard_links" >&5
14664 echo "${ECHO_T}$hard_links" >&6; }
14665 if test "$hard_links" = no; then
14666 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14667 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14668 need_locks=warn
14669 fi
14670 else
14671 need_locks=no
14672 fi
14673
14674 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14675 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14676
14677 runpath_var=
14678 allow_undefined_flag_F77=
14679 enable_shared_with_static_runtimes_F77=no
14680 archive_cmds_F77=
14681 archive_expsym_cmds_F77=
14682 old_archive_From_new_cmds_F77=
14683 old_archive_from_expsyms_cmds_F77=
14684 export_dynamic_flag_spec_F77=
14685 whole_archive_flag_spec_F77=
14686 thread_safe_flag_spec_F77=
14687 hardcode_libdir_flag_spec_F77=
14688 hardcode_libdir_flag_spec_ld_F77=
14689 hardcode_libdir_separator_F77=
14690 hardcode_direct_F77=no
14691 hardcode_minus_L_F77=no
14692 hardcode_shlibpath_var_F77=unsupported
14693 link_all_deplibs_F77=unknown
14694 hardcode_automatic_F77=no
14695 module_cmds_F77=
14696 module_expsym_cmds_F77=
14697 always_export_symbols_F77=no
14698 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14699 # include_expsyms should be a list of space-separated symbols to be *always*
14700 # included in the symbol list
14701 include_expsyms_F77=
14702 # exclude_expsyms can be an extended regexp of symbols to exclude
14703 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14704 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14705 # as well as any symbol that contains `d'.
14706 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14707 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14708 # platforms (ab)use it in PIC code, but their linkers get confused if
14709 # the symbol is explicitly referenced. Since portable code cannot
14710 # rely on this symbol name, it's probably fine to never include it in
14711 # preloaded symbol tables.
14712 extract_expsyms_cmds=
14713 # Just being paranoid about ensuring that cc_basename is set.
14714 for cc_temp in $compiler""; do
14715 case $cc_temp in
14716 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14717 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14718 \-*) ;;
14719 *) break;;
14720 esac
14721 done
14722 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14723
14724 case $host_os in
14725 cygwin* | mingw* | pw32*)
14726 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14727 # When not using gcc, we currently assume that we are using
14728 # Microsoft Visual C++.
14729 if test "$GCC" != yes; then
14730 with_gnu_ld=no
14731 fi
14732 ;;
14733 interix*)
14734 # we just hope/assume this is gcc and not c89 (= MSVC++)
14735 with_gnu_ld=yes
14736 ;;
14737 openbsd*)
14738 with_gnu_ld=no
14739 ;;
14740 esac
14741
14742 ld_shlibs_F77=yes
14743 if test "$with_gnu_ld" = yes; then
14744 # If archive_cmds runs LD, not CC, wlarc should be empty
14745 wlarc='${wl}'
14746
14747 # Set some defaults for GNU ld with shared library support. These
14748 # are reset later if shared libraries are not supported. Putting them
14749 # here allows them to be overridden if necessary.
14750 runpath_var=LD_RUN_PATH
14751 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14752 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14753 # ancient GNU ld didn't support --whole-archive et. al.
14754 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14755 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14756 else
14757 whole_archive_flag_spec_F77=
14758 fi
14759 supports_anon_versioning=no
14760 case `$LD -v 2>/dev/null` in
14761 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14762 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14763 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14764 *\ 2.11.*) ;; # other 2.11 versions
14765 *) supports_anon_versioning=yes ;;
14766 esac
14767
14768 # See if GNU ld supports shared libraries.
14769 case $host_os in
14770 aix3* | aix4* | aix5*)
14771 # On AIX/PPC, the GNU linker is very broken
14772 if test "$host_cpu" != ia64; then
14773 ld_shlibs_F77=no
14774 cat <<EOF 1>&2
14775
14776 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14777 *** to be unable to reliably create shared libraries on AIX.
14778 *** Therefore, libtool is disabling shared libraries support. If you
14779 *** really care for shared libraries, you may want to modify your PATH
14780 *** so that a non-GNU linker is found, and then restart.
14781
14782 EOF
14783 fi
14784 ;;
14785
14786 amigaos*)
14787 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)'
14788 hardcode_libdir_flag_spec_F77='-L$libdir'
14789 hardcode_minus_L_F77=yes
14790
14791 # Samuel A. Falvo II <[email protected]> reports
14792 # that the semantics of dynamic libraries on AmigaOS, at least up
14793 # to version 4, is to share data among multiple programs linked
14794 # with the same dynamic library. Since this doesn't match the
14795 # behavior of shared libraries on other platforms, we can't use
14796 # them.
14797 ld_shlibs_F77=no
14798 ;;
14799
14800 beos*)
14801 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14802 allow_undefined_flag_F77=unsupported
14803 # Joseph Beckenbach <[email protected]> says some releases of gcc
14804 # support --undefined. This deserves some investigation. FIXME
14805 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14806 else
14807 ld_shlibs_F77=no
14808 fi
14809 ;;
14810
14811 cygwin* | mingw* | pw32*)
14812 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14813 # as there is no search path for DLLs.
14814 hardcode_libdir_flag_spec_F77='-L$libdir'
14815 allow_undefined_flag_F77=unsupported
14816 always_export_symbols_F77=no
14817 enable_shared_with_static_runtimes_F77=yes
14818 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14819
14820 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14821 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14822 # If the export-symbols file already is a .def file (1st line
14823 # is EXPORTS), use it as is; otherwise, prepend...
14824 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14825 cp $export_symbols $output_objdir/$soname.def;
14826 else
14827 echo EXPORTS > $output_objdir/$soname.def;
14828 cat $export_symbols >> $output_objdir/$soname.def;
14829 fi~
14830 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14831 else
14832 ld_shlibs_F77=no
14833 fi
14834 ;;
14835
14836 interix3*)
14837 hardcode_direct_F77=no
14838 hardcode_shlibpath_var_F77=no
14839 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14840 export_dynamic_flag_spec_F77='${wl}-E'
14841 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14842 # Instead, shared libraries are loaded at an image base (0x10000000 by
14843 # default) and relocated if they conflict, which is a slow very memory
14844 # consuming and fragmenting process. To avoid this, we pick a random,
14845 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14846 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14847 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'
14848 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'
14849 ;;
14850
14851 linux*)
14852 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14853 tmp_addflag=
14854 case $cc_basename,$host_cpu in
14855 pgcc*) # Portland Group C compiler
14856 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'
14857 tmp_addflag=' $pic_flag'
14858 ;;
14859 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14860 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'
14861 tmp_addflag=' $pic_flag -Mnomain' ;;
14862 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14863 tmp_addflag=' -i_dynamic' ;;
14864 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14865 tmp_addflag=' -i_dynamic -nofor_main' ;;
14866 ifc* | ifort*) # Intel Fortran compiler
14867 tmp_addflag=' -nofor_main' ;;
14868 esac
14869 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14870
14871 if test $supports_anon_versioning = yes; then
14872 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14873 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14874 $echo "local: *; };" >> $output_objdir/$libname.ver~
14875 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14876 fi
14877 else
14878 ld_shlibs_F77=no
14879 fi
14880 ;;
14881
14882 netbsd*)
14883 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14884 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14885 wlarc=
14886 else
14887 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14888 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14889 fi
14890 ;;
14891
14892 solaris*)
14893 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14894 ld_shlibs_F77=no
14895 cat <<EOF 1>&2
14896
14897 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14898 *** create shared libraries on Solaris systems. Therefore, libtool
14899 *** is disabling shared libraries support. We urge you to upgrade GNU
14900 *** binutils to release 2.9.1 or newer. Another option is to modify
14901 *** your PATH or compiler configuration so that the native linker is
14902 *** used, and then restart.
14903
14904 EOF
14905 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14906 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14907 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14908 else
14909 ld_shlibs_F77=no
14910 fi
14911 ;;
14912
14913 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14914 case `$LD -v 2>&1` in
14915 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14916 ld_shlibs_F77=no
14917 cat <<_LT_EOF 1>&2
14918
14919 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14920 *** reliably create shared libraries on SCO systems. Therefore, libtool
14921 *** is disabling shared libraries support. We urge you to upgrade GNU
14922 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14923 *** your PATH or compiler configuration so that the native linker is
14924 *** used, and then restart.
14925
14926 _LT_EOF
14927 ;;
14928 *)
14929 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14930 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14931 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14932 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14933 else
14934 ld_shlibs_F77=no
14935 fi
14936 ;;
14937 esac
14938 ;;
14939
14940 sunos4*)
14941 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14942 wlarc=
14943 hardcode_direct_F77=yes
14944 hardcode_shlibpath_var_F77=no
14945 ;;
14946
14947 *)
14948 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14949 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14950 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14951 else
14952 ld_shlibs_F77=no
14953 fi
14954 ;;
14955 esac
14956
14957 if test "$ld_shlibs_F77" = no; then
14958 runpath_var=
14959 hardcode_libdir_flag_spec_F77=
14960 export_dynamic_flag_spec_F77=
14961 whole_archive_flag_spec_F77=
14962 fi
14963 else
14964 # PORTME fill in a description of your system's linker (not GNU ld)
14965 case $host_os in
14966 aix3*)
14967 allow_undefined_flag_F77=unsupported
14968 always_export_symbols_F77=yes
14969 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'
14970 # Note: this linker hardcodes the directories in LIBPATH if there
14971 # are no directories specified by -L.
14972 hardcode_minus_L_F77=yes
14973 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14974 # Neither direct hardcoding nor static linking is supported with a
14975 # broken collect2.
14976 hardcode_direct_F77=unsupported
14977 fi
14978 ;;
14979
14980 aix4* | aix5*)
14981 if test "$host_cpu" = ia64; then
14982 # On IA64, the linker does run time linking by default, so we don't
14983 # have to do anything special.
14984 aix_use_runtimelinking=no
14985 exp_sym_flag='-Bexport'
14986 no_entry_flag=""
14987 else
14988 # If we're using GNU nm, then we don't want the "-C" option.
14989 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14990 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14991 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'
14992 else
14993 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'
14994 fi
14995 aix_use_runtimelinking=no
14996
14997 # Test if we are trying to use run time linking or normal
14998 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14999 # need to do runtime linking.
15000 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15001 for ld_flag in $LDFLAGS; do
15002 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15003 aix_use_runtimelinking=yes
15004 break
15005 fi
15006 done
15007 ;;
15008 esac
15009
15010 exp_sym_flag='-bexport'
15011 no_entry_flag='-bnoentry'
15012 fi
15013
15014 # When large executables or shared objects are built, AIX ld can
15015 # have problems creating the table of contents. If linking a library
15016 # or program results in "error TOC overflow" add -mminimal-toc to
15017 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15018 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15019
15020 archive_cmds_F77=''
15021 hardcode_direct_F77=yes
15022 hardcode_libdir_separator_F77=':'
15023 link_all_deplibs_F77=yes
15024
15025 if test "$GCC" = yes; then
15026 case $host_os in aix4.[012]|aix4.[012].*)
15027 # We only want to do this on AIX 4.2 and lower, the check
15028 # below for broken collect2 doesn't work under 4.3+
15029 collect2name=`${CC} -print-prog-name=collect2`
15030 if test -f "$collect2name" && \
15031 strings "$collect2name" | grep resolve_lib_name >/dev/null
15032 then
15033 # We have reworked collect2
15034 hardcode_direct_F77=yes
15035 else
15036 # We have old collect2
15037 hardcode_direct_F77=unsupported
15038 # It fails to find uninstalled libraries when the uninstalled
15039 # path is not listed in the libpath. Setting hardcode_minus_L
15040 # to unsupported forces relinking
15041 hardcode_minus_L_F77=yes
15042 hardcode_libdir_flag_spec_F77='-L$libdir'
15043 hardcode_libdir_separator_F77=
15044 fi
15045 ;;
15046 esac
15047 shared_flag='-shared'
15048 if test "$aix_use_runtimelinking" = yes; then
15049 shared_flag="$shared_flag "'${wl}-G'
15050 fi
15051 else
15052 # not using gcc
15053 if test "$host_cpu" = ia64; then
15054 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15055 # chokes on -Wl,-G. The following line is correct:
15056 shared_flag='-G'
15057 else
15058 if test "$aix_use_runtimelinking" = yes; then
15059 shared_flag='${wl}-G'
15060 else
15061 shared_flag='${wl}-bM:SRE'
15062 fi
15063 fi
15064 fi
15065
15066 # It seems that -bexpall does not export symbols beginning with
15067 # underscore (_), so it is better to generate a list of symbols to export.
15068 always_export_symbols_F77=yes
15069 if test "$aix_use_runtimelinking" = yes; then
15070 # Warning - without using the other runtime loading flags (-brtl),
15071 # -berok will link without error, but may produce a broken library.
15072 allow_undefined_flag_F77='-berok'
15073 # Determine the default libpath from the value encoded in an empty executable.
15074 cat >conftest.$ac_ext <<_ACEOF
15075 program main
15076
15077 end
15078 _ACEOF
15079 rm -f conftest.$ac_objext conftest$ac_exeext
15080 if { (ac_try="$ac_link"
15081 case "(($ac_try" in
15082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15083 *) ac_try_echo=$ac_try;;
15084 esac
15085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15086 (eval "$ac_link") 2>conftest.er1
15087 ac_status=$?
15088 grep -v '^ *+' conftest.er1 >conftest.err
15089 rm -f conftest.er1
15090 cat conftest.err >&5
15091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15092 (exit $ac_status); } &&
15093 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
15094 { (case "(($ac_try" in
15095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15096 *) ac_try_echo=$ac_try;;
15097 esac
15098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15099 (eval "$ac_try") 2>&5
15100 ac_status=$?
15101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102 (exit $ac_status); }; } &&
15103 { ac_try='test -s conftest$ac_exeext'
15104 { (case "(($ac_try" in
15105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15106 *) ac_try_echo=$ac_try;;
15107 esac
15108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15109 (eval "$ac_try") 2>&5
15110 ac_status=$?
15111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15112 (exit $ac_status); }; }; then
15113
15114 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15115 }'`
15116 # Check for a 64-bit object if we didn't find anything.
15117 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15118 }'`; fi
15119 else
15120 echo "$as_me: failed program was:" >&5
15121 sed 's/^/| /' conftest.$ac_ext >&5
15122
15123
15124 fi
15125
15126 rm -f core conftest.err conftest.$ac_objext \
15127 conftest$ac_exeext conftest.$ac_ext
15128 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15129
15130 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15131 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"
15132 else
15133 if test "$host_cpu" = ia64; then
15134 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15135 allow_undefined_flag_F77="-z nodefs"
15136 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"
15137 else
15138 # Determine the default libpath from the value encoded in an empty executable.
15139 cat >conftest.$ac_ext <<_ACEOF
15140 program main
15141
15142 end
15143 _ACEOF
15144 rm -f conftest.$ac_objext conftest$ac_exeext
15145 if { (ac_try="$ac_link"
15146 case "(($ac_try" in
15147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15148 *) ac_try_echo=$ac_try;;
15149 esac
15150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15151 (eval "$ac_link") 2>conftest.er1
15152 ac_status=$?
15153 grep -v '^ *+' conftest.er1 >conftest.err
15154 rm -f conftest.er1
15155 cat conftest.err >&5
15156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157 (exit $ac_status); } &&
15158 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
15159 { (case "(($ac_try" in
15160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15161 *) ac_try_echo=$ac_try;;
15162 esac
15163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15164 (eval "$ac_try") 2>&5
15165 ac_status=$?
15166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167 (exit $ac_status); }; } &&
15168 { ac_try='test -s conftest$ac_exeext'
15169 { (case "(($ac_try" in
15170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15171 *) ac_try_echo=$ac_try;;
15172 esac
15173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15174 (eval "$ac_try") 2>&5
15175 ac_status=$?
15176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177 (exit $ac_status); }; }; then
15178
15179 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15180 }'`
15181 # Check for a 64-bit object if we didn't find anything.
15182 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15183 }'`; fi
15184 else
15185 echo "$as_me: failed program was:" >&5
15186 sed 's/^/| /' conftest.$ac_ext >&5
15187
15188
15189 fi
15190
15191 rm -f core conftest.err conftest.$ac_objext \
15192 conftest$ac_exeext conftest.$ac_ext
15193 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15194
15195 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15196 # Warning - without using the other run time loading flags,
15197 # -berok will link without error, but may produce a broken library.
15198 no_undefined_flag_F77=' ${wl}-bernotok'
15199 allow_undefined_flag_F77=' ${wl}-berok'
15200 # Exported symbols can be pulled into shared objects from archives
15201 whole_archive_flag_spec_F77='$convenience'
15202 archive_cmds_need_lc_F77=yes
15203 # This is similar to how AIX traditionally builds its shared libraries.
15204 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'
15205 fi
15206 fi
15207 ;;
15208
15209 amigaos*)
15210 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)'
15211 hardcode_libdir_flag_spec_F77='-L$libdir'
15212 hardcode_minus_L_F77=yes
15213 # see comment about different semantics on the GNU ld section
15214 ld_shlibs_F77=no
15215 ;;
15216
15217 bsdi[45]*)
15218 export_dynamic_flag_spec_F77=-rdynamic
15219 ;;
15220
15221 cygwin* | mingw* | pw32*)
15222 # When not using gcc, we currently assume that we are using
15223 # Microsoft Visual C++.
15224 # hardcode_libdir_flag_spec is actually meaningless, as there is
15225 # no search path for DLLs.
15226 hardcode_libdir_flag_spec_F77=' '
15227 allow_undefined_flag_F77=unsupported
15228 # Tell ltmain to make .lib files, not .a files.
15229 libext=lib
15230 # Tell ltmain to make .dll files, not .so files.
15231 shrext_cmds=".dll"
15232 # FIXME: Setting linknames here is a bad hack.
15233 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15234 # The linker will automatically build a .lib file if we build a DLL.
15235 old_archive_From_new_cmds_F77='true'
15236 # FIXME: Should let the user specify the lib program.
15237 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15238 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15239 enable_shared_with_static_runtimes_F77=yes
15240 ;;
15241
15242 darwin* | rhapsody*)
15243 case $host_os in
15244 rhapsody* | darwin1.[012])
15245 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15246 ;;
15247 *) # Darwin 1.3 on
15248 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15249 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15250 else
15251 case ${MACOSX_DEPLOYMENT_TARGET} in
15252 10.[012])
15253 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15254 ;;
15255 10.*)
15256 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15257 ;;
15258 esac
15259 fi
15260 ;;
15261 esac
15262 archive_cmds_need_lc_F77=no
15263 hardcode_direct_F77=no
15264 hardcode_automatic_F77=yes
15265 hardcode_shlibpath_var_F77=unsupported
15266 whole_archive_flag_spec_F77=''
15267 link_all_deplibs_F77=yes
15268 if test "$GCC" = yes ; then
15269 output_verbose_link_cmd='echo'
15270 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15271 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15272 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15273 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15274 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}'
15275 else
15276 case $cc_basename in
15277 xlc*)
15278 output_verbose_link_cmd='echo'
15279 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15280 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15281 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15282 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15283 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}'
15284 ;;
15285 *)
15286 ld_shlibs_F77=no
15287 ;;
15288 esac
15289 fi
15290 ;;
15291
15292 dgux*)
15293 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15294 hardcode_libdir_flag_spec_F77='-L$libdir'
15295 hardcode_shlibpath_var_F77=no
15296 ;;
15297
15298 freebsd1*)
15299 ld_shlibs_F77=no
15300 ;;
15301
15302 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15303 # support. Future versions do this automatically, but an explicit c++rt0.o
15304 # does not break anything, and helps significantly (at the cost of a little
15305 # extra space).
15306 freebsd2.2*)
15307 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15308 hardcode_libdir_flag_spec_F77='-R$libdir'
15309 hardcode_direct_F77=yes
15310 hardcode_shlibpath_var_F77=no
15311 ;;
15312
15313 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15314 freebsd2*)
15315 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15316 hardcode_direct_F77=yes
15317 hardcode_minus_L_F77=yes
15318 hardcode_shlibpath_var_F77=no
15319 ;;
15320
15321 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15322 freebsd* | kfreebsd*-gnu | dragonfly*)
15323 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15324 hardcode_libdir_flag_spec_F77='-R$libdir'
15325 hardcode_direct_F77=yes
15326 hardcode_shlibpath_var_F77=no
15327 ;;
15328
15329 hpux9*)
15330 if test "$GCC" = yes; then
15331 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'
15332 else
15333 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'
15334 fi
15335 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15336 hardcode_libdir_separator_F77=:
15337 hardcode_direct_F77=yes
15338
15339 # hardcode_minus_L: Not really in the search PATH,
15340 # but as the default location of the library.
15341 hardcode_minus_L_F77=yes
15342 export_dynamic_flag_spec_F77='${wl}-E'
15343 ;;
15344
15345 hpux10*)
15346 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15347 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15348 else
15349 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15350 fi
15351 if test "$with_gnu_ld" = no; then
15352 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15353 hardcode_libdir_separator_F77=:
15354
15355 hardcode_direct_F77=yes
15356 export_dynamic_flag_spec_F77='${wl}-E'
15357
15358 # hardcode_minus_L: Not really in the search PATH,
15359 # but as the default location of the library.
15360 hardcode_minus_L_F77=yes
15361 fi
15362 ;;
15363
15364 hpux11*)
15365 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15366 case $host_cpu in
15367 hppa*64*)
15368 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15369 ;;
15370 ia64*)
15371 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15372 ;;
15373 *)
15374 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15375 ;;
15376 esac
15377 else
15378 case $host_cpu in
15379 hppa*64*)
15380 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15381 ;;
15382 ia64*)
15383 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15384 ;;
15385 *)
15386 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15387 ;;
15388 esac
15389 fi
15390 if test "$with_gnu_ld" = no; then
15391 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15392 hardcode_libdir_separator_F77=:
15393
15394 case $host_cpu in
15395 hppa*64*|ia64*)
15396 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15397 hardcode_direct_F77=no
15398 hardcode_shlibpath_var_F77=no
15399 ;;
15400 *)
15401 hardcode_direct_F77=yes
15402 export_dynamic_flag_spec_F77='${wl}-E'
15403
15404 # hardcode_minus_L: Not really in the search PATH,
15405 # but as the default location of the library.
15406 hardcode_minus_L_F77=yes
15407 ;;
15408 esac
15409 fi
15410 ;;
15411
15412 irix5* | irix6* | nonstopux*)
15413 if test "$GCC" = yes; then
15414 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'
15415 else
15416 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'
15417 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15418 fi
15419 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15420 hardcode_libdir_separator_F77=:
15421 link_all_deplibs_F77=yes
15422 ;;
15423
15424 netbsd*)
15425 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15426 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15427 else
15428 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15429 fi
15430 hardcode_libdir_flag_spec_F77='-R$libdir'
15431 hardcode_direct_F77=yes
15432 hardcode_shlibpath_var_F77=no
15433 ;;
15434
15435 newsos6)
15436 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15437 hardcode_direct_F77=yes
15438 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15439 hardcode_libdir_separator_F77=:
15440 hardcode_shlibpath_var_F77=no
15441 ;;
15442
15443 openbsd*)
15444 hardcode_direct_F77=yes
15445 hardcode_shlibpath_var_F77=no
15446 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15447 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15448 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15449 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15450 export_dynamic_flag_spec_F77='${wl}-E'
15451 else
15452 case $host_os in
15453 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15454 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15455 hardcode_libdir_flag_spec_F77='-R$libdir'
15456 ;;
15457 *)
15458 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15459 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15460 ;;
15461 esac
15462 fi
15463 ;;
15464
15465 os2*)
15466 hardcode_libdir_flag_spec_F77='-L$libdir'
15467 hardcode_minus_L_F77=yes
15468 allow_undefined_flag_F77=unsupported
15469 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'
15470 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15471 ;;
15472
15473 osf3*)
15474 if test "$GCC" = yes; then
15475 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15476 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'
15477 else
15478 allow_undefined_flag_F77=' -expect_unresolved \*'
15479 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'
15480 fi
15481 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15482 hardcode_libdir_separator_F77=:
15483 ;;
15484
15485 osf4* | osf5*) # as osf3* with the addition of -msym flag
15486 if test "$GCC" = yes; then
15487 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15488 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'
15489 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15490 else
15491 allow_undefined_flag_F77=' -expect_unresolved \*'
15492 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'
15493 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~
15494 $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'
15495
15496 # Both c and cxx compiler support -rpath directly
15497 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15498 fi
15499 hardcode_libdir_separator_F77=:
15500 ;;
15501
15502 solaris*)
15503 no_undefined_flag_F77=' -z text'
15504 if test "$GCC" = yes; then
15505 wlarc='${wl}'
15506 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15507 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15508 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15509 else
15510 wlarc=''
15511 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15512 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15513 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15514 fi
15515 hardcode_libdir_flag_spec_F77='-R$libdir'
15516 hardcode_shlibpath_var_F77=no
15517 case $host_os in
15518 solaris2.[0-5] | solaris2.[0-5].*) ;;
15519 *)
15520 # The compiler driver will combine linker options so we
15521 # cannot just pass the convience library names through
15522 # without $wl, iff we do not link with $LD.
15523 # Luckily, gcc supports the same syntax we need for Sun Studio.
15524 # Supported since Solaris 2.6 (maybe 2.5.1?)
15525 case $wlarc in
15526 '')
15527 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15528 *)
15529 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15530 esac ;;
15531 esac
15532 link_all_deplibs_F77=yes
15533 ;;
15534
15535 sunos4*)
15536 if test "x$host_vendor" = xsequent; then
15537 # Use $CC to link under sequent, because it throws in some extra .o
15538 # files that make .init and .fini sections work.
15539 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15540 else
15541 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15542 fi
15543 hardcode_libdir_flag_spec_F77='-L$libdir'
15544 hardcode_direct_F77=yes
15545 hardcode_minus_L_F77=yes
15546 hardcode_shlibpath_var_F77=no
15547 ;;
15548
15549 sysv4)
15550 case $host_vendor in
15551 sni)
15552 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15553 hardcode_direct_F77=yes # is this really true???
15554 ;;
15555 siemens)
15556 ## LD is ld it makes a PLAMLIB
15557 ## CC just makes a GrossModule.
15558 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15559 reload_cmds_F77='$CC -r -o $output$reload_objs'
15560 hardcode_direct_F77=no
15561 ;;
15562 motorola)
15563 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15564 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15565 ;;
15566 esac
15567 runpath_var='LD_RUN_PATH'
15568 hardcode_shlibpath_var_F77=no
15569 ;;
15570
15571 sysv4.3*)
15572 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15573 hardcode_shlibpath_var_F77=no
15574 export_dynamic_flag_spec_F77='-Bexport'
15575 ;;
15576
15577 sysv4*MP*)
15578 if test -d /usr/nec; then
15579 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15580 hardcode_shlibpath_var_F77=no
15581 runpath_var=LD_RUN_PATH
15582 hardcode_runpath_var=yes
15583 ld_shlibs_F77=yes
15584 fi
15585 ;;
15586
15587 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15588 no_undefined_flag_F77='${wl}-z,text'
15589 archive_cmds_need_lc_F77=no
15590 hardcode_shlibpath_var_F77=no
15591 runpath_var='LD_RUN_PATH'
15592
15593 if test "$GCC" = yes; then
15594 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15595 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15596 else
15597 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15598 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15599 fi
15600 ;;
15601
15602 sysv5* | sco3.2v5* | sco5v6*)
15603 # Note: We can NOT use -z defs as we might desire, because we do not
15604 # link with -lc, and that would cause any symbols used from libc to
15605 # always be unresolved, which means just about no library would
15606 # ever link correctly. If we're not using GNU ld we use -z text
15607 # though, which does catch some bad symbols but isn't as heavy-handed
15608 # as -z defs.
15609 no_undefined_flag_F77='${wl}-z,text'
15610 allow_undefined_flag_F77='${wl}-z,nodefs'
15611 archive_cmds_need_lc_F77=no
15612 hardcode_shlibpath_var_F77=no
15613 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15614 hardcode_libdir_separator_F77=':'
15615 link_all_deplibs_F77=yes
15616 export_dynamic_flag_spec_F77='${wl}-Bexport'
15617 runpath_var='LD_RUN_PATH'
15618
15619 if test "$GCC" = yes; then
15620 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15621 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15622 else
15623 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15624 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15625 fi
15626 ;;
15627
15628 uts4*)
15629 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15630 hardcode_libdir_flag_spec_F77='-L$libdir'
15631 hardcode_shlibpath_var_F77=no
15632 ;;
15633
15634 *)
15635 ld_shlibs_F77=no
15636 ;;
15637 esac
15638 fi
15639
15640 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15641 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15642 test "$ld_shlibs_F77" = no && can_build_shared=no
15643
15644 #
15645 # Do we need to explicitly link libc?
15646 #
15647 case "x$archive_cmds_need_lc_F77" in
15648 x|xyes)
15649 # Assume -lc should be added
15650 archive_cmds_need_lc_F77=yes
15651
15652 if test "$enable_shared" = yes && test "$GCC" = yes; then
15653 case $archive_cmds_F77 in
15654 *'~'*)
15655 # FIXME: we may have to deal with multi-command sequences.
15656 ;;
15657 '$CC '*)
15658 # Test whether the compiler implicitly links with -lc since on some
15659 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15660 # to ld, don't add -lc before -lgcc.
15661 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15662 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15663 $rm conftest*
15664 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15665
15666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15667 (eval $ac_compile) 2>&5
15668 ac_status=$?
15669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15670 (exit $ac_status); } 2>conftest.err; then
15671 soname=conftest
15672 lib=conftest
15673 libobjs=conftest.$ac_objext
15674 deplibs=
15675 wl=$lt_prog_compiler_wl_F77
15676 pic_flag=$lt_prog_compiler_pic_F77
15677 compiler_flags=-v
15678 linker_flags=-v
15679 verstring=
15680 output_objdir=.
15681 libname=conftest
15682 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15683 allow_undefined_flag_F77=
15684 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15685 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15686 ac_status=$?
15687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15688 (exit $ac_status); }
15689 then
15690 archive_cmds_need_lc_F77=no
15691 else
15692 archive_cmds_need_lc_F77=yes
15693 fi
15694 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15695 else
15696 cat conftest.err 1>&5
15697 fi
15698 $rm conftest*
15699 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15700 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15701 ;;
15702 esac
15703 fi
15704 ;;
15705 esac
15706
15707 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15708 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15709 library_names_spec=
15710 libname_spec='lib$name'
15711 soname_spec=
15712 shrext_cmds=".so"
15713 postinstall_cmds=
15714 postuninstall_cmds=
15715 finish_cmds=
15716 finish_eval=
15717 shlibpath_var=
15718 shlibpath_overrides_runpath=unknown
15719 version_type=none
15720 dynamic_linker="$host_os ld.so"
15721 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15722 if test "$GCC" = yes; then
15723 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15724 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15725 # if the path contains ";" then we assume it to be the separator
15726 # otherwise default to the standard path separator (i.e. ":") - it is
15727 # assumed that no part of a normal pathname contains ";" but that should
15728 # okay in the real world where ";" in dirpaths is itself problematic.
15729 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15730 else
15731 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15732 fi
15733 else
15734 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15735 fi
15736 need_lib_prefix=unknown
15737 hardcode_into_libs=no
15738
15739 # when you set need_version to no, make sure it does not cause -set_version
15740 # flags to be left without arguments
15741 need_version=unknown
15742
15743 case $host_os in
15744 aix3*)
15745 version_type=linux
15746 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15747 shlibpath_var=LIBPATH
15748
15749 # AIX 3 has no versioning support, so we append a major version to the name.
15750 soname_spec='${libname}${release}${shared_ext}$major'
15751 ;;
15752
15753 aix4* | aix5*)
15754 version_type=linux
15755 need_lib_prefix=no
15756 need_version=no
15757 hardcode_into_libs=yes
15758 if test "$host_cpu" = ia64; then
15759 # AIX 5 supports IA64
15760 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15761 shlibpath_var=LD_LIBRARY_PATH
15762 else
15763 # With GCC up to 2.95.x, collect2 would create an import file
15764 # for dependence libraries. The import file would start with
15765 # the line `#! .'. This would cause the generated library to
15766 # depend on `.', always an invalid library. This was fixed in
15767 # development snapshots of GCC prior to 3.0.
15768 case $host_os in
15769 aix4 | aix4.[01] | aix4.[01].*)
15770 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15771 echo ' yes '
15772 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15773 :
15774 else
15775 can_build_shared=no
15776 fi
15777 ;;
15778 esac
15779 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15780 # soname into executable. Probably we can add versioning support to
15781 # collect2, so additional links can be useful in future.
15782 if test "$aix_use_runtimelinking" = yes; then
15783 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15784 # instead of lib<name>.a to let people know that these are not
15785 # typical AIX shared libraries.
15786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15787 else
15788 # We preserve .a as extension for shared libraries through AIX4.2
15789 # and later when we are not doing run time linking.
15790 library_names_spec='${libname}${release}.a $libname.a'
15791 soname_spec='${libname}${release}${shared_ext}$major'
15792 fi
15793 shlibpath_var=LIBPATH
15794 fi
15795 ;;
15796
15797 amigaos*)
15798 library_names_spec='$libname.ixlibrary $libname.a'
15799 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15800 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'
15801 ;;
15802
15803 beos*)
15804 library_names_spec='${libname}${shared_ext}'
15805 dynamic_linker="$host_os ld.so"
15806 shlibpath_var=LIBRARY_PATH
15807 ;;
15808
15809 bsdi[45]*)
15810 version_type=linux
15811 need_version=no
15812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15813 soname_spec='${libname}${release}${shared_ext}$major'
15814 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15815 shlibpath_var=LD_LIBRARY_PATH
15816 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15817 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15818 # the default ld.so.conf also contains /usr/contrib/lib and
15819 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15820 # libtool to hard-code these into programs
15821 ;;
15822
15823 cygwin* | mingw* | pw32*)
15824 version_type=windows
15825 shrext_cmds=".dll"
15826 need_version=no
15827 need_lib_prefix=no
15828
15829 case $GCC,$host_os in
15830 yes,cygwin* | yes,mingw* | yes,pw32*)
15831 library_names_spec='$libname.dll.a'
15832 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15833 postinstall_cmds='base_file=`basename \${file}`~
15834 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15835 dldir=$destdir/`dirname \$dlpath`~
15836 test -d \$dldir || mkdir -p \$dldir~
15837 $install_prog $dir/$dlname \$dldir/$dlname~
15838 chmod a+x \$dldir/$dlname'
15839 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15840 dlpath=$dir/\$dldll~
15841 $rm \$dlpath'
15842 shlibpath_overrides_runpath=yes
15843
15844 case $host_os in
15845 cygwin*)
15846 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15847 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15848 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15849 ;;
15850 mingw*)
15851 # MinGW DLLs use traditional 'lib' prefix
15852 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15853 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15854 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15855 # It is most probably a Windows format PATH printed by
15856 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15857 # path with ; separators, and with drive letters. We can handle the
15858 # drive letters (cygwin fileutils understands them), so leave them,
15859 # especially as we might pass files found there to a mingw objdump,
15860 # which wouldn't understand a cygwinified path. Ahh.
15861 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15862 else
15863 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15864 fi
15865 ;;
15866 pw32*)
15867 # pw32 DLLs use 'pw' prefix rather than 'lib'
15868 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15869 ;;
15870 esac
15871 ;;
15872
15873 *)
15874 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15875 ;;
15876 esac
15877 dynamic_linker='Win32 ld.exe'
15878 # FIXME: first we should search . and the directory the executable is in
15879 shlibpath_var=PATH
15880 ;;
15881
15882 darwin* | rhapsody*)
15883 dynamic_linker="$host_os dyld"
15884 version_type=darwin
15885 need_lib_prefix=no
15886 need_version=no
15887 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15888 soname_spec='${libname}${release}${major}$shared_ext'
15889 shlibpath_overrides_runpath=yes
15890 shlibpath_var=DYLD_LIBRARY_PATH
15891 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15892 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15893 if test "$GCC" = yes; then
15894 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15895 else
15896 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15897 fi
15898 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15899 ;;
15900
15901 dgux*)
15902 version_type=linux
15903 need_lib_prefix=no
15904 need_version=no
15905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15906 soname_spec='${libname}${release}${shared_ext}$major'
15907 shlibpath_var=LD_LIBRARY_PATH
15908 ;;
15909
15910 freebsd1*)
15911 dynamic_linker=no
15912 ;;
15913
15914 kfreebsd*-gnu)
15915 version_type=linux
15916 need_lib_prefix=no
15917 need_version=no
15918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15919 soname_spec='${libname}${release}${shared_ext}$major'
15920 shlibpath_var=LD_LIBRARY_PATH
15921 shlibpath_overrides_runpath=no
15922 hardcode_into_libs=yes
15923 dynamic_linker='GNU ld.so'
15924 ;;
15925
15926 freebsd* | dragonfly*)
15927 # DragonFly does not have aout. When/if they implement a new
15928 # versioning mechanism, adjust this.
15929 if test -x /usr/bin/objformat; then
15930 objformat=`/usr/bin/objformat`
15931 else
15932 case $host_os in
15933 freebsd[123]*) objformat=aout ;;
15934 *) objformat=elf ;;
15935 esac
15936 fi
15937 version_type=freebsd-$objformat
15938 case $version_type in
15939 freebsd-elf*)
15940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15941 need_version=no
15942 need_lib_prefix=no
15943 ;;
15944 freebsd-*)
15945 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15946 need_version=yes
15947 ;;
15948 esac
15949 shlibpath_var=LD_LIBRARY_PATH
15950 case $host_os in
15951 freebsd2*)
15952 shlibpath_overrides_runpath=yes
15953 ;;
15954 freebsd3.[01]* | freebsdelf3.[01]*)
15955 shlibpath_overrides_runpath=yes
15956 hardcode_into_libs=yes
15957 ;;
15958 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15959 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15960 shlibpath_overrides_runpath=no
15961 hardcode_into_libs=yes
15962 ;;
15963 freebsd*) # from 4.6 on
15964 shlibpath_overrides_runpath=yes
15965 hardcode_into_libs=yes
15966 ;;
15967 esac
15968 ;;
15969
15970 gnu*)
15971 version_type=linux
15972 need_lib_prefix=no
15973 need_version=no
15974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15975 soname_spec='${libname}${release}${shared_ext}$major'
15976 shlibpath_var=LD_LIBRARY_PATH
15977 hardcode_into_libs=yes
15978 ;;
15979
15980 hpux9* | hpux10* | hpux11*)
15981 # Give a soname corresponding to the major version so that dld.sl refuses to
15982 # link against other versions.
15983 version_type=sunos
15984 need_lib_prefix=no
15985 need_version=no
15986 case $host_cpu in
15987 ia64*)
15988 shrext_cmds='.so'
15989 hardcode_into_libs=yes
15990 dynamic_linker="$host_os dld.so"
15991 shlibpath_var=LD_LIBRARY_PATH
15992 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15994 soname_spec='${libname}${release}${shared_ext}$major'
15995 if test "X$HPUX_IA64_MODE" = X32; then
15996 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15997 else
15998 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15999 fi
16000 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16001 ;;
16002 hppa*64*)
16003 shrext_cmds='.sl'
16004 hardcode_into_libs=yes
16005 dynamic_linker="$host_os dld.sl"
16006 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16007 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16009 soname_spec='${libname}${release}${shared_ext}$major'
16010 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16011 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16012 ;;
16013 *)
16014 shrext_cmds='.sl'
16015 dynamic_linker="$host_os dld.sl"
16016 shlibpath_var=SHLIB_PATH
16017 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16019 soname_spec='${libname}${release}${shared_ext}$major'
16020 ;;
16021 esac
16022 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16023 postinstall_cmds='chmod 555 $lib'
16024 ;;
16025
16026 interix3*)
16027 version_type=linux
16028 need_lib_prefix=no
16029 need_version=no
16030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16031 soname_spec='${libname}${release}${shared_ext}$major'
16032 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16033 shlibpath_var=LD_LIBRARY_PATH
16034 shlibpath_overrides_runpath=no
16035 hardcode_into_libs=yes
16036 ;;
16037
16038 irix5* | irix6* | nonstopux*)
16039 case $host_os in
16040 nonstopux*) version_type=nonstopux ;;
16041 *)
16042 if test "$lt_cv_prog_gnu_ld" = yes; then
16043 version_type=linux
16044 else
16045 version_type=irix
16046 fi ;;
16047 esac
16048 need_lib_prefix=no
16049 need_version=no
16050 soname_spec='${libname}${release}${shared_ext}$major'
16051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16052 case $host_os in
16053 irix5* | nonstopux*)
16054 libsuff= shlibsuff=
16055 ;;
16056 *)
16057 case $LD in # libtool.m4 will add one of these switches to LD
16058 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16059 libsuff= shlibsuff= libmagic=32-bit;;
16060 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16061 libsuff=32 shlibsuff=N32 libmagic=N32;;
16062 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16063 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16064 *) libsuff= shlibsuff= libmagic=never-match;;
16065 esac
16066 ;;
16067 esac
16068 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16069 shlibpath_overrides_runpath=no
16070 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16071 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16072 hardcode_into_libs=yes
16073 ;;
16074
16075 # No shared lib support for Linux oldld, aout, or coff.
16076 linux*oldld* | linux*aout* | linux*coff*)
16077 dynamic_linker=no
16078 ;;
16079
16080 # This must be Linux ELF.
16081 linux*)
16082 version_type=linux
16083 need_lib_prefix=no
16084 need_version=no
16085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16086 soname_spec='${libname}${release}${shared_ext}$major'
16087 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16088 shlibpath_var=LD_LIBRARY_PATH
16089 shlibpath_overrides_runpath=no
16090 # This implies no fast_install, which is unacceptable.
16091 # Some rework will be needed to allow for fast_install
16092 # before this can be enabled.
16093 hardcode_into_libs=yes
16094
16095 # Append ld.so.conf contents to the search path
16096 if test -f /etc/ld.so.conf; then
16097 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16098 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16099 fi
16100
16101 # We used to test for /lib/ld.so.1 and disable shared libraries on
16102 # powerpc, because MkLinux only supported shared libraries with the
16103 # GNU dynamic linker. Since this was broken with cross compilers,
16104 # most powerpc-linux boxes support dynamic linking these days and
16105 # people can always --disable-shared, the test was removed, and we
16106 # assume the GNU/Linux dynamic linker is in use.
16107 dynamic_linker='GNU/Linux ld.so'
16108 ;;
16109
16110 knetbsd*-gnu)
16111 version_type=linux
16112 need_lib_prefix=no
16113 need_version=no
16114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16115 soname_spec='${libname}${release}${shared_ext}$major'
16116 shlibpath_var=LD_LIBRARY_PATH
16117 shlibpath_overrides_runpath=no
16118 hardcode_into_libs=yes
16119 dynamic_linker='GNU ld.so'
16120 ;;
16121
16122 netbsd*)
16123 version_type=sunos
16124 need_lib_prefix=no
16125 need_version=no
16126 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16128 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16129 dynamic_linker='NetBSD (a.out) ld.so'
16130 else
16131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16132 soname_spec='${libname}${release}${shared_ext}$major'
16133 dynamic_linker='NetBSD ld.elf_so'
16134 fi
16135 shlibpath_var=LD_LIBRARY_PATH
16136 shlibpath_overrides_runpath=yes
16137 hardcode_into_libs=yes
16138 ;;
16139
16140 newsos6)
16141 version_type=linux
16142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16143 shlibpath_var=LD_LIBRARY_PATH
16144 shlibpath_overrides_runpath=yes
16145 ;;
16146
16147 nto-qnx*)
16148 version_type=linux
16149 need_lib_prefix=no
16150 need_version=no
16151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16152 soname_spec='${libname}${release}${shared_ext}$major'
16153 shlibpath_var=LD_LIBRARY_PATH
16154 shlibpath_overrides_runpath=yes
16155 ;;
16156
16157 openbsd*)
16158 version_type=sunos
16159 sys_lib_dlsearch_path_spec="/usr/lib"
16160 need_lib_prefix=no
16161 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16162 case $host_os in
16163 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16164 *) need_version=no ;;
16165 esac
16166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16167 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16168 shlibpath_var=LD_LIBRARY_PATH
16169 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16170 case $host_os in
16171 openbsd2.[89] | openbsd2.[89].*)
16172 shlibpath_overrides_runpath=no
16173 ;;
16174 *)
16175 shlibpath_overrides_runpath=yes
16176 ;;
16177 esac
16178 else
16179 shlibpath_overrides_runpath=yes
16180 fi
16181 ;;
16182
16183 os2*)
16184 libname_spec='$name'
16185 shrext_cmds=".dll"
16186 need_lib_prefix=no
16187 library_names_spec='$libname${shared_ext} $libname.a'
16188 dynamic_linker='OS/2 ld.exe'
16189 shlibpath_var=LIBPATH
16190 ;;
16191
16192 osf3* | osf4* | osf5*)
16193 version_type=osf
16194 need_lib_prefix=no
16195 need_version=no
16196 soname_spec='${libname}${release}${shared_ext}$major'
16197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16198 shlibpath_var=LD_LIBRARY_PATH
16199 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16200 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16201 ;;
16202
16203 solaris*)
16204 version_type=linux
16205 need_lib_prefix=no
16206 need_version=no
16207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16208 soname_spec='${libname}${release}${shared_ext}$major'
16209 shlibpath_var=LD_LIBRARY_PATH
16210 shlibpath_overrides_runpath=yes
16211 hardcode_into_libs=yes
16212 # ldd complains unless libraries are executable
16213 postinstall_cmds='chmod +x $lib'
16214 ;;
16215
16216 sunos4*)
16217 version_type=sunos
16218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16219 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16220 shlibpath_var=LD_LIBRARY_PATH
16221 shlibpath_overrides_runpath=yes
16222 if test "$with_gnu_ld" = yes; then
16223 need_lib_prefix=no
16224 fi
16225 need_version=yes
16226 ;;
16227
16228 sysv4 | sysv4.3*)
16229 version_type=linux
16230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16231 soname_spec='${libname}${release}${shared_ext}$major'
16232 shlibpath_var=LD_LIBRARY_PATH
16233 case $host_vendor in
16234 sni)
16235 shlibpath_overrides_runpath=no
16236 need_lib_prefix=no
16237 export_dynamic_flag_spec='${wl}-Blargedynsym'
16238 runpath_var=LD_RUN_PATH
16239 ;;
16240 siemens)
16241 need_lib_prefix=no
16242 ;;
16243 motorola)
16244 need_lib_prefix=no
16245 need_version=no
16246 shlibpath_overrides_runpath=no
16247 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16248 ;;
16249 esac
16250 ;;
16251
16252 sysv4*MP*)
16253 if test -d /usr/nec ;then
16254 version_type=linux
16255 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16256 soname_spec='$libname${shared_ext}.$major'
16257 shlibpath_var=LD_LIBRARY_PATH
16258 fi
16259 ;;
16260
16261 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16262 version_type=freebsd-elf
16263 need_lib_prefix=no
16264 need_version=no
16265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16266 soname_spec='${libname}${release}${shared_ext}$major'
16267 shlibpath_var=LD_LIBRARY_PATH
16268 hardcode_into_libs=yes
16269 if test "$with_gnu_ld" = yes; then
16270 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16271 shlibpath_overrides_runpath=no
16272 else
16273 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16274 shlibpath_overrides_runpath=yes
16275 case $host_os in
16276 sco3.2v5*)
16277 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16278 ;;
16279 esac
16280 fi
16281 sys_lib_dlsearch_path_spec='/usr/lib'
16282 ;;
16283
16284 uts4*)
16285 version_type=linux
16286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16287 soname_spec='${libname}${release}${shared_ext}$major'
16288 shlibpath_var=LD_LIBRARY_PATH
16289 ;;
16290
16291 *)
16292 dynamic_linker=no
16293 ;;
16294 esac
16295 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16296 echo "${ECHO_T}$dynamic_linker" >&6; }
16297 test "$dynamic_linker" = no && can_build_shared=no
16298
16299 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16300 if test "$GCC" = yes; then
16301 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16302 fi
16303
16304 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16305 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16306 hardcode_action_F77=
16307 if test -n "$hardcode_libdir_flag_spec_F77" || \
16308 test -n "$runpath_var_F77" || \
16309 test "X$hardcode_automatic_F77" = "Xyes" ; then
16310
16311 # We can hardcode non-existant directories.
16312 if test "$hardcode_direct_F77" != no &&
16313 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16314 # have to relink, otherwise we might link with an installed library
16315 # when we should be linking with a yet-to-be-installed one
16316 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16317 test "$hardcode_minus_L_F77" != no; then
16318 # Linking always hardcodes the temporary library directory.
16319 hardcode_action_F77=relink
16320 else
16321 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16322 hardcode_action_F77=immediate
16323 fi
16324 else
16325 # We cannot hardcode anything, or else we can only hardcode existing
16326 # directories.
16327 hardcode_action_F77=unsupported
16328 fi
16329 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16330 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16331
16332 if test "$hardcode_action_F77" = relink; then
16333 # Fast installation is not supported
16334 enable_fast_install=no
16335 elif test "$shlibpath_overrides_runpath" = yes ||
16336 test "$enable_shared" = no; then
16337 # Fast installation is not necessary
16338 enable_fast_install=needless
16339 fi
16340
16341
16342 # The else clause should only fire when bootstrapping the
16343 # libtool distribution, otherwise you forgot to ship ltmain.sh
16344 # with your package, and you will get complaints that there are
16345 # no rules to generate ltmain.sh.
16346 if test -f "$ltmain"; then
16347 # See if we are running on zsh, and set the options which allow our commands through
16348 # without removal of \ escapes.
16349 if test -n "${ZSH_VERSION+set}" ; then
16350 setopt NO_GLOB_SUBST
16351 fi
16352 # Now quote all the things that may contain metacharacters while being
16353 # careful not to overquote the AC_SUBSTed values. We take copies of the
16354 # variables and quote the copies for generation of the libtool script.
16355 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16356 SED SHELL STRIP \
16357 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16358 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16359 deplibs_check_method reload_flag reload_cmds need_locks \
16360 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16361 lt_cv_sys_global_symbol_to_c_name_address \
16362 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16363 old_postinstall_cmds old_postuninstall_cmds \
16364 compiler_F77 \
16365 CC_F77 \
16366 LD_F77 \
16367 lt_prog_compiler_wl_F77 \
16368 lt_prog_compiler_pic_F77 \
16369 lt_prog_compiler_static_F77 \
16370 lt_prog_compiler_no_builtin_flag_F77 \
16371 export_dynamic_flag_spec_F77 \
16372 thread_safe_flag_spec_F77 \
16373 whole_archive_flag_spec_F77 \
16374 enable_shared_with_static_runtimes_F77 \
16375 old_archive_cmds_F77 \
16376 old_archive_from_new_cmds_F77 \
16377 predep_objects_F77 \
16378 postdep_objects_F77 \
16379 predeps_F77 \
16380 postdeps_F77 \
16381 compiler_lib_search_path_F77 \
16382 archive_cmds_F77 \
16383 archive_expsym_cmds_F77 \
16384 postinstall_cmds_F77 \
16385 postuninstall_cmds_F77 \
16386 old_archive_from_expsyms_cmds_F77 \
16387 allow_undefined_flag_F77 \
16388 no_undefined_flag_F77 \
16389 export_symbols_cmds_F77 \
16390 hardcode_libdir_flag_spec_F77 \
16391 hardcode_libdir_flag_spec_ld_F77 \
16392 hardcode_libdir_separator_F77 \
16393 hardcode_automatic_F77 \
16394 module_cmds_F77 \
16395 module_expsym_cmds_F77 \
16396 lt_cv_prog_compiler_c_o_F77 \
16397 exclude_expsyms_F77 \
16398 include_expsyms_F77; do
16399
16400 case $var in
16401 old_archive_cmds_F77 | \
16402 old_archive_from_new_cmds_F77 | \
16403 archive_cmds_F77 | \
16404 archive_expsym_cmds_F77 | \
16405 module_cmds_F77 | \
16406 module_expsym_cmds_F77 | \
16407 old_archive_from_expsyms_cmds_F77 | \
16408 export_symbols_cmds_F77 | \
16409 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16410 postinstall_cmds | postuninstall_cmds | \
16411 old_postinstall_cmds | old_postuninstall_cmds | \
16412 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16413 # Double-quote double-evaled strings.
16414 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16415 ;;
16416 *)
16417 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16418 ;;
16419 esac
16420 done
16421
16422 case $lt_echo in
16423 *'\$0 --fallback-echo"')
16424 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16425 ;;
16426 esac
16427
16428 cfgfile="$ofile"
16429
16430 cat <<__EOF__ >> "$cfgfile"
16431 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16432
16433 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16434
16435 # Shell to use when invoking shell scripts.
16436 SHELL=$lt_SHELL
16437
16438 # Whether or not to build shared libraries.
16439 build_libtool_libs=$enable_shared
16440
16441 # Whether or not to build static libraries.
16442 build_old_libs=$enable_static
16443
16444 # Whether or not to add -lc for building shared libraries.
16445 build_libtool_need_lc=$archive_cmds_need_lc_F77
16446
16447 # Whether or not to disallow shared libs when runtime libs are static
16448 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16449
16450 # Whether or not to optimize for fast installation.
16451 fast_install=$enable_fast_install
16452
16453 # The host system.
16454 host_alias=$host_alias
16455 host=$host
16456 host_os=$host_os
16457
16458 # The build system.
16459 build_alias=$build_alias
16460 build=$build
16461 build_os=$build_os
16462
16463 # An echo program that does not interpret backslashes.
16464 echo=$lt_echo
16465
16466 # The archiver.
16467 AR=$lt_AR
16468 AR_FLAGS=$lt_AR_FLAGS
16469
16470 # A C compiler.
16471 LTCC=$lt_LTCC
16472
16473 # LTCC compiler flags.
16474 LTCFLAGS=$lt_LTCFLAGS
16475
16476 # A language-specific compiler.
16477 CC=$lt_compiler_F77
16478
16479 # Is the compiler the GNU C compiler?
16480 with_gcc=$GCC_F77
16481
16482 # An ERE matcher.
16483 EGREP=$lt_EGREP
16484
16485 # The linker used to build libraries.
16486 LD=$lt_LD_F77
16487
16488 # Whether we need hard or soft links.
16489 LN_S=$lt_LN_S
16490
16491 # A BSD-compatible nm program.
16492 NM=$lt_NM
16493
16494 # A symbol stripping program
16495 STRIP=$lt_STRIP
16496
16497 # Used to examine libraries when file_magic_cmd begins "file"
16498 MAGIC_CMD=$MAGIC_CMD
16499
16500 # Used on cygwin: DLL creation program.
16501 DLLTOOL="$DLLTOOL"
16502
16503 # Used on cygwin: object dumper.
16504 OBJDUMP="$OBJDUMP"
16505
16506 # Used on cygwin: assembler.
16507 AS="$AS"
16508
16509 # The name of the directory that contains temporary libtool files.
16510 objdir=$objdir
16511
16512 # How to create reloadable object files.
16513 reload_flag=$lt_reload_flag
16514 reload_cmds=$lt_reload_cmds
16515
16516 # How to pass a linker flag through the compiler.
16517 wl=$lt_lt_prog_compiler_wl_F77
16518
16519 # Object file suffix (normally "o").
16520 objext="$ac_objext"
16521
16522 # Old archive suffix (normally "a").
16523 libext="$libext"
16524
16525 # Shared library suffix (normally ".so").
16526 shrext_cmds='$shrext_cmds'
16527
16528 # Executable file suffix (normally "").
16529 exeext="$exeext"
16530
16531 # Additional compiler flags for building library objects.
16532 pic_flag=$lt_lt_prog_compiler_pic_F77
16533 pic_mode=$pic_mode
16534
16535 # What is the maximum length of a command?
16536 max_cmd_len=$lt_cv_sys_max_cmd_len
16537
16538 # Does compiler simultaneously support -c and -o options?
16539 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16540
16541 # Must we lock files when doing compilation?
16542 need_locks=$lt_need_locks
16543
16544 # Do we need the lib prefix for modules?
16545 need_lib_prefix=$need_lib_prefix
16546
16547 # Do we need a version for libraries?
16548 need_version=$need_version
16549
16550 # Whether dlopen is supported.
16551 dlopen_support=$enable_dlopen
16552
16553 # Whether dlopen of programs is supported.
16554 dlopen_self=$enable_dlopen_self
16555
16556 # Whether dlopen of statically linked programs is supported.
16557 dlopen_self_static=$enable_dlopen_self_static
16558
16559 # Compiler flag to prevent dynamic linking.
16560 link_static_flag=$lt_lt_prog_compiler_static_F77
16561
16562 # Compiler flag to turn off builtin functions.
16563 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16564
16565 # Compiler flag to allow reflexive dlopens.
16566 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16567
16568 # Compiler flag to generate shared objects directly from archives.
16569 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16570
16571 # Compiler flag to generate thread-safe objects.
16572 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16573
16574 # Library versioning type.
16575 version_type=$version_type
16576
16577 # Format of library name prefix.
16578 libname_spec=$lt_libname_spec
16579
16580 # List of archive names. First name is the real one, the rest are links.
16581 # The last name is the one that the linker finds with -lNAME.
16582 library_names_spec=$lt_library_names_spec
16583
16584 # The coded name of the library, if different from the real name.
16585 soname_spec=$lt_soname_spec
16586
16587 # Commands used to build and install an old-style archive.
16588 RANLIB=$lt_RANLIB
16589 old_archive_cmds=$lt_old_archive_cmds_F77
16590 old_postinstall_cmds=$lt_old_postinstall_cmds
16591 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16592
16593 # Create an old-style archive from a shared archive.
16594 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16595
16596 # Create a temporary old-style archive to link instead of a shared archive.
16597 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16598
16599 # Commands used to build and install a shared archive.
16600 archive_cmds=$lt_archive_cmds_F77
16601 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16602 postinstall_cmds=$lt_postinstall_cmds
16603 postuninstall_cmds=$lt_postuninstall_cmds
16604
16605 # Commands used to build a loadable module (assumed same as above if empty)
16606 module_cmds=$lt_module_cmds_F77
16607 module_expsym_cmds=$lt_module_expsym_cmds_F77
16608
16609 # Commands to strip libraries.
16610 old_striplib=$lt_old_striplib
16611 striplib=$lt_striplib
16612
16613 # Dependencies to place before the objects being linked to create a
16614 # shared library.
16615 predep_objects=$lt_predep_objects_F77
16616
16617 # Dependencies to place after the objects being linked to create a
16618 # shared library.
16619 postdep_objects=$lt_postdep_objects_F77
16620
16621 # Dependencies to place before the objects being linked to create a
16622 # shared library.
16623 predeps=$lt_predeps_F77
16624
16625 # Dependencies to place after the objects being linked to create a
16626 # shared library.
16627 postdeps=$lt_postdeps_F77
16628
16629 # The library search path used internally by the compiler when linking
16630 # a shared library.
16631 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16632
16633 # Method to check whether dependent libraries are shared objects.
16634 deplibs_check_method=$lt_deplibs_check_method
16635
16636 # Command to use when deplibs_check_method == file_magic.
16637 file_magic_cmd=$lt_file_magic_cmd
16638
16639 # Flag that allows shared libraries with undefined symbols to be built.
16640 allow_undefined_flag=$lt_allow_undefined_flag_F77
16641
16642 # Flag that forces no undefined symbols.
16643 no_undefined_flag=$lt_no_undefined_flag_F77
16644
16645 # Commands used to finish a libtool library installation in a directory.
16646 finish_cmds=$lt_finish_cmds
16647
16648 # Same as above, but a single script fragment to be evaled but not shown.
16649 finish_eval=$lt_finish_eval
16650
16651 # Take the output of nm and produce a listing of raw symbols and C names.
16652 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16653
16654 # Transform the output of nm in a proper C declaration
16655 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16656
16657 # Transform the output of nm in a C name address pair
16658 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16659
16660 # This is the shared library runtime path variable.
16661 runpath_var=$runpath_var
16662
16663 # This is the shared library path variable.
16664 shlibpath_var=$shlibpath_var
16665
16666 # Is shlibpath searched before the hard-coded library search path?
16667 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16668
16669 # How to hardcode a shared library path into an executable.
16670 hardcode_action=$hardcode_action_F77
16671
16672 # Whether we should hardcode library paths into libraries.
16673 hardcode_into_libs=$hardcode_into_libs
16674
16675 # Flag to hardcode \$libdir into a binary during linking.
16676 # This must work even if \$libdir does not exist.
16677 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16678
16679 # If ld is used when linking, flag to hardcode \$libdir into
16680 # a binary during linking. This must work even if \$libdir does
16681 # not exist.
16682 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16683
16684 # Whether we need a single -rpath flag with a separated argument.
16685 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16686
16687 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16688 # resulting binary.
16689 hardcode_direct=$hardcode_direct_F77
16690
16691 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16692 # resulting binary.
16693 hardcode_minus_L=$hardcode_minus_L_F77
16694
16695 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16696 # the resulting binary.
16697 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16698
16699 # Set to yes if building a shared library automatically hardcodes DIR into the library
16700 # and all subsequent libraries and executables linked against it.
16701 hardcode_automatic=$hardcode_automatic_F77
16702
16703 # Variables whose values should be saved in libtool wrapper scripts and
16704 # restored at relink time.
16705 variables_saved_for_relink="$variables_saved_for_relink"
16706
16707 # Whether libtool must link a program against all its dependency libraries.
16708 link_all_deplibs=$link_all_deplibs_F77
16709
16710 # Compile-time system search path for libraries
16711 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16712
16713 # Run-time system search path for libraries
16714 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16715
16716 # Fix the shell variable \$srcfile for the compiler.
16717 fix_srcfile_path="$fix_srcfile_path_F77"
16718
16719 # Set to yes if exported symbols are required.
16720 always_export_symbols=$always_export_symbols_F77
16721
16722 # The commands to list exported symbols.
16723 export_symbols_cmds=$lt_export_symbols_cmds_F77
16724
16725 # The commands to extract the exported symbol list from a shared archive.
16726 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16727
16728 # Symbols that should not be listed in the preloaded symbols.
16729 exclude_expsyms=$lt_exclude_expsyms_F77
16730
16731 # Symbols that must always be exported.
16732 include_expsyms=$lt_include_expsyms_F77
16733
16734 # ### END LIBTOOL TAG CONFIG: $tagname
16735
16736 __EOF__
16737
16738
16739 else
16740 # If there is no Makefile yet, we rely on a make rule to execute
16741 # `config.status --recheck' to rerun these tests and create the
16742 # libtool script then.
16743 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16744 if test -f "$ltmain_in"; then
16745 test -f Makefile && make "$ltmain"
16746 fi
16747 fi
16748
16749
16750 ac_ext=c
16751 ac_cpp='$CPP $CPPFLAGS'
16752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16755
16756 CC="$lt_save_CC"
16757
16758 else
16759 tagname=""
16760 fi
16761 ;;
16762
16763 GCJ)
16764 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16765
16766
16767 # Source file extension for Java test sources.
16768 ac_ext=java
16769
16770 # Object file extension for compiled Java test sources.
16771 objext=o
16772 objext_GCJ=$objext
16773
16774 # Code to be used in simple compile tests
16775 lt_simple_compile_test_code="class foo {}\n"
16776
16777 # Code to be used in simple link tests
16778 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16779
16780 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16781
16782 # If no C compiler was specified, use CC.
16783 LTCC=${LTCC-"$CC"}
16784
16785 # If no C compiler flags were specified, use CFLAGS.
16786 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16787
16788 # Allow CC to be a program name with arguments.
16789 compiler=$CC
16790
16791
16792 # save warnings/boilerplate of simple test code
16793 ac_outfile=conftest.$ac_objext
16794 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16795 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16796 _lt_compiler_boilerplate=`cat conftest.err`
16797 $rm conftest*
16798
16799 ac_outfile=conftest.$ac_objext
16800 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16801 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16802 _lt_linker_boilerplate=`cat conftest.err`
16803 $rm conftest*
16804
16805
16806 # Allow CC to be a program name with arguments.
16807 lt_save_CC="$CC"
16808 CC=${GCJ-"gcj"}
16809 compiler=$CC
16810 compiler_GCJ=$CC
16811 for cc_temp in $compiler""; do
16812 case $cc_temp in
16813 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16814 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16815 \-*) ;;
16816 *) break;;
16817 esac
16818 done
16819 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16820
16821
16822 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16823 archive_cmds_need_lc_GCJ=no
16824
16825 old_archive_cmds_GCJ=$old_archive_cmds
16826
16827
16828 lt_prog_compiler_no_builtin_flag_GCJ=
16829
16830 if test "$GCC" = yes; then
16831 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16832
16833
16834 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16835 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16836 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16837 echo $ECHO_N "(cached) $ECHO_C" >&6
16838 else
16839 lt_cv_prog_compiler_rtti_exceptions=no
16840 ac_outfile=conftest.$ac_objext
16841 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16842 lt_compiler_flag="-fno-rtti -fno-exceptions"
16843 # Insert the option either (1) after the last *FLAGS variable, or
16844 # (2) before a word containing "conftest.", or (3) at the end.
16845 # Note that $ac_compile itself does not contain backslashes and begins
16846 # with a dollar sign (not a hyphen), so the echo should work correctly.
16847 # The option is referenced via a variable to avoid confusing sed.
16848 lt_compile=`echo "$ac_compile" | $SED \
16849 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16850 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16851 -e 's:$: $lt_compiler_flag:'`
16852 (eval echo "\"\$as_me:16852: $lt_compile\"" >&5)
16853 (eval "$lt_compile" 2>conftest.err)
16854 ac_status=$?
16855 cat conftest.err >&5
16856 echo "$as_me:16856: \$? = $ac_status" >&5
16857 if (exit $ac_status) && test -s "$ac_outfile"; then
16858 # The compiler can only warn and ignore the option if not recognized
16859 # So say no if there are warnings other than the usual output.
16860 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16861 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16862 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16863 lt_cv_prog_compiler_rtti_exceptions=yes
16864 fi
16865 fi
16866 $rm conftest*
16867
16868 fi
16869 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16870 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16871
16872 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16873 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16874 else
16875 :
16876 fi
16877
16878 fi
16879
16880 lt_prog_compiler_wl_GCJ=
16881 lt_prog_compiler_pic_GCJ=
16882 lt_prog_compiler_static_GCJ=
16883
16884 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16885 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16886
16887 if test "$GCC" = yes; then
16888 lt_prog_compiler_wl_GCJ='-Wl,'
16889 lt_prog_compiler_static_GCJ='-static'
16890
16891 case $host_os in
16892 aix*)
16893 # All AIX code is PIC.
16894 if test "$host_cpu" = ia64; then
16895 # AIX 5 now supports IA64 processor
16896 lt_prog_compiler_static_GCJ='-Bstatic'
16897 fi
16898 ;;
16899
16900 amigaos*)
16901 # FIXME: we need at least 68020 code to build shared libraries, but
16902 # adding the `-m68020' flag to GCC prevents building anything better,
16903 # like `-m68040'.
16904 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16905 ;;
16906
16907 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16908 # PIC is the default for these OSes.
16909 ;;
16910
16911 mingw* | pw32* | os2*)
16912 # This hack is so that the source file can tell whether it is being
16913 # built for inclusion in a dll (and should export symbols for example).
16914 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16915 ;;
16916
16917 darwin* | rhapsody*)
16918 # PIC is the default on this platform
16919 # Common symbols not allowed in MH_DYLIB files
16920 lt_prog_compiler_pic_GCJ='-fno-common'
16921 ;;
16922
16923 interix3*)
16924 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16925 # Instead, we relocate shared libraries at runtime.
16926 ;;
16927
16928 msdosdjgpp*)
16929 # Just because we use GCC doesn't mean we suddenly get shared libraries
16930 # on systems that don't support them.
16931 lt_prog_compiler_can_build_shared_GCJ=no
16932 enable_shared=no
16933 ;;
16934
16935 sysv4*MP*)
16936 if test -d /usr/nec; then
16937 lt_prog_compiler_pic_GCJ=-Kconform_pic
16938 fi
16939 ;;
16940
16941 hpux*)
16942 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16943 # not for PA HP-UX.
16944 case $host_cpu in
16945 hppa*64*|ia64*)
16946 # +Z the default
16947 ;;
16948 *)
16949 lt_prog_compiler_pic_GCJ='-fPIC'
16950 ;;
16951 esac
16952 ;;
16953
16954 *)
16955 lt_prog_compiler_pic_GCJ='-fPIC'
16956 ;;
16957 esac
16958 else
16959 # PORTME Check for flag to pass linker flags through the system compiler.
16960 case $host_os in
16961 aix*)
16962 lt_prog_compiler_wl_GCJ='-Wl,'
16963 if test "$host_cpu" = ia64; then
16964 # AIX 5 now supports IA64 processor
16965 lt_prog_compiler_static_GCJ='-Bstatic'
16966 else
16967 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16968 fi
16969 ;;
16970 darwin*)
16971 # PIC is the default on this platform
16972 # Common symbols not allowed in MH_DYLIB files
16973 case $cc_basename in
16974 xlc*)
16975 lt_prog_compiler_pic_GCJ='-qnocommon'
16976 lt_prog_compiler_wl_GCJ='-Wl,'
16977 ;;
16978 esac
16979 ;;
16980
16981 mingw* | pw32* | os2*)
16982 # This hack is so that the source file can tell whether it is being
16983 # built for inclusion in a dll (and should export symbols for example).
16984 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16985 ;;
16986
16987 hpux9* | hpux10* | hpux11*)
16988 lt_prog_compiler_wl_GCJ='-Wl,'
16989 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16990 # not for PA HP-UX.
16991 case $host_cpu in
16992 hppa*64*|ia64*)
16993 # +Z the default
16994 ;;
16995 *)
16996 lt_prog_compiler_pic_GCJ='+Z'
16997 ;;
16998 esac
16999 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17000 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17001 ;;
17002
17003 irix5* | irix6* | nonstopux*)
17004 lt_prog_compiler_wl_GCJ='-Wl,'
17005 # PIC (with -KPIC) is the default.
17006 lt_prog_compiler_static_GCJ='-non_shared'
17007 ;;
17008
17009 newsos6)
17010 lt_prog_compiler_pic_GCJ='-KPIC'
17011 lt_prog_compiler_static_GCJ='-Bstatic'
17012 ;;
17013
17014 linux*)
17015 case $cc_basename in
17016 icc* | ecc*)
17017 lt_prog_compiler_wl_GCJ='-Wl,'
17018 lt_prog_compiler_pic_GCJ='-KPIC'
17019 lt_prog_compiler_static_GCJ='-static'
17020 ;;
17021 pgcc* | pgf77* | pgf90* | pgf95*)
17022 # Portland Group compilers (*not* the Pentium gcc compiler,
17023 # which looks to be a dead project)
17024 lt_prog_compiler_wl_GCJ='-Wl,'
17025 lt_prog_compiler_pic_GCJ='-fpic'
17026 lt_prog_compiler_static_GCJ='-Bstatic'
17027 ;;
17028 ccc*)
17029 lt_prog_compiler_wl_GCJ='-Wl,'
17030 # All Alpha code is PIC.
17031 lt_prog_compiler_static_GCJ='-non_shared'
17032 ;;
17033 esac
17034 ;;
17035
17036 osf3* | osf4* | osf5*)
17037 lt_prog_compiler_wl_GCJ='-Wl,'
17038 # All OSF/1 code is PIC.
17039 lt_prog_compiler_static_GCJ='-non_shared'
17040 ;;
17041
17042 solaris*)
17043 lt_prog_compiler_pic_GCJ='-KPIC'
17044 lt_prog_compiler_static_GCJ='-Bstatic'
17045 case $cc_basename in
17046 f77* | f90* | f95*)
17047 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17048 *)
17049 lt_prog_compiler_wl_GCJ='-Wl,';;
17050 esac
17051 ;;
17052
17053 sunos4*)
17054 lt_prog_compiler_wl_GCJ='-Qoption ld '
17055 lt_prog_compiler_pic_GCJ='-PIC'
17056 lt_prog_compiler_static_GCJ='-Bstatic'
17057 ;;
17058
17059 sysv4 | sysv4.2uw2* | sysv4.3*)
17060 lt_prog_compiler_wl_GCJ='-Wl,'
17061 lt_prog_compiler_pic_GCJ='-KPIC'
17062 lt_prog_compiler_static_GCJ='-Bstatic'
17063 ;;
17064
17065 sysv4*MP*)
17066 if test -d /usr/nec ;then
17067 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17068 lt_prog_compiler_static_GCJ='-Bstatic'
17069 fi
17070 ;;
17071
17072 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17073 lt_prog_compiler_wl_GCJ='-Wl,'
17074 lt_prog_compiler_pic_GCJ='-KPIC'
17075 lt_prog_compiler_static_GCJ='-Bstatic'
17076 ;;
17077
17078 unicos*)
17079 lt_prog_compiler_wl_GCJ='-Wl,'
17080 lt_prog_compiler_can_build_shared_GCJ=no
17081 ;;
17082
17083 uts4*)
17084 lt_prog_compiler_pic_GCJ='-pic'
17085 lt_prog_compiler_static_GCJ='-Bstatic'
17086 ;;
17087
17088 *)
17089 lt_prog_compiler_can_build_shared_GCJ=no
17090 ;;
17091 esac
17092 fi
17093
17094 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17095 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17096
17097 #
17098 # Check to make sure the PIC flag actually works.
17099 #
17100 if test -n "$lt_prog_compiler_pic_GCJ"; then
17101
17102 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17103 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17104 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17105 echo $ECHO_N "(cached) $ECHO_C" >&6
17106 else
17107 lt_prog_compiler_pic_works_GCJ=no
17108 ac_outfile=conftest.$ac_objext
17109 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17110 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17111 # Insert the option either (1) after the last *FLAGS variable, or
17112 # (2) before a word containing "conftest.", or (3) at the end.
17113 # Note that $ac_compile itself does not contain backslashes and begins
17114 # with a dollar sign (not a hyphen), so the echo should work correctly.
17115 # The option is referenced via a variable to avoid confusing sed.
17116 lt_compile=`echo "$ac_compile" | $SED \
17117 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17118 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17119 -e 's:$: $lt_compiler_flag:'`
17120 (eval echo "\"\$as_me:17120: $lt_compile\"" >&5)
17121 (eval "$lt_compile" 2>conftest.err)
17122 ac_status=$?
17123 cat conftest.err >&5
17124 echo "$as_me:17124: \$? = $ac_status" >&5
17125 if (exit $ac_status) && test -s "$ac_outfile"; then
17126 # The compiler can only warn and ignore the option if not recognized
17127 # So say no if there are warnings other than the usual output.
17128 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17129 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17130 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17131 lt_prog_compiler_pic_works_GCJ=yes
17132 fi
17133 fi
17134 $rm conftest*
17135
17136 fi
17137 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17138 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17139
17140 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17141 case $lt_prog_compiler_pic_GCJ in
17142 "" | " "*) ;;
17143 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17144 esac
17145 else
17146 lt_prog_compiler_pic_GCJ=
17147 lt_prog_compiler_can_build_shared_GCJ=no
17148 fi
17149
17150 fi
17151 case $host_os in
17152 # For platforms which do not support PIC, -DPIC is meaningless:
17153 *djgpp*)
17154 lt_prog_compiler_pic_GCJ=
17155 ;;
17156 *)
17157 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17158 ;;
17159 esac
17160
17161 #
17162 # Check to make sure the static flag actually works.
17163 #
17164 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17165 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17166 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17167 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17168 echo $ECHO_N "(cached) $ECHO_C" >&6
17169 else
17170 lt_prog_compiler_static_works_GCJ=no
17171 save_LDFLAGS="$LDFLAGS"
17172 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17173 printf "$lt_simple_link_test_code" > conftest.$ac_ext
17174 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17175 # The linker can only warn and ignore the option if not recognized
17176 # So say no if there are warnings
17177 if test -s conftest.err; then
17178 # Append any errors to the config.log.
17179 cat conftest.err 1>&5
17180 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17181 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17182 if diff conftest.exp conftest.er2 >/dev/null; then
17183 lt_prog_compiler_static_works_GCJ=yes
17184 fi
17185 else
17186 lt_prog_compiler_static_works_GCJ=yes
17187 fi
17188 fi
17189 $rm conftest*
17190 LDFLAGS="$save_LDFLAGS"
17191
17192 fi
17193 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17194 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17195
17196 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17197 :
17198 else
17199 lt_prog_compiler_static_GCJ=
17200 fi
17201
17202
17203 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17204 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17205 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17206 echo $ECHO_N "(cached) $ECHO_C" >&6
17207 else
17208 lt_cv_prog_compiler_c_o_GCJ=no
17209 $rm -r conftest 2>/dev/null
17210 mkdir conftest
17211 cd conftest
17212 mkdir out
17213 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17214
17215 lt_compiler_flag="-o out/conftest2.$ac_objext"
17216 # Insert the option either (1) after the last *FLAGS variable, or
17217 # (2) before a word containing "conftest.", or (3) at the end.
17218 # Note that $ac_compile itself does not contain backslashes and begins
17219 # with a dollar sign (not a hyphen), so the echo should work correctly.
17220 lt_compile=`echo "$ac_compile" | $SED \
17221 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17222 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17223 -e 's:$: $lt_compiler_flag:'`
17224 (eval echo "\"\$as_me:17224: $lt_compile\"" >&5)
17225 (eval "$lt_compile" 2>out/conftest.err)
17226 ac_status=$?
17227 cat out/conftest.err >&5
17228 echo "$as_me:17228: \$? = $ac_status" >&5
17229 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17230 then
17231 # The compiler can only warn and ignore the option if not recognized
17232 # So say no if there are warnings
17233 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17234 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17235 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17236 lt_cv_prog_compiler_c_o_GCJ=yes
17237 fi
17238 fi
17239 chmod u+w . 2>&5
17240 $rm conftest*
17241 # SGI C++ compiler will create directory out/ii_files/ for
17242 # template instantiation
17243 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17244 $rm out/* && rmdir out
17245 cd ..
17246 rmdir conftest
17247 $rm conftest*
17248
17249 fi
17250 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17251 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17252
17253
17254 hard_links="nottested"
17255 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17256 # do not overwrite the value of need_locks provided by the user
17257 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17258 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17259 hard_links=yes
17260 $rm conftest*
17261 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17262 touch conftest.a
17263 ln conftest.a conftest.b 2>&5 || hard_links=no
17264 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17265 { echo "$as_me:$LINENO: result: $hard_links" >&5
17266 echo "${ECHO_T}$hard_links" >&6; }
17267 if test "$hard_links" = no; then
17268 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17269 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17270 need_locks=warn
17271 fi
17272 else
17273 need_locks=no
17274 fi
17275
17276 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17277 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17278
17279 runpath_var=
17280 allow_undefined_flag_GCJ=
17281 enable_shared_with_static_runtimes_GCJ=no
17282 archive_cmds_GCJ=
17283 archive_expsym_cmds_GCJ=
17284 old_archive_From_new_cmds_GCJ=
17285 old_archive_from_expsyms_cmds_GCJ=
17286 export_dynamic_flag_spec_GCJ=
17287 whole_archive_flag_spec_GCJ=
17288 thread_safe_flag_spec_GCJ=
17289 hardcode_libdir_flag_spec_GCJ=
17290 hardcode_libdir_flag_spec_ld_GCJ=
17291 hardcode_libdir_separator_GCJ=
17292 hardcode_direct_GCJ=no
17293 hardcode_minus_L_GCJ=no
17294 hardcode_shlibpath_var_GCJ=unsupported
17295 link_all_deplibs_GCJ=unknown
17296 hardcode_automatic_GCJ=no
17297 module_cmds_GCJ=
17298 module_expsym_cmds_GCJ=
17299 always_export_symbols_GCJ=no
17300 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17301 # include_expsyms should be a list of space-separated symbols to be *always*
17302 # included in the symbol list
17303 include_expsyms_GCJ=
17304 # exclude_expsyms can be an extended regexp of symbols to exclude
17305 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17306 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17307 # as well as any symbol that contains `d'.
17308 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17309 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17310 # platforms (ab)use it in PIC code, but their linkers get confused if
17311 # the symbol is explicitly referenced. Since portable code cannot
17312 # rely on this symbol name, it's probably fine to never include it in
17313 # preloaded symbol tables.
17314 extract_expsyms_cmds=
17315 # Just being paranoid about ensuring that cc_basename is set.
17316 for cc_temp in $compiler""; do
17317 case $cc_temp in
17318 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17319 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17320 \-*) ;;
17321 *) break;;
17322 esac
17323 done
17324 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17325
17326 case $host_os in
17327 cygwin* | mingw* | pw32*)
17328 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17329 # When not using gcc, we currently assume that we are using
17330 # Microsoft Visual C++.
17331 if test "$GCC" != yes; then
17332 with_gnu_ld=no
17333 fi
17334 ;;
17335 interix*)
17336 # we just hope/assume this is gcc and not c89 (= MSVC++)
17337 with_gnu_ld=yes
17338 ;;
17339 openbsd*)
17340 with_gnu_ld=no
17341 ;;
17342 esac
17343
17344 ld_shlibs_GCJ=yes
17345 if test "$with_gnu_ld" = yes; then
17346 # If archive_cmds runs LD, not CC, wlarc should be empty
17347 wlarc='${wl}'
17348
17349 # Set some defaults for GNU ld with shared library support. These
17350 # are reset later if shared libraries are not supported. Putting them
17351 # here allows them to be overridden if necessary.
17352 runpath_var=LD_RUN_PATH
17353 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17354 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17355 # ancient GNU ld didn't support --whole-archive et. al.
17356 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17357 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17358 else
17359 whole_archive_flag_spec_GCJ=
17360 fi
17361 supports_anon_versioning=no
17362 case `$LD -v 2>/dev/null` in
17363 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17364 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17365 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17366 *\ 2.11.*) ;; # other 2.11 versions
17367 *) supports_anon_versioning=yes ;;
17368 esac
17369
17370 # See if GNU ld supports shared libraries.
17371 case $host_os in
17372 aix3* | aix4* | aix5*)
17373 # On AIX/PPC, the GNU linker is very broken
17374 if test "$host_cpu" != ia64; then
17375 ld_shlibs_GCJ=no
17376 cat <<EOF 1>&2
17377
17378 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17379 *** to be unable to reliably create shared libraries on AIX.
17380 *** Therefore, libtool is disabling shared libraries support. If you
17381 *** really care for shared libraries, you may want to modify your PATH
17382 *** so that a non-GNU linker is found, and then restart.
17383
17384 EOF
17385 fi
17386 ;;
17387
17388 amigaos*)
17389 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)'
17390 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17391 hardcode_minus_L_GCJ=yes
17392
17393 # Samuel A. Falvo II <[email protected]> reports
17394 # that the semantics of dynamic libraries on AmigaOS, at least up
17395 # to version 4, is to share data among multiple programs linked
17396 # with the same dynamic library. Since this doesn't match the
17397 # behavior of shared libraries on other platforms, we can't use
17398 # them.
17399 ld_shlibs_GCJ=no
17400 ;;
17401
17402 beos*)
17403 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17404 allow_undefined_flag_GCJ=unsupported
17405 # Joseph Beckenbach <[email protected]> says some releases of gcc
17406 # support --undefined. This deserves some investigation. FIXME
17407 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17408 else
17409 ld_shlibs_GCJ=no
17410 fi
17411 ;;
17412
17413 cygwin* | mingw* | pw32*)
17414 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17415 # as there is no search path for DLLs.
17416 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17417 allow_undefined_flag_GCJ=unsupported
17418 always_export_symbols_GCJ=no
17419 enable_shared_with_static_runtimes_GCJ=yes
17420 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17421
17422 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17423 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17424 # If the export-symbols file already is a .def file (1st line
17425 # is EXPORTS), use it as is; otherwise, prepend...
17426 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17427 cp $export_symbols $output_objdir/$soname.def;
17428 else
17429 echo EXPORTS > $output_objdir/$soname.def;
17430 cat $export_symbols >> $output_objdir/$soname.def;
17431 fi~
17432 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17433 else
17434 ld_shlibs_GCJ=no
17435 fi
17436 ;;
17437
17438 interix3*)
17439 hardcode_direct_GCJ=no
17440 hardcode_shlibpath_var_GCJ=no
17441 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17442 export_dynamic_flag_spec_GCJ='${wl}-E'
17443 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17444 # Instead, shared libraries are loaded at an image base (0x10000000 by
17445 # default) and relocated if they conflict, which is a slow very memory
17446 # consuming and fragmenting process. To avoid this, we pick a random,
17447 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17448 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17449 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'
17450 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'
17451 ;;
17452
17453 linux*)
17454 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17455 tmp_addflag=
17456 case $cc_basename,$host_cpu in
17457 pgcc*) # Portland Group C compiler
17458 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'
17459 tmp_addflag=' $pic_flag'
17460 ;;
17461 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17462 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'
17463 tmp_addflag=' $pic_flag -Mnomain' ;;
17464 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17465 tmp_addflag=' -i_dynamic' ;;
17466 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17467 tmp_addflag=' -i_dynamic -nofor_main' ;;
17468 ifc* | ifort*) # Intel Fortran compiler
17469 tmp_addflag=' -nofor_main' ;;
17470 esac
17471 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17472
17473 if test $supports_anon_versioning = yes; then
17474 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17475 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17476 $echo "local: *; };" >> $output_objdir/$libname.ver~
17477 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17478 fi
17479 else
17480 ld_shlibs_GCJ=no
17481 fi
17482 ;;
17483
17484 netbsd*)
17485 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17486 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17487 wlarc=
17488 else
17489 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17490 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17491 fi
17492 ;;
17493
17494 solaris*)
17495 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17496 ld_shlibs_GCJ=no
17497 cat <<EOF 1>&2
17498
17499 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17500 *** create shared libraries on Solaris systems. Therefore, libtool
17501 *** is disabling shared libraries support. We urge you to upgrade GNU
17502 *** binutils to release 2.9.1 or newer. Another option is to modify
17503 *** your PATH or compiler configuration so that the native linker is
17504 *** used, and then restart.
17505
17506 EOF
17507 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17508 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17509 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17510 else
17511 ld_shlibs_GCJ=no
17512 fi
17513 ;;
17514
17515 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17516 case `$LD -v 2>&1` in
17517 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17518 ld_shlibs_GCJ=no
17519 cat <<_LT_EOF 1>&2
17520
17521 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17522 *** reliably create shared libraries on SCO systems. Therefore, libtool
17523 *** is disabling shared libraries support. We urge you to upgrade GNU
17524 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17525 *** your PATH or compiler configuration so that the native linker is
17526 *** used, and then restart.
17527
17528 _LT_EOF
17529 ;;
17530 *)
17531 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17532 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17533 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17534 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17535 else
17536 ld_shlibs_GCJ=no
17537 fi
17538 ;;
17539 esac
17540 ;;
17541
17542 sunos4*)
17543 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17544 wlarc=
17545 hardcode_direct_GCJ=yes
17546 hardcode_shlibpath_var_GCJ=no
17547 ;;
17548
17549 *)
17550 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17551 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17552 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17553 else
17554 ld_shlibs_GCJ=no
17555 fi
17556 ;;
17557 esac
17558
17559 if test "$ld_shlibs_GCJ" = no; then
17560 runpath_var=
17561 hardcode_libdir_flag_spec_GCJ=
17562 export_dynamic_flag_spec_GCJ=
17563 whole_archive_flag_spec_GCJ=
17564 fi
17565 else
17566 # PORTME fill in a description of your system's linker (not GNU ld)
17567 case $host_os in
17568 aix3*)
17569 allow_undefined_flag_GCJ=unsupported
17570 always_export_symbols_GCJ=yes
17571 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'
17572 # Note: this linker hardcodes the directories in LIBPATH if there
17573 # are no directories specified by -L.
17574 hardcode_minus_L_GCJ=yes
17575 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17576 # Neither direct hardcoding nor static linking is supported with a
17577 # broken collect2.
17578 hardcode_direct_GCJ=unsupported
17579 fi
17580 ;;
17581
17582 aix4* | aix5*)
17583 if test "$host_cpu" = ia64; then
17584 # On IA64, the linker does run time linking by default, so we don't
17585 # have to do anything special.
17586 aix_use_runtimelinking=no
17587 exp_sym_flag='-Bexport'
17588 no_entry_flag=""
17589 else
17590 # If we're using GNU nm, then we don't want the "-C" option.
17591 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17592 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17593 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'
17594 else
17595 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'
17596 fi
17597 aix_use_runtimelinking=no
17598
17599 # Test if we are trying to use run time linking or normal
17600 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17601 # need to do runtime linking.
17602 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17603 for ld_flag in $LDFLAGS; do
17604 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17605 aix_use_runtimelinking=yes
17606 break
17607 fi
17608 done
17609 ;;
17610 esac
17611
17612 exp_sym_flag='-bexport'
17613 no_entry_flag='-bnoentry'
17614 fi
17615
17616 # When large executables or shared objects are built, AIX ld can
17617 # have problems creating the table of contents. If linking a library
17618 # or program results in "error TOC overflow" add -mminimal-toc to
17619 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17620 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17621
17622 archive_cmds_GCJ=''
17623 hardcode_direct_GCJ=yes
17624 hardcode_libdir_separator_GCJ=':'
17625 link_all_deplibs_GCJ=yes
17626
17627 if test "$GCC" = yes; then
17628 case $host_os in aix4.[012]|aix4.[012].*)
17629 # We only want to do this on AIX 4.2 and lower, the check
17630 # below for broken collect2 doesn't work under 4.3+
17631 collect2name=`${CC} -print-prog-name=collect2`
17632 if test -f "$collect2name" && \
17633 strings "$collect2name" | grep resolve_lib_name >/dev/null
17634 then
17635 # We have reworked collect2
17636 hardcode_direct_GCJ=yes
17637 else
17638 # We have old collect2
17639 hardcode_direct_GCJ=unsupported
17640 # It fails to find uninstalled libraries when the uninstalled
17641 # path is not listed in the libpath. Setting hardcode_minus_L
17642 # to unsupported forces relinking
17643 hardcode_minus_L_GCJ=yes
17644 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17645 hardcode_libdir_separator_GCJ=
17646 fi
17647 ;;
17648 esac
17649 shared_flag='-shared'
17650 if test "$aix_use_runtimelinking" = yes; then
17651 shared_flag="$shared_flag "'${wl}-G'
17652 fi
17653 else
17654 # not using gcc
17655 if test "$host_cpu" = ia64; then
17656 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17657 # chokes on -Wl,-G. The following line is correct:
17658 shared_flag='-G'
17659 else
17660 if test "$aix_use_runtimelinking" = yes; then
17661 shared_flag='${wl}-G'
17662 else
17663 shared_flag='${wl}-bM:SRE'
17664 fi
17665 fi
17666 fi
17667
17668 # It seems that -bexpall does not export symbols beginning with
17669 # underscore (_), so it is better to generate a list of symbols to export.
17670 always_export_symbols_GCJ=yes
17671 if test "$aix_use_runtimelinking" = yes; then
17672 # Warning - without using the other runtime loading flags (-brtl),
17673 # -berok will link without error, but may produce a broken library.
17674 allow_undefined_flag_GCJ='-berok'
17675 # Determine the default libpath from the value encoded in an empty executable.
17676 cat >conftest.$ac_ext <<_ACEOF
17677 /* confdefs.h. */
17678 _ACEOF
17679 cat confdefs.h >>conftest.$ac_ext
17680 cat >>conftest.$ac_ext <<_ACEOF
17681 /* end confdefs.h. */
17682
17683 int
17684 main ()
17685 {
17686
17687 ;
17688 return 0;
17689 }
17690 _ACEOF
17691 rm -f conftest.$ac_objext conftest$ac_exeext
17692 if { (ac_try="$ac_link"
17693 case "(($ac_try" in
17694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17695 *) ac_try_echo=$ac_try;;
17696 esac
17697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17698 (eval "$ac_link") 2>conftest.er1
17699 ac_status=$?
17700 grep -v '^ *+' conftest.er1 >conftest.err
17701 rm -f conftest.er1
17702 cat conftest.err >&5
17703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704 (exit $ac_status); } &&
17705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17706 { (case "(($ac_try" in
17707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17708 *) ac_try_echo=$ac_try;;
17709 esac
17710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17711 (eval "$ac_try") 2>&5
17712 ac_status=$?
17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); }; } &&
17715 { ac_try='test -s conftest$ac_exeext'
17716 { (case "(($ac_try" in
17717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17718 *) ac_try_echo=$ac_try;;
17719 esac
17720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17721 (eval "$ac_try") 2>&5
17722 ac_status=$?
17723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724 (exit $ac_status); }; }; then
17725
17726 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17727 }'`
17728 # Check for a 64-bit object if we didn't find anything.
17729 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17730 }'`; fi
17731 else
17732 echo "$as_me: failed program was:" >&5
17733 sed 's/^/| /' conftest.$ac_ext >&5
17734
17735
17736 fi
17737
17738 rm -f core conftest.err conftest.$ac_objext \
17739 conftest$ac_exeext conftest.$ac_ext
17740 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17741
17742 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17743 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"
17744 else
17745 if test "$host_cpu" = ia64; then
17746 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17747 allow_undefined_flag_GCJ="-z nodefs"
17748 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"
17749 else
17750 # Determine the default libpath from the value encoded in an empty executable.
17751 cat >conftest.$ac_ext <<_ACEOF
17752 /* confdefs.h. */
17753 _ACEOF
17754 cat confdefs.h >>conftest.$ac_ext
17755 cat >>conftest.$ac_ext <<_ACEOF
17756 /* end confdefs.h. */
17757
17758 int
17759 main ()
17760 {
17761
17762 ;
17763 return 0;
17764 }
17765 _ACEOF
17766 rm -f conftest.$ac_objext conftest$ac_exeext
17767 if { (ac_try="$ac_link"
17768 case "(($ac_try" in
17769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17770 *) ac_try_echo=$ac_try;;
17771 esac
17772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17773 (eval "$ac_link") 2>conftest.er1
17774 ac_status=$?
17775 grep -v '^ *+' conftest.er1 >conftest.err
17776 rm -f conftest.er1
17777 cat conftest.err >&5
17778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779 (exit $ac_status); } &&
17780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17781 { (case "(($ac_try" in
17782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17783 *) ac_try_echo=$ac_try;;
17784 esac
17785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17786 (eval "$ac_try") 2>&5
17787 ac_status=$?
17788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17789 (exit $ac_status); }; } &&
17790 { ac_try='test -s conftest$ac_exeext'
17791 { (case "(($ac_try" in
17792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17793 *) ac_try_echo=$ac_try;;
17794 esac
17795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17796 (eval "$ac_try") 2>&5
17797 ac_status=$?
17798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17799 (exit $ac_status); }; }; then
17800
17801 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17802 }'`
17803 # Check for a 64-bit object if we didn't find anything.
17804 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17805 }'`; fi
17806 else
17807 echo "$as_me: failed program was:" >&5
17808 sed 's/^/| /' conftest.$ac_ext >&5
17809
17810
17811 fi
17812
17813 rm -f core conftest.err conftest.$ac_objext \
17814 conftest$ac_exeext conftest.$ac_ext
17815 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17816
17817 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17818 # Warning - without using the other run time loading flags,
17819 # -berok will link without error, but may produce a broken library.
17820 no_undefined_flag_GCJ=' ${wl}-bernotok'
17821 allow_undefined_flag_GCJ=' ${wl}-berok'
17822 # Exported symbols can be pulled into shared objects from archives
17823 whole_archive_flag_spec_GCJ='$convenience'
17824 archive_cmds_need_lc_GCJ=yes
17825 # This is similar to how AIX traditionally builds its shared libraries.
17826 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'
17827 fi
17828 fi
17829 ;;
17830
17831 amigaos*)
17832 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)'
17833 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17834 hardcode_minus_L_GCJ=yes
17835 # see comment about different semantics on the GNU ld section
17836 ld_shlibs_GCJ=no
17837 ;;
17838
17839 bsdi[45]*)
17840 export_dynamic_flag_spec_GCJ=-rdynamic
17841 ;;
17842
17843 cygwin* | mingw* | pw32*)
17844 # When not using gcc, we currently assume that we are using
17845 # Microsoft Visual C++.
17846 # hardcode_libdir_flag_spec is actually meaningless, as there is
17847 # no search path for DLLs.
17848 hardcode_libdir_flag_spec_GCJ=' '
17849 allow_undefined_flag_GCJ=unsupported
17850 # Tell ltmain to make .lib files, not .a files.
17851 libext=lib
17852 # Tell ltmain to make .dll files, not .so files.
17853 shrext_cmds=".dll"
17854 # FIXME: Setting linknames here is a bad hack.
17855 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17856 # The linker will automatically build a .lib file if we build a DLL.
17857 old_archive_From_new_cmds_GCJ='true'
17858 # FIXME: Should let the user specify the lib program.
17859 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17860 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17861 enable_shared_with_static_runtimes_GCJ=yes
17862 ;;
17863
17864 darwin* | rhapsody*)
17865 case $host_os in
17866 rhapsody* | darwin1.[012])
17867 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17868 ;;
17869 *) # Darwin 1.3 on
17870 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17871 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17872 else
17873 case ${MACOSX_DEPLOYMENT_TARGET} in
17874 10.[012])
17875 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17876 ;;
17877 10.*)
17878 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17879 ;;
17880 esac
17881 fi
17882 ;;
17883 esac
17884 archive_cmds_need_lc_GCJ=no
17885 hardcode_direct_GCJ=no
17886 hardcode_automatic_GCJ=yes
17887 hardcode_shlibpath_var_GCJ=unsupported
17888 whole_archive_flag_spec_GCJ=''
17889 link_all_deplibs_GCJ=yes
17890 if test "$GCC" = yes ; then
17891 output_verbose_link_cmd='echo'
17892 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17893 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17894 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17895 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17896 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}'
17897 else
17898 case $cc_basename in
17899 xlc*)
17900 output_verbose_link_cmd='echo'
17901 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17902 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17903 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17904 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17905 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}'
17906 ;;
17907 *)
17908 ld_shlibs_GCJ=no
17909 ;;
17910 esac
17911 fi
17912 ;;
17913
17914 dgux*)
17915 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17916 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17917 hardcode_shlibpath_var_GCJ=no
17918 ;;
17919
17920 freebsd1*)
17921 ld_shlibs_GCJ=no
17922 ;;
17923
17924 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17925 # support. Future versions do this automatically, but an explicit c++rt0.o
17926 # does not break anything, and helps significantly (at the cost of a little
17927 # extra space).
17928 freebsd2.2*)
17929 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17930 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17931 hardcode_direct_GCJ=yes
17932 hardcode_shlibpath_var_GCJ=no
17933 ;;
17934
17935 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17936 freebsd2*)
17937 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17938 hardcode_direct_GCJ=yes
17939 hardcode_minus_L_GCJ=yes
17940 hardcode_shlibpath_var_GCJ=no
17941 ;;
17942
17943 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17944 freebsd* | kfreebsd*-gnu | dragonfly*)
17945 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17946 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17947 hardcode_direct_GCJ=yes
17948 hardcode_shlibpath_var_GCJ=no
17949 ;;
17950
17951 hpux9*)
17952 if test "$GCC" = yes; then
17953 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'
17954 else
17955 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'
17956 fi
17957 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17958 hardcode_libdir_separator_GCJ=:
17959 hardcode_direct_GCJ=yes
17960
17961 # hardcode_minus_L: Not really in the search PATH,
17962 # but as the default location of the library.
17963 hardcode_minus_L_GCJ=yes
17964 export_dynamic_flag_spec_GCJ='${wl}-E'
17965 ;;
17966
17967 hpux10*)
17968 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17969 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17970 else
17971 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17972 fi
17973 if test "$with_gnu_ld" = no; then
17974 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17975 hardcode_libdir_separator_GCJ=:
17976
17977 hardcode_direct_GCJ=yes
17978 export_dynamic_flag_spec_GCJ='${wl}-E'
17979
17980 # hardcode_minus_L: Not really in the search PATH,
17981 # but as the default location of the library.
17982 hardcode_minus_L_GCJ=yes
17983 fi
17984 ;;
17985
17986 hpux11*)
17987 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17988 case $host_cpu in
17989 hppa*64*)
17990 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17991 ;;
17992 ia64*)
17993 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17994 ;;
17995 *)
17996 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17997 ;;
17998 esac
17999 else
18000 case $host_cpu in
18001 hppa*64*)
18002 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18003 ;;
18004 ia64*)
18005 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18006 ;;
18007 *)
18008 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18009 ;;
18010 esac
18011 fi
18012 if test "$with_gnu_ld" = no; then
18013 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18014 hardcode_libdir_separator_GCJ=:
18015
18016 case $host_cpu in
18017 hppa*64*|ia64*)
18018 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18019 hardcode_direct_GCJ=no
18020 hardcode_shlibpath_var_GCJ=no
18021 ;;
18022 *)
18023 hardcode_direct_GCJ=yes
18024 export_dynamic_flag_spec_GCJ='${wl}-E'
18025
18026 # hardcode_minus_L: Not really in the search PATH,
18027 # but as the default location of the library.
18028 hardcode_minus_L_GCJ=yes
18029 ;;
18030 esac
18031 fi
18032 ;;
18033
18034 irix5* | irix6* | nonstopux*)
18035 if test "$GCC" = yes; then
18036 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'
18037 else
18038 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'
18039 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18040 fi
18041 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18042 hardcode_libdir_separator_GCJ=:
18043 link_all_deplibs_GCJ=yes
18044 ;;
18045
18046 netbsd*)
18047 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18048 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18049 else
18050 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18051 fi
18052 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18053 hardcode_direct_GCJ=yes
18054 hardcode_shlibpath_var_GCJ=no
18055 ;;
18056
18057 newsos6)
18058 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18059 hardcode_direct_GCJ=yes
18060 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18061 hardcode_libdir_separator_GCJ=:
18062 hardcode_shlibpath_var_GCJ=no
18063 ;;
18064
18065 openbsd*)
18066 hardcode_direct_GCJ=yes
18067 hardcode_shlibpath_var_GCJ=no
18068 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18069 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18070 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18071 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18072 export_dynamic_flag_spec_GCJ='${wl}-E'
18073 else
18074 case $host_os in
18075 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18076 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18077 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18078 ;;
18079 *)
18080 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18081 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18082 ;;
18083 esac
18084 fi
18085 ;;
18086
18087 os2*)
18088 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18089 hardcode_minus_L_GCJ=yes
18090 allow_undefined_flag_GCJ=unsupported
18091 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'
18092 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18093 ;;
18094
18095 osf3*)
18096 if test "$GCC" = yes; then
18097 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18098 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'
18099 else
18100 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18101 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'
18102 fi
18103 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18104 hardcode_libdir_separator_GCJ=:
18105 ;;
18106
18107 osf4* | osf5*) # as osf3* with the addition of -msym flag
18108 if test "$GCC" = yes; then
18109 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18110 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'
18111 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18112 else
18113 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18114 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'
18115 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~
18116 $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'
18117
18118 # Both c and cxx compiler support -rpath directly
18119 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18120 fi
18121 hardcode_libdir_separator_GCJ=:
18122 ;;
18123
18124 solaris*)
18125 no_undefined_flag_GCJ=' -z text'
18126 if test "$GCC" = yes; then
18127 wlarc='${wl}'
18128 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18129 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18130 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18131 else
18132 wlarc=''
18133 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18134 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18135 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18136 fi
18137 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18138 hardcode_shlibpath_var_GCJ=no
18139 case $host_os in
18140 solaris2.[0-5] | solaris2.[0-5].*) ;;
18141 *)
18142 # The compiler driver will combine linker options so we
18143 # cannot just pass the convience library names through
18144 # without $wl, iff we do not link with $LD.
18145 # Luckily, gcc supports the same syntax we need for Sun Studio.
18146 # Supported since Solaris 2.6 (maybe 2.5.1?)
18147 case $wlarc in
18148 '')
18149 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18150 *)
18151 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
18152 esac ;;
18153 esac
18154 link_all_deplibs_GCJ=yes
18155 ;;
18156
18157 sunos4*)
18158 if test "x$host_vendor" = xsequent; then
18159 # Use $CC to link under sequent, because it throws in some extra .o
18160 # files that make .init and .fini sections work.
18161 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18162 else
18163 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18164 fi
18165 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18166 hardcode_direct_GCJ=yes
18167 hardcode_minus_L_GCJ=yes
18168 hardcode_shlibpath_var_GCJ=no
18169 ;;
18170
18171 sysv4)
18172 case $host_vendor in
18173 sni)
18174 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18175 hardcode_direct_GCJ=yes # is this really true???
18176 ;;
18177 siemens)
18178 ## LD is ld it makes a PLAMLIB
18179 ## CC just makes a GrossModule.
18180 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18181 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18182 hardcode_direct_GCJ=no
18183 ;;
18184 motorola)
18185 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18186 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18187 ;;
18188 esac
18189 runpath_var='LD_RUN_PATH'
18190 hardcode_shlibpath_var_GCJ=no
18191 ;;
18192
18193 sysv4.3*)
18194 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18195 hardcode_shlibpath_var_GCJ=no
18196 export_dynamic_flag_spec_GCJ='-Bexport'
18197 ;;
18198
18199 sysv4*MP*)
18200 if test -d /usr/nec; then
18201 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18202 hardcode_shlibpath_var_GCJ=no
18203 runpath_var=LD_RUN_PATH
18204 hardcode_runpath_var=yes
18205 ld_shlibs_GCJ=yes
18206 fi
18207 ;;
18208
18209 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18210 no_undefined_flag_GCJ='${wl}-z,text'
18211 archive_cmds_need_lc_GCJ=no
18212 hardcode_shlibpath_var_GCJ=no
18213 runpath_var='LD_RUN_PATH'
18214
18215 if test "$GCC" = yes; then
18216 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18217 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18218 else
18219 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18220 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18221 fi
18222 ;;
18223
18224 sysv5* | sco3.2v5* | sco5v6*)
18225 # Note: We can NOT use -z defs as we might desire, because we do not
18226 # link with -lc, and that would cause any symbols used from libc to
18227 # always be unresolved, which means just about no library would
18228 # ever link correctly. If we're not using GNU ld we use -z text
18229 # though, which does catch some bad symbols but isn't as heavy-handed
18230 # as -z defs.
18231 no_undefined_flag_GCJ='${wl}-z,text'
18232 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18233 archive_cmds_need_lc_GCJ=no
18234 hardcode_shlibpath_var_GCJ=no
18235 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18236 hardcode_libdir_separator_GCJ=':'
18237 link_all_deplibs_GCJ=yes
18238 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18239 runpath_var='LD_RUN_PATH'
18240
18241 if test "$GCC" = yes; then
18242 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18243 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18244 else
18245 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18246 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18247 fi
18248 ;;
18249
18250 uts4*)
18251 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18252 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18253 hardcode_shlibpath_var_GCJ=no
18254 ;;
18255
18256 *)
18257 ld_shlibs_GCJ=no
18258 ;;
18259 esac
18260 fi
18261
18262 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18263 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18264 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18265
18266 #
18267 # Do we need to explicitly link libc?
18268 #
18269 case "x$archive_cmds_need_lc_GCJ" in
18270 x|xyes)
18271 # Assume -lc should be added
18272 archive_cmds_need_lc_GCJ=yes
18273
18274 if test "$enable_shared" = yes && test "$GCC" = yes; then
18275 case $archive_cmds_GCJ in
18276 *'~'*)
18277 # FIXME: we may have to deal with multi-command sequences.
18278 ;;
18279 '$CC '*)
18280 # Test whether the compiler implicitly links with -lc since on some
18281 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18282 # to ld, don't add -lc before -lgcc.
18283 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18284 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18285 $rm conftest*
18286 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18287
18288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18289 (eval $ac_compile) 2>&5
18290 ac_status=$?
18291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292 (exit $ac_status); } 2>conftest.err; then
18293 soname=conftest
18294 lib=conftest
18295 libobjs=conftest.$ac_objext
18296 deplibs=
18297 wl=$lt_prog_compiler_wl_GCJ
18298 pic_flag=$lt_prog_compiler_pic_GCJ
18299 compiler_flags=-v
18300 linker_flags=-v
18301 verstring=
18302 output_objdir=.
18303 libname=conftest
18304 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18305 allow_undefined_flag_GCJ=
18306 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18307 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18308 ac_status=$?
18309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18310 (exit $ac_status); }
18311 then
18312 archive_cmds_need_lc_GCJ=no
18313 else
18314 archive_cmds_need_lc_GCJ=yes
18315 fi
18316 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18317 else
18318 cat conftest.err 1>&5
18319 fi
18320 $rm conftest*
18321 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18322 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18323 ;;
18324 esac
18325 fi
18326 ;;
18327 esac
18328
18329 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18330 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18331 library_names_spec=
18332 libname_spec='lib$name'
18333 soname_spec=
18334 shrext_cmds=".so"
18335 postinstall_cmds=
18336 postuninstall_cmds=
18337 finish_cmds=
18338 finish_eval=
18339 shlibpath_var=
18340 shlibpath_overrides_runpath=unknown
18341 version_type=none
18342 dynamic_linker="$host_os ld.so"
18343 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18344 if test "$GCC" = yes; then
18345 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18346 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18347 # if the path contains ";" then we assume it to be the separator
18348 # otherwise default to the standard path separator (i.e. ":") - it is
18349 # assumed that no part of a normal pathname contains ";" but that should
18350 # okay in the real world where ";" in dirpaths is itself problematic.
18351 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18352 else
18353 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18354 fi
18355 else
18356 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18357 fi
18358 need_lib_prefix=unknown
18359 hardcode_into_libs=no
18360
18361 # when you set need_version to no, make sure it does not cause -set_version
18362 # flags to be left without arguments
18363 need_version=unknown
18364
18365 case $host_os in
18366 aix3*)
18367 version_type=linux
18368 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18369 shlibpath_var=LIBPATH
18370
18371 # AIX 3 has no versioning support, so we append a major version to the name.
18372 soname_spec='${libname}${release}${shared_ext}$major'
18373 ;;
18374
18375 aix4* | aix5*)
18376 version_type=linux
18377 need_lib_prefix=no
18378 need_version=no
18379 hardcode_into_libs=yes
18380 if test "$host_cpu" = ia64; then
18381 # AIX 5 supports IA64
18382 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18383 shlibpath_var=LD_LIBRARY_PATH
18384 else
18385 # With GCC up to 2.95.x, collect2 would create an import file
18386 # for dependence libraries. The import file would start with
18387 # the line `#! .'. This would cause the generated library to
18388 # depend on `.', always an invalid library. This was fixed in
18389 # development snapshots of GCC prior to 3.0.
18390 case $host_os in
18391 aix4 | aix4.[01] | aix4.[01].*)
18392 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18393 echo ' yes '
18394 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18395 :
18396 else
18397 can_build_shared=no
18398 fi
18399 ;;
18400 esac
18401 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18402 # soname into executable. Probably we can add versioning support to
18403 # collect2, so additional links can be useful in future.
18404 if test "$aix_use_runtimelinking" = yes; then
18405 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18406 # instead of lib<name>.a to let people know that these are not
18407 # typical AIX shared libraries.
18408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18409 else
18410 # We preserve .a as extension for shared libraries through AIX4.2
18411 # and later when we are not doing run time linking.
18412 library_names_spec='${libname}${release}.a $libname.a'
18413 soname_spec='${libname}${release}${shared_ext}$major'
18414 fi
18415 shlibpath_var=LIBPATH
18416 fi
18417 ;;
18418
18419 amigaos*)
18420 library_names_spec='$libname.ixlibrary $libname.a'
18421 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18422 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'
18423 ;;
18424
18425 beos*)
18426 library_names_spec='${libname}${shared_ext}'
18427 dynamic_linker="$host_os ld.so"
18428 shlibpath_var=LIBRARY_PATH
18429 ;;
18430
18431 bsdi[45]*)
18432 version_type=linux
18433 need_version=no
18434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18435 soname_spec='${libname}${release}${shared_ext}$major'
18436 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18437 shlibpath_var=LD_LIBRARY_PATH
18438 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18439 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18440 # the default ld.so.conf also contains /usr/contrib/lib and
18441 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18442 # libtool to hard-code these into programs
18443 ;;
18444
18445 cygwin* | mingw* | pw32*)
18446 version_type=windows
18447 shrext_cmds=".dll"
18448 need_version=no
18449 need_lib_prefix=no
18450
18451 case $GCC,$host_os in
18452 yes,cygwin* | yes,mingw* | yes,pw32*)
18453 library_names_spec='$libname.dll.a'
18454 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18455 postinstall_cmds='base_file=`basename \${file}`~
18456 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18457 dldir=$destdir/`dirname \$dlpath`~
18458 test -d \$dldir || mkdir -p \$dldir~
18459 $install_prog $dir/$dlname \$dldir/$dlname~
18460 chmod a+x \$dldir/$dlname'
18461 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18462 dlpath=$dir/\$dldll~
18463 $rm \$dlpath'
18464 shlibpath_overrides_runpath=yes
18465
18466 case $host_os in
18467 cygwin*)
18468 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18469 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18470 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18471 ;;
18472 mingw*)
18473 # MinGW DLLs use traditional 'lib' prefix
18474 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18475 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18476 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18477 # It is most probably a Windows format PATH printed by
18478 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18479 # path with ; separators, and with drive letters. We can handle the
18480 # drive letters (cygwin fileutils understands them), so leave them,
18481 # especially as we might pass files found there to a mingw objdump,
18482 # which wouldn't understand a cygwinified path. Ahh.
18483 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18484 else
18485 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18486 fi
18487 ;;
18488 pw32*)
18489 # pw32 DLLs use 'pw' prefix rather than 'lib'
18490 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18491 ;;
18492 esac
18493 ;;
18494
18495 *)
18496 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18497 ;;
18498 esac
18499 dynamic_linker='Win32 ld.exe'
18500 # FIXME: first we should search . and the directory the executable is in
18501 shlibpath_var=PATH
18502 ;;
18503
18504 darwin* | rhapsody*)
18505 dynamic_linker="$host_os dyld"
18506 version_type=darwin
18507 need_lib_prefix=no
18508 need_version=no
18509 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18510 soname_spec='${libname}${release}${major}$shared_ext'
18511 shlibpath_overrides_runpath=yes
18512 shlibpath_var=DYLD_LIBRARY_PATH
18513 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18514 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18515 if test "$GCC" = yes; then
18516 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18517 else
18518 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18519 fi
18520 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18521 ;;
18522
18523 dgux*)
18524 version_type=linux
18525 need_lib_prefix=no
18526 need_version=no
18527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18528 soname_spec='${libname}${release}${shared_ext}$major'
18529 shlibpath_var=LD_LIBRARY_PATH
18530 ;;
18531
18532 freebsd1*)
18533 dynamic_linker=no
18534 ;;
18535
18536 kfreebsd*-gnu)
18537 version_type=linux
18538 need_lib_prefix=no
18539 need_version=no
18540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18541 soname_spec='${libname}${release}${shared_ext}$major'
18542 shlibpath_var=LD_LIBRARY_PATH
18543 shlibpath_overrides_runpath=no
18544 hardcode_into_libs=yes
18545 dynamic_linker='GNU ld.so'
18546 ;;
18547
18548 freebsd* | dragonfly*)
18549 # DragonFly does not have aout. When/if they implement a new
18550 # versioning mechanism, adjust this.
18551 if test -x /usr/bin/objformat; then
18552 objformat=`/usr/bin/objformat`
18553 else
18554 case $host_os in
18555 freebsd[123]*) objformat=aout ;;
18556 *) objformat=elf ;;
18557 esac
18558 fi
18559 version_type=freebsd-$objformat
18560 case $version_type in
18561 freebsd-elf*)
18562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18563 need_version=no
18564 need_lib_prefix=no
18565 ;;
18566 freebsd-*)
18567 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18568 need_version=yes
18569 ;;
18570 esac
18571 shlibpath_var=LD_LIBRARY_PATH
18572 case $host_os in
18573 freebsd2*)
18574 shlibpath_overrides_runpath=yes
18575 ;;
18576 freebsd3.[01]* | freebsdelf3.[01]*)
18577 shlibpath_overrides_runpath=yes
18578 hardcode_into_libs=yes
18579 ;;
18580 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18581 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18582 shlibpath_overrides_runpath=no
18583 hardcode_into_libs=yes
18584 ;;
18585 freebsd*) # from 4.6 on
18586 shlibpath_overrides_runpath=yes
18587 hardcode_into_libs=yes
18588 ;;
18589 esac
18590 ;;
18591
18592 gnu*)
18593 version_type=linux
18594 need_lib_prefix=no
18595 need_version=no
18596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18597 soname_spec='${libname}${release}${shared_ext}$major'
18598 shlibpath_var=LD_LIBRARY_PATH
18599 hardcode_into_libs=yes
18600 ;;
18601
18602 hpux9* | hpux10* | hpux11*)
18603 # Give a soname corresponding to the major version so that dld.sl refuses to
18604 # link against other versions.
18605 version_type=sunos
18606 need_lib_prefix=no
18607 need_version=no
18608 case $host_cpu in
18609 ia64*)
18610 shrext_cmds='.so'
18611 hardcode_into_libs=yes
18612 dynamic_linker="$host_os dld.so"
18613 shlibpath_var=LD_LIBRARY_PATH
18614 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18616 soname_spec='${libname}${release}${shared_ext}$major'
18617 if test "X$HPUX_IA64_MODE" = X32; then
18618 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18619 else
18620 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18621 fi
18622 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18623 ;;
18624 hppa*64*)
18625 shrext_cmds='.sl'
18626 hardcode_into_libs=yes
18627 dynamic_linker="$host_os dld.sl"
18628 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18629 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18631 soname_spec='${libname}${release}${shared_ext}$major'
18632 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18633 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18634 ;;
18635 *)
18636 shrext_cmds='.sl'
18637 dynamic_linker="$host_os dld.sl"
18638 shlibpath_var=SHLIB_PATH
18639 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18641 soname_spec='${libname}${release}${shared_ext}$major'
18642 ;;
18643 esac
18644 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18645 postinstall_cmds='chmod 555 $lib'
18646 ;;
18647
18648 interix3*)
18649 version_type=linux
18650 need_lib_prefix=no
18651 need_version=no
18652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18653 soname_spec='${libname}${release}${shared_ext}$major'
18654 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18655 shlibpath_var=LD_LIBRARY_PATH
18656 shlibpath_overrides_runpath=no
18657 hardcode_into_libs=yes
18658 ;;
18659
18660 irix5* | irix6* | nonstopux*)
18661 case $host_os in
18662 nonstopux*) version_type=nonstopux ;;
18663 *)
18664 if test "$lt_cv_prog_gnu_ld" = yes; then
18665 version_type=linux
18666 else
18667 version_type=irix
18668 fi ;;
18669 esac
18670 need_lib_prefix=no
18671 need_version=no
18672 soname_spec='${libname}${release}${shared_ext}$major'
18673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18674 case $host_os in
18675 irix5* | nonstopux*)
18676 libsuff= shlibsuff=
18677 ;;
18678 *)
18679 case $LD in # libtool.m4 will add one of these switches to LD
18680 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18681 libsuff= shlibsuff= libmagic=32-bit;;
18682 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18683 libsuff=32 shlibsuff=N32 libmagic=N32;;
18684 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18685 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18686 *) libsuff= shlibsuff= libmagic=never-match;;
18687 esac
18688 ;;
18689 esac
18690 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18691 shlibpath_overrides_runpath=no
18692 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18693 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18694 hardcode_into_libs=yes
18695 ;;
18696
18697 # No shared lib support for Linux oldld, aout, or coff.
18698 linux*oldld* | linux*aout* | linux*coff*)
18699 dynamic_linker=no
18700 ;;
18701
18702 # This must be Linux ELF.
18703 linux*)
18704 version_type=linux
18705 need_lib_prefix=no
18706 need_version=no
18707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18708 soname_spec='${libname}${release}${shared_ext}$major'
18709 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18710 shlibpath_var=LD_LIBRARY_PATH
18711 shlibpath_overrides_runpath=no
18712 # This implies no fast_install, which is unacceptable.
18713 # Some rework will be needed to allow for fast_install
18714 # before this can be enabled.
18715 hardcode_into_libs=yes
18716
18717 # Append ld.so.conf contents to the search path
18718 if test -f /etc/ld.so.conf; then
18719 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18720 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18721 fi
18722
18723 # We used to test for /lib/ld.so.1 and disable shared libraries on
18724 # powerpc, because MkLinux only supported shared libraries with the
18725 # GNU dynamic linker. Since this was broken with cross compilers,
18726 # most powerpc-linux boxes support dynamic linking these days and
18727 # people can always --disable-shared, the test was removed, and we
18728 # assume the GNU/Linux dynamic linker is in use.
18729 dynamic_linker='GNU/Linux ld.so'
18730 ;;
18731
18732 knetbsd*-gnu)
18733 version_type=linux
18734 need_lib_prefix=no
18735 need_version=no
18736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18737 soname_spec='${libname}${release}${shared_ext}$major'
18738 shlibpath_var=LD_LIBRARY_PATH
18739 shlibpath_overrides_runpath=no
18740 hardcode_into_libs=yes
18741 dynamic_linker='GNU ld.so'
18742 ;;
18743
18744 netbsd*)
18745 version_type=sunos
18746 need_lib_prefix=no
18747 need_version=no
18748 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18750 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18751 dynamic_linker='NetBSD (a.out) ld.so'
18752 else
18753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18754 soname_spec='${libname}${release}${shared_ext}$major'
18755 dynamic_linker='NetBSD ld.elf_so'
18756 fi
18757 shlibpath_var=LD_LIBRARY_PATH
18758 shlibpath_overrides_runpath=yes
18759 hardcode_into_libs=yes
18760 ;;
18761
18762 newsos6)
18763 version_type=linux
18764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18765 shlibpath_var=LD_LIBRARY_PATH
18766 shlibpath_overrides_runpath=yes
18767 ;;
18768
18769 nto-qnx*)
18770 version_type=linux
18771 need_lib_prefix=no
18772 need_version=no
18773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18774 soname_spec='${libname}${release}${shared_ext}$major'
18775 shlibpath_var=LD_LIBRARY_PATH
18776 shlibpath_overrides_runpath=yes
18777 ;;
18778
18779 openbsd*)
18780 version_type=sunos
18781 sys_lib_dlsearch_path_spec="/usr/lib"
18782 need_lib_prefix=no
18783 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18784 case $host_os in
18785 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18786 *) need_version=no ;;
18787 esac
18788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18789 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18790 shlibpath_var=LD_LIBRARY_PATH
18791 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18792 case $host_os in
18793 openbsd2.[89] | openbsd2.[89].*)
18794 shlibpath_overrides_runpath=no
18795 ;;
18796 *)
18797 shlibpath_overrides_runpath=yes
18798 ;;
18799 esac
18800 else
18801 shlibpath_overrides_runpath=yes
18802 fi
18803 ;;
18804
18805 os2*)
18806 libname_spec='$name'
18807 shrext_cmds=".dll"
18808 need_lib_prefix=no
18809 library_names_spec='$libname${shared_ext} $libname.a'
18810 dynamic_linker='OS/2 ld.exe'
18811 shlibpath_var=LIBPATH
18812 ;;
18813
18814 osf3* | osf4* | osf5*)
18815 version_type=osf
18816 need_lib_prefix=no
18817 need_version=no
18818 soname_spec='${libname}${release}${shared_ext}$major'
18819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18820 shlibpath_var=LD_LIBRARY_PATH
18821 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18822 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18823 ;;
18824
18825 solaris*)
18826 version_type=linux
18827 need_lib_prefix=no
18828 need_version=no
18829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18830 soname_spec='${libname}${release}${shared_ext}$major'
18831 shlibpath_var=LD_LIBRARY_PATH
18832 shlibpath_overrides_runpath=yes
18833 hardcode_into_libs=yes
18834 # ldd complains unless libraries are executable
18835 postinstall_cmds='chmod +x $lib'
18836 ;;
18837
18838 sunos4*)
18839 version_type=sunos
18840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18841 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18842 shlibpath_var=LD_LIBRARY_PATH
18843 shlibpath_overrides_runpath=yes
18844 if test "$with_gnu_ld" = yes; then
18845 need_lib_prefix=no
18846 fi
18847 need_version=yes
18848 ;;
18849
18850 sysv4 | sysv4.3*)
18851 version_type=linux
18852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18853 soname_spec='${libname}${release}${shared_ext}$major'
18854 shlibpath_var=LD_LIBRARY_PATH
18855 case $host_vendor in
18856 sni)
18857 shlibpath_overrides_runpath=no
18858 need_lib_prefix=no
18859 export_dynamic_flag_spec='${wl}-Blargedynsym'
18860 runpath_var=LD_RUN_PATH
18861 ;;
18862 siemens)
18863 need_lib_prefix=no
18864 ;;
18865 motorola)
18866 need_lib_prefix=no
18867 need_version=no
18868 shlibpath_overrides_runpath=no
18869 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18870 ;;
18871 esac
18872 ;;
18873
18874 sysv4*MP*)
18875 if test -d /usr/nec ;then
18876 version_type=linux
18877 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18878 soname_spec='$libname${shared_ext}.$major'
18879 shlibpath_var=LD_LIBRARY_PATH
18880 fi
18881 ;;
18882
18883 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18884 version_type=freebsd-elf
18885 need_lib_prefix=no
18886 need_version=no
18887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18888 soname_spec='${libname}${release}${shared_ext}$major'
18889 shlibpath_var=LD_LIBRARY_PATH
18890 hardcode_into_libs=yes
18891 if test "$with_gnu_ld" = yes; then
18892 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18893 shlibpath_overrides_runpath=no
18894 else
18895 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18896 shlibpath_overrides_runpath=yes
18897 case $host_os in
18898 sco3.2v5*)
18899 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18900 ;;
18901 esac
18902 fi
18903 sys_lib_dlsearch_path_spec='/usr/lib'
18904 ;;
18905
18906 uts4*)
18907 version_type=linux
18908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18909 soname_spec='${libname}${release}${shared_ext}$major'
18910 shlibpath_var=LD_LIBRARY_PATH
18911 ;;
18912
18913 *)
18914 dynamic_linker=no
18915 ;;
18916 esac
18917 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18918 echo "${ECHO_T}$dynamic_linker" >&6; }
18919 test "$dynamic_linker" = no && can_build_shared=no
18920
18921 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18922 if test "$GCC" = yes; then
18923 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18924 fi
18925
18926 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18927 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18928 hardcode_action_GCJ=
18929 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18930 test -n "$runpath_var_GCJ" || \
18931 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18932
18933 # We can hardcode non-existant directories.
18934 if test "$hardcode_direct_GCJ" != no &&
18935 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18936 # have to relink, otherwise we might link with an installed library
18937 # when we should be linking with a yet-to-be-installed one
18938 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18939 test "$hardcode_minus_L_GCJ" != no; then
18940 # Linking always hardcodes the temporary library directory.
18941 hardcode_action_GCJ=relink
18942 else
18943 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18944 hardcode_action_GCJ=immediate
18945 fi
18946 else
18947 # We cannot hardcode anything, or else we can only hardcode existing
18948 # directories.
18949 hardcode_action_GCJ=unsupported
18950 fi
18951 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18952 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18953
18954 if test "$hardcode_action_GCJ" = relink; then
18955 # Fast installation is not supported
18956 enable_fast_install=no
18957 elif test "$shlibpath_overrides_runpath" = yes ||
18958 test "$enable_shared" = no; then
18959 # Fast installation is not necessary
18960 enable_fast_install=needless
18961 fi
18962
18963
18964 # The else clause should only fire when bootstrapping the
18965 # libtool distribution, otherwise you forgot to ship ltmain.sh
18966 # with your package, and you will get complaints that there are
18967 # no rules to generate ltmain.sh.
18968 if test -f "$ltmain"; then
18969 # See if we are running on zsh, and set the options which allow our commands through
18970 # without removal of \ escapes.
18971 if test -n "${ZSH_VERSION+set}" ; then
18972 setopt NO_GLOB_SUBST
18973 fi
18974 # Now quote all the things that may contain metacharacters while being
18975 # careful not to overquote the AC_SUBSTed values. We take copies of the
18976 # variables and quote the copies for generation of the libtool script.
18977 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18978 SED SHELL STRIP \
18979 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18980 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18981 deplibs_check_method reload_flag reload_cmds need_locks \
18982 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18983 lt_cv_sys_global_symbol_to_c_name_address \
18984 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18985 old_postinstall_cmds old_postuninstall_cmds \
18986 compiler_GCJ \
18987 CC_GCJ \
18988 LD_GCJ \
18989 lt_prog_compiler_wl_GCJ \
18990 lt_prog_compiler_pic_GCJ \
18991 lt_prog_compiler_static_GCJ \
18992 lt_prog_compiler_no_builtin_flag_GCJ \
18993 export_dynamic_flag_spec_GCJ \
18994 thread_safe_flag_spec_GCJ \
18995 whole_archive_flag_spec_GCJ \
18996 enable_shared_with_static_runtimes_GCJ \
18997 old_archive_cmds_GCJ \
18998 old_archive_from_new_cmds_GCJ \
18999 predep_objects_GCJ \
19000 postdep_objects_GCJ \
19001 predeps_GCJ \
19002 postdeps_GCJ \
19003 compiler_lib_search_path_GCJ \
19004 archive_cmds_GCJ \
19005 archive_expsym_cmds_GCJ \
19006 postinstall_cmds_GCJ \
19007 postuninstall_cmds_GCJ \
19008 old_archive_from_expsyms_cmds_GCJ \
19009 allow_undefined_flag_GCJ \
19010 no_undefined_flag_GCJ \
19011 export_symbols_cmds_GCJ \
19012 hardcode_libdir_flag_spec_GCJ \
19013 hardcode_libdir_flag_spec_ld_GCJ \
19014 hardcode_libdir_separator_GCJ \
19015 hardcode_automatic_GCJ \
19016 module_cmds_GCJ \
19017 module_expsym_cmds_GCJ \
19018 lt_cv_prog_compiler_c_o_GCJ \
19019 exclude_expsyms_GCJ \
19020 include_expsyms_GCJ; do
19021
19022 case $var in
19023 old_archive_cmds_GCJ | \
19024 old_archive_from_new_cmds_GCJ | \
19025 archive_cmds_GCJ | \
19026 archive_expsym_cmds_GCJ | \
19027 module_cmds_GCJ | \
19028 module_expsym_cmds_GCJ | \
19029 old_archive_from_expsyms_cmds_GCJ | \
19030 export_symbols_cmds_GCJ | \
19031 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19032 postinstall_cmds | postuninstall_cmds | \
19033 old_postinstall_cmds | old_postuninstall_cmds | \
19034 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19035 # Double-quote double-evaled strings.
19036 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19037 ;;
19038 *)
19039 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19040 ;;
19041 esac
19042 done
19043
19044 case $lt_echo in
19045 *'\$0 --fallback-echo"')
19046 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19047 ;;
19048 esac
19049
19050 cfgfile="$ofile"
19051
19052 cat <<__EOF__ >> "$cfgfile"
19053 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19054
19055 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19056
19057 # Shell to use when invoking shell scripts.
19058 SHELL=$lt_SHELL
19059
19060 # Whether or not to build shared libraries.
19061 build_libtool_libs=$enable_shared
19062
19063 # Whether or not to build static libraries.
19064 build_old_libs=$enable_static
19065
19066 # Whether or not to add -lc for building shared libraries.
19067 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19068
19069 # Whether or not to disallow shared libs when runtime libs are static
19070 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19071
19072 # Whether or not to optimize for fast installation.
19073 fast_install=$enable_fast_install
19074
19075 # The host system.
19076 host_alias=$host_alias
19077 host=$host
19078 host_os=$host_os
19079
19080 # The build system.
19081 build_alias=$build_alias
19082 build=$build
19083 build_os=$build_os
19084
19085 # An echo program that does not interpret backslashes.
19086 echo=$lt_echo
19087
19088 # The archiver.
19089 AR=$lt_AR
19090 AR_FLAGS=$lt_AR_FLAGS
19091
19092 # A C compiler.
19093 LTCC=$lt_LTCC
19094
19095 # LTCC compiler flags.
19096 LTCFLAGS=$lt_LTCFLAGS
19097
19098 # A language-specific compiler.
19099 CC=$lt_compiler_GCJ
19100
19101 # Is the compiler the GNU C compiler?
19102 with_gcc=$GCC_GCJ
19103
19104 # An ERE matcher.
19105 EGREP=$lt_EGREP
19106
19107 # The linker used to build libraries.
19108 LD=$lt_LD_GCJ
19109
19110 # Whether we need hard or soft links.
19111 LN_S=$lt_LN_S
19112
19113 # A BSD-compatible nm program.
19114 NM=$lt_NM
19115
19116 # A symbol stripping program
19117 STRIP=$lt_STRIP
19118
19119 # Used to examine libraries when file_magic_cmd begins "file"
19120 MAGIC_CMD=$MAGIC_CMD
19121
19122 # Used on cygwin: DLL creation program.
19123 DLLTOOL="$DLLTOOL"
19124
19125 # Used on cygwin: object dumper.
19126 OBJDUMP="$OBJDUMP"
19127
19128 # Used on cygwin: assembler.
19129 AS="$AS"
19130
19131 # The name of the directory that contains temporary libtool files.
19132 objdir=$objdir
19133
19134 # How to create reloadable object files.
19135 reload_flag=$lt_reload_flag
19136 reload_cmds=$lt_reload_cmds
19137
19138 # How to pass a linker flag through the compiler.
19139 wl=$lt_lt_prog_compiler_wl_GCJ
19140
19141 # Object file suffix (normally "o").
19142 objext="$ac_objext"
19143
19144 # Old archive suffix (normally "a").
19145 libext="$libext"
19146
19147 # Shared library suffix (normally ".so").
19148 shrext_cmds='$shrext_cmds'
19149
19150 # Executable file suffix (normally "").
19151 exeext="$exeext"
19152
19153 # Additional compiler flags for building library objects.
19154 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19155 pic_mode=$pic_mode
19156
19157 # What is the maximum length of a command?
19158 max_cmd_len=$lt_cv_sys_max_cmd_len
19159
19160 # Does compiler simultaneously support -c and -o options?
19161 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19162
19163 # Must we lock files when doing compilation?
19164 need_locks=$lt_need_locks
19165
19166 # Do we need the lib prefix for modules?
19167 need_lib_prefix=$need_lib_prefix
19168
19169 # Do we need a version for libraries?
19170 need_version=$need_version
19171
19172 # Whether dlopen is supported.
19173 dlopen_support=$enable_dlopen
19174
19175 # Whether dlopen of programs is supported.
19176 dlopen_self=$enable_dlopen_self
19177
19178 # Whether dlopen of statically linked programs is supported.
19179 dlopen_self_static=$enable_dlopen_self_static
19180
19181 # Compiler flag to prevent dynamic linking.
19182 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19183
19184 # Compiler flag to turn off builtin functions.
19185 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19186
19187 # Compiler flag to allow reflexive dlopens.
19188 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19189
19190 # Compiler flag to generate shared objects directly from archives.
19191 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19192
19193 # Compiler flag to generate thread-safe objects.
19194 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19195
19196 # Library versioning type.
19197 version_type=$version_type
19198
19199 # Format of library name prefix.
19200 libname_spec=$lt_libname_spec
19201
19202 # List of archive names. First name is the real one, the rest are links.
19203 # The last name is the one that the linker finds with -lNAME.
19204 library_names_spec=$lt_library_names_spec
19205
19206 # The coded name of the library, if different from the real name.
19207 soname_spec=$lt_soname_spec
19208
19209 # Commands used to build and install an old-style archive.
19210 RANLIB=$lt_RANLIB
19211 old_archive_cmds=$lt_old_archive_cmds_GCJ
19212 old_postinstall_cmds=$lt_old_postinstall_cmds
19213 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19214
19215 # Create an old-style archive from a shared archive.
19216 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19217
19218 # Create a temporary old-style archive to link instead of a shared archive.
19219 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19220
19221 # Commands used to build and install a shared archive.
19222 archive_cmds=$lt_archive_cmds_GCJ
19223 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19224 postinstall_cmds=$lt_postinstall_cmds
19225 postuninstall_cmds=$lt_postuninstall_cmds
19226
19227 # Commands used to build a loadable module (assumed same as above if empty)
19228 module_cmds=$lt_module_cmds_GCJ
19229 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19230
19231 # Commands to strip libraries.
19232 old_striplib=$lt_old_striplib
19233 striplib=$lt_striplib
19234
19235 # Dependencies to place before the objects being linked to create a
19236 # shared library.
19237 predep_objects=$lt_predep_objects_GCJ
19238
19239 # Dependencies to place after the objects being linked to create a
19240 # shared library.
19241 postdep_objects=$lt_postdep_objects_GCJ
19242
19243 # Dependencies to place before the objects being linked to create a
19244 # shared library.
19245 predeps=$lt_predeps_GCJ
19246
19247 # Dependencies to place after the objects being linked to create a
19248 # shared library.
19249 postdeps=$lt_postdeps_GCJ
19250
19251 # The library search path used internally by the compiler when linking
19252 # a shared library.
19253 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19254
19255 # Method to check whether dependent libraries are shared objects.
19256 deplibs_check_method=$lt_deplibs_check_method
19257
19258 # Command to use when deplibs_check_method == file_magic.
19259 file_magic_cmd=$lt_file_magic_cmd
19260
19261 # Flag that allows shared libraries with undefined symbols to be built.
19262 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19263
19264 # Flag that forces no undefined symbols.
19265 no_undefined_flag=$lt_no_undefined_flag_GCJ
19266
19267 # Commands used to finish a libtool library installation in a directory.
19268 finish_cmds=$lt_finish_cmds
19269
19270 # Same as above, but a single script fragment to be evaled but not shown.
19271 finish_eval=$lt_finish_eval
19272
19273 # Take the output of nm and produce a listing of raw symbols and C names.
19274 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19275
19276 # Transform the output of nm in a proper C declaration
19277 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19278
19279 # Transform the output of nm in a C name address pair
19280 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19281
19282 # This is the shared library runtime path variable.
19283 runpath_var=$runpath_var
19284
19285 # This is the shared library path variable.
19286 shlibpath_var=$shlibpath_var
19287
19288 # Is shlibpath searched before the hard-coded library search path?
19289 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19290
19291 # How to hardcode a shared library path into an executable.
19292 hardcode_action=$hardcode_action_GCJ
19293
19294 # Whether we should hardcode library paths into libraries.
19295 hardcode_into_libs=$hardcode_into_libs
19296
19297 # Flag to hardcode \$libdir into a binary during linking.
19298 # This must work even if \$libdir does not exist.
19299 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19300
19301 # If ld is used when linking, flag to hardcode \$libdir into
19302 # a binary during linking. This must work even if \$libdir does
19303 # not exist.
19304 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19305
19306 # Whether we need a single -rpath flag with a separated argument.
19307 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19308
19309 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19310 # resulting binary.
19311 hardcode_direct=$hardcode_direct_GCJ
19312
19313 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19314 # resulting binary.
19315 hardcode_minus_L=$hardcode_minus_L_GCJ
19316
19317 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19318 # the resulting binary.
19319 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19320
19321 # Set to yes if building a shared library automatically hardcodes DIR into the library
19322 # and all subsequent libraries and executables linked against it.
19323 hardcode_automatic=$hardcode_automatic_GCJ
19324
19325 # Variables whose values should be saved in libtool wrapper scripts and
19326 # restored at relink time.
19327 variables_saved_for_relink="$variables_saved_for_relink"
19328
19329 # Whether libtool must link a program against all its dependency libraries.
19330 link_all_deplibs=$link_all_deplibs_GCJ
19331
19332 # Compile-time system search path for libraries
19333 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19334
19335 # Run-time system search path for libraries
19336 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19337
19338 # Fix the shell variable \$srcfile for the compiler.
19339 fix_srcfile_path="$fix_srcfile_path_GCJ"
19340
19341 # Set to yes if exported symbols are required.
19342 always_export_symbols=$always_export_symbols_GCJ
19343
19344 # The commands to list exported symbols.
19345 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19346
19347 # The commands to extract the exported symbol list from a shared archive.
19348 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19349
19350 # Symbols that should not be listed in the preloaded symbols.
19351 exclude_expsyms=$lt_exclude_expsyms_GCJ
19352
19353 # Symbols that must always be exported.
19354 include_expsyms=$lt_include_expsyms_GCJ
19355
19356 # ### END LIBTOOL TAG CONFIG: $tagname
19357
19358 __EOF__
19359
19360
19361 else
19362 # If there is no Makefile yet, we rely on a make rule to execute
19363 # `config.status --recheck' to rerun these tests and create the
19364 # libtool script then.
19365 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19366 if test -f "$ltmain_in"; then
19367 test -f Makefile && make "$ltmain"
19368 fi
19369 fi
19370
19371
19372 ac_ext=c
19373 ac_cpp='$CPP $CPPFLAGS'
19374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19377
19378 CC="$lt_save_CC"
19379
19380 else
19381 tagname=""
19382 fi
19383 ;;
19384
19385 RC)
19386
19387
19388 # Source file extension for RC test sources.
19389 ac_ext=rc
19390
19391 # Object file extension for compiled RC test sources.
19392 objext=o
19393 objext_RC=$objext
19394
19395 # Code to be used in simple compile tests
19396 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19397
19398 # Code to be used in simple link tests
19399 lt_simple_link_test_code="$lt_simple_compile_test_code"
19400
19401 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19402
19403 # If no C compiler was specified, use CC.
19404 LTCC=${LTCC-"$CC"}
19405
19406 # If no C compiler flags were specified, use CFLAGS.
19407 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19408
19409 # Allow CC to be a program name with arguments.
19410 compiler=$CC
19411
19412
19413 # save warnings/boilerplate of simple test code
19414 ac_outfile=conftest.$ac_objext
19415 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19416 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19417 _lt_compiler_boilerplate=`cat conftest.err`
19418 $rm conftest*
19419
19420 ac_outfile=conftest.$ac_objext
19421 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19422 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19423 _lt_linker_boilerplate=`cat conftest.err`
19424 $rm conftest*
19425
19426
19427 # Allow CC to be a program name with arguments.
19428 lt_save_CC="$CC"
19429 CC=${RC-"windres"}
19430 compiler=$CC
19431 compiler_RC=$CC
19432 for cc_temp in $compiler""; do
19433 case $cc_temp in
19434 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19435 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19436 \-*) ;;
19437 *) break;;
19438 esac
19439 done
19440 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19441
19442 lt_cv_prog_compiler_c_o_RC=yes
19443
19444 # The else clause should only fire when bootstrapping the
19445 # libtool distribution, otherwise you forgot to ship ltmain.sh
19446 # with your package, and you will get complaints that there are
19447 # no rules to generate ltmain.sh.
19448 if test -f "$ltmain"; then
19449 # See if we are running on zsh, and set the options which allow our commands through
19450 # without removal of \ escapes.
19451 if test -n "${ZSH_VERSION+set}" ; then
19452 setopt NO_GLOB_SUBST
19453 fi
19454 # Now quote all the things that may contain metacharacters while being
19455 # careful not to overquote the AC_SUBSTed values. We take copies of the
19456 # variables and quote the copies for generation of the libtool script.
19457 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19458 SED SHELL STRIP \
19459 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19460 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19461 deplibs_check_method reload_flag reload_cmds need_locks \
19462 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19463 lt_cv_sys_global_symbol_to_c_name_address \
19464 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19465 old_postinstall_cmds old_postuninstall_cmds \
19466 compiler_RC \
19467 CC_RC \
19468 LD_RC \
19469 lt_prog_compiler_wl_RC \
19470 lt_prog_compiler_pic_RC \
19471 lt_prog_compiler_static_RC \
19472 lt_prog_compiler_no_builtin_flag_RC \
19473 export_dynamic_flag_spec_RC \
19474 thread_safe_flag_spec_RC \
19475 whole_archive_flag_spec_RC \
19476 enable_shared_with_static_runtimes_RC \
19477 old_archive_cmds_RC \
19478 old_archive_from_new_cmds_RC \
19479 predep_objects_RC \
19480 postdep_objects_RC \
19481 predeps_RC \
19482 postdeps_RC \
19483 compiler_lib_search_path_RC \
19484 archive_cmds_RC \
19485 archive_expsym_cmds_RC \
19486 postinstall_cmds_RC \
19487 postuninstall_cmds_RC \
19488 old_archive_from_expsyms_cmds_RC \
19489 allow_undefined_flag_RC \
19490 no_undefined_flag_RC \
19491 export_symbols_cmds_RC \
19492 hardcode_libdir_flag_spec_RC \
19493 hardcode_libdir_flag_spec_ld_RC \
19494 hardcode_libdir_separator_RC \
19495 hardcode_automatic_RC \
19496 module_cmds_RC \
19497 module_expsym_cmds_RC \
19498 lt_cv_prog_compiler_c_o_RC \
19499 exclude_expsyms_RC \
19500 include_expsyms_RC; do
19501
19502 case $var in
19503 old_archive_cmds_RC | \
19504 old_archive_from_new_cmds_RC | \
19505 archive_cmds_RC | \
19506 archive_expsym_cmds_RC | \
19507 module_cmds_RC | \
19508 module_expsym_cmds_RC | \
19509 old_archive_from_expsyms_cmds_RC | \
19510 export_symbols_cmds_RC | \
19511 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19512 postinstall_cmds | postuninstall_cmds | \
19513 old_postinstall_cmds | old_postuninstall_cmds | \
19514 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19515 # Double-quote double-evaled strings.
19516 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19517 ;;
19518 *)
19519 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19520 ;;
19521 esac
19522 done
19523
19524 case $lt_echo in
19525 *'\$0 --fallback-echo"')
19526 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19527 ;;
19528 esac
19529
19530 cfgfile="$ofile"
19531
19532 cat <<__EOF__ >> "$cfgfile"
19533 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19534
19535 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19536
19537 # Shell to use when invoking shell scripts.
19538 SHELL=$lt_SHELL
19539
19540 # Whether or not to build shared libraries.
19541 build_libtool_libs=$enable_shared
19542
19543 # Whether or not to build static libraries.
19544 build_old_libs=$enable_static
19545
19546 # Whether or not to add -lc for building shared libraries.
19547 build_libtool_need_lc=$archive_cmds_need_lc_RC
19548
19549 # Whether or not to disallow shared libs when runtime libs are static
19550 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19551
19552 # Whether or not to optimize for fast installation.
19553 fast_install=$enable_fast_install
19554
19555 # The host system.
19556 host_alias=$host_alias
19557 host=$host
19558 host_os=$host_os
19559
19560 # The build system.
19561 build_alias=$build_alias
19562 build=$build
19563 build_os=$build_os
19564
19565 # An echo program that does not interpret backslashes.
19566 echo=$lt_echo
19567
19568 # The archiver.
19569 AR=$lt_AR
19570 AR_FLAGS=$lt_AR_FLAGS
19571
19572 # A C compiler.
19573 LTCC=$lt_LTCC
19574
19575 # LTCC compiler flags.
19576 LTCFLAGS=$lt_LTCFLAGS
19577
19578 # A language-specific compiler.
19579 CC=$lt_compiler_RC
19580
19581 # Is the compiler the GNU C compiler?
19582 with_gcc=$GCC_RC
19583
19584 # An ERE matcher.
19585 EGREP=$lt_EGREP
19586
19587 # The linker used to build libraries.
19588 LD=$lt_LD_RC
19589
19590 # Whether we need hard or soft links.
19591 LN_S=$lt_LN_S
19592
19593 # A BSD-compatible nm program.
19594 NM=$lt_NM
19595
19596 # A symbol stripping program
19597 STRIP=$lt_STRIP
19598
19599 # Used to examine libraries when file_magic_cmd begins "file"
19600 MAGIC_CMD=$MAGIC_CMD
19601
19602 # Used on cygwin: DLL creation program.
19603 DLLTOOL="$DLLTOOL"
19604
19605 # Used on cygwin: object dumper.
19606 OBJDUMP="$OBJDUMP"
19607
19608 # Used on cygwin: assembler.
19609 AS="$AS"
19610
19611 # The name of the directory that contains temporary libtool files.
19612 objdir=$objdir
19613
19614 # How to create reloadable object files.
19615 reload_flag=$lt_reload_flag
19616 reload_cmds=$lt_reload_cmds
19617
19618 # How to pass a linker flag through the compiler.
19619 wl=$lt_lt_prog_compiler_wl_RC
19620
19621 # Object file suffix (normally "o").
19622 objext="$ac_objext"
19623
19624 # Old archive suffix (normally "a").
19625 libext="$libext"
19626
19627 # Shared library suffix (normally ".so").
19628 shrext_cmds='$shrext_cmds'
19629
19630 # Executable file suffix (normally "").
19631 exeext="$exeext"
19632
19633 # Additional compiler flags for building library objects.
19634 pic_flag=$lt_lt_prog_compiler_pic_RC
19635 pic_mode=$pic_mode
19636
19637 # What is the maximum length of a command?
19638 max_cmd_len=$lt_cv_sys_max_cmd_len
19639
19640 # Does compiler simultaneously support -c and -o options?
19641 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19642
19643 # Must we lock files when doing compilation?
19644 need_locks=$lt_need_locks
19645
19646 # Do we need the lib prefix for modules?
19647 need_lib_prefix=$need_lib_prefix
19648
19649 # Do we need a version for libraries?
19650 need_version=$need_version
19651
19652 # Whether dlopen is supported.
19653 dlopen_support=$enable_dlopen
19654
19655 # Whether dlopen of programs is supported.
19656 dlopen_self=$enable_dlopen_self
19657
19658 # Whether dlopen of statically linked programs is supported.
19659 dlopen_self_static=$enable_dlopen_self_static
19660
19661 # Compiler flag to prevent dynamic linking.
19662 link_static_flag=$lt_lt_prog_compiler_static_RC
19663
19664 # Compiler flag to turn off builtin functions.
19665 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19666
19667 # Compiler flag to allow reflexive dlopens.
19668 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19669
19670 # Compiler flag to generate shared objects directly from archives.
19671 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19672
19673 # Compiler flag to generate thread-safe objects.
19674 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19675
19676 # Library versioning type.
19677 version_type=$version_type
19678
19679 # Format of library name prefix.
19680 libname_spec=$lt_libname_spec
19681
19682 # List of archive names. First name is the real one, the rest are links.
19683 # The last name is the one that the linker finds with -lNAME.
19684 library_names_spec=$lt_library_names_spec
19685
19686 # The coded name of the library, if different from the real name.
19687 soname_spec=$lt_soname_spec
19688
19689 # Commands used to build and install an old-style archive.
19690 RANLIB=$lt_RANLIB
19691 old_archive_cmds=$lt_old_archive_cmds_RC
19692 old_postinstall_cmds=$lt_old_postinstall_cmds
19693 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19694
19695 # Create an old-style archive from a shared archive.
19696 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19697
19698 # Create a temporary old-style archive to link instead of a shared archive.
19699 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19700
19701 # Commands used to build and install a shared archive.
19702 archive_cmds=$lt_archive_cmds_RC
19703 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19704 postinstall_cmds=$lt_postinstall_cmds
19705 postuninstall_cmds=$lt_postuninstall_cmds
19706
19707 # Commands used to build a loadable module (assumed same as above if empty)
19708 module_cmds=$lt_module_cmds_RC
19709 module_expsym_cmds=$lt_module_expsym_cmds_RC
19710
19711 # Commands to strip libraries.
19712 old_striplib=$lt_old_striplib
19713 striplib=$lt_striplib
19714
19715 # Dependencies to place before the objects being linked to create a
19716 # shared library.
19717 predep_objects=$lt_predep_objects_RC
19718
19719 # Dependencies to place after the objects being linked to create a
19720 # shared library.
19721 postdep_objects=$lt_postdep_objects_RC
19722
19723 # Dependencies to place before the objects being linked to create a
19724 # shared library.
19725 predeps=$lt_predeps_RC
19726
19727 # Dependencies to place after the objects being linked to create a
19728 # shared library.
19729 postdeps=$lt_postdeps_RC
19730
19731 # The library search path used internally by the compiler when linking
19732 # a shared library.
19733 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19734
19735 # Method to check whether dependent libraries are shared objects.
19736 deplibs_check_method=$lt_deplibs_check_method
19737
19738 # Command to use when deplibs_check_method == file_magic.
19739 file_magic_cmd=$lt_file_magic_cmd
19740
19741 # Flag that allows shared libraries with undefined symbols to be built.
19742 allow_undefined_flag=$lt_allow_undefined_flag_RC
19743
19744 # Flag that forces no undefined symbols.
19745 no_undefined_flag=$lt_no_undefined_flag_RC
19746
19747 # Commands used to finish a libtool library installation in a directory.
19748 finish_cmds=$lt_finish_cmds
19749
19750 # Same as above, but a single script fragment to be evaled but not shown.
19751 finish_eval=$lt_finish_eval
19752
19753 # Take the output of nm and produce a listing of raw symbols and C names.
19754 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19755
19756 # Transform the output of nm in a proper C declaration
19757 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19758
19759 # Transform the output of nm in a C name address pair
19760 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19761
19762 # This is the shared library runtime path variable.
19763 runpath_var=$runpath_var
19764
19765 # This is the shared library path variable.
19766 shlibpath_var=$shlibpath_var
19767
19768 # Is shlibpath searched before the hard-coded library search path?
19769 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19770
19771 # How to hardcode a shared library path into an executable.
19772 hardcode_action=$hardcode_action_RC
19773
19774 # Whether we should hardcode library paths into libraries.
19775 hardcode_into_libs=$hardcode_into_libs
19776
19777 # Flag to hardcode \$libdir into a binary during linking.
19778 # This must work even if \$libdir does not exist.
19779 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19780
19781 # If ld is used when linking, flag to hardcode \$libdir into
19782 # a binary during linking. This must work even if \$libdir does
19783 # not exist.
19784 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19785
19786 # Whether we need a single -rpath flag with a separated argument.
19787 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19788
19789 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19790 # resulting binary.
19791 hardcode_direct=$hardcode_direct_RC
19792
19793 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19794 # resulting binary.
19795 hardcode_minus_L=$hardcode_minus_L_RC
19796
19797 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19798 # the resulting binary.
19799 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19800
19801 # Set to yes if building a shared library automatically hardcodes DIR into the library
19802 # and all subsequent libraries and executables linked against it.
19803 hardcode_automatic=$hardcode_automatic_RC
19804
19805 # Variables whose values should be saved in libtool wrapper scripts and
19806 # restored at relink time.
19807 variables_saved_for_relink="$variables_saved_for_relink"
19808
19809 # Whether libtool must link a program against all its dependency libraries.
19810 link_all_deplibs=$link_all_deplibs_RC
19811
19812 # Compile-time system search path for libraries
19813 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19814
19815 # Run-time system search path for libraries
19816 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19817
19818 # Fix the shell variable \$srcfile for the compiler.
19819 fix_srcfile_path="$fix_srcfile_path_RC"
19820
19821 # Set to yes if exported symbols are required.
19822 always_export_symbols=$always_export_symbols_RC
19823
19824 # The commands to list exported symbols.
19825 export_symbols_cmds=$lt_export_symbols_cmds_RC
19826
19827 # The commands to extract the exported symbol list from a shared archive.
19828 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19829
19830 # Symbols that should not be listed in the preloaded symbols.
19831 exclude_expsyms=$lt_exclude_expsyms_RC
19832
19833 # Symbols that must always be exported.
19834 include_expsyms=$lt_include_expsyms_RC
19835
19836 # ### END LIBTOOL TAG CONFIG: $tagname
19837
19838 __EOF__
19839
19840
19841 else
19842 # If there is no Makefile yet, we rely on a make rule to execute
19843 # `config.status --recheck' to rerun these tests and create the
19844 # libtool script then.
19845 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19846 if test -f "$ltmain_in"; then
19847 test -f Makefile && make "$ltmain"
19848 fi
19849 fi
19850
19851
19852 ac_ext=c
19853 ac_cpp='$CPP $CPPFLAGS'
19854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19857
19858 CC="$lt_save_CC"
19859
19860 ;;
19861
19862 *)
19863 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19864 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19865 { (exit 1); exit 1; }; }
19866 ;;
19867 esac
19868
19869 # Append the new tag name to the list of available tags.
19870 if test -n "$tagname" ; then
19871 available_tags="$available_tags $tagname"
19872 fi
19873 fi
19874 done
19875 IFS="$lt_save_ifs"
19876
19877 # Now substitute the updated list of available tags.
19878 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19879 mv "${ofile}T" "$ofile"
19880 chmod +x "$ofile"
19881 else
19882 rm -f "${ofile}T"
19883 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19884 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19885 { (exit 1); exit 1; }; }
19886 fi
19887 fi
19888
19889
19890
19891 # This can be used to rebuild libtool when needed
19892 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19893
19894 # Always use our own libtool.
19895 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19896
19897 # Prevent multiple expansion
19898
19899
19900
19901
19902
19903
19904
19905
19906
19907
19908
19909
19910
19911
19912
19913
19914
19915
19916
19917
19918
19919 use_asm=:
19920 arch_x86=false
19921 arch_x86_64=false
19922
19923 # Check whether --enable-asm was given.
19924 if test "${enable_asm+set}" = set; then
19925 enableval=$enable_asm; if test "$enableval" = "no"; then
19926 use_asm=false
19927 fi
19928
19929 fi
19930
19931
19932 use_sdl=false
19933 # Check whether --enable-sdl was given.
19934 if test "${enable_sdl+set}" = set; then
19935 enableval=$enable_sdl; if test "$enableval" = "yes"; then
19936 use_sdl=:
19937 fi
19938
19939 fi
19940
19941
19942 use_gtk=:
19943 # Check whether --enable-gtk was given.
19944 if test "${enable_gtk+set}" = set; then
19945 enableval=$enable_gtk; if test "$enableval" = "no"; then
19946 use_gtk=false
19947 fi
19948
19949 fi
19950
19951
19952 use_xv=:
19953 # Check whether --enable-xv was given.
19954 if test "${enable_xv+set}" = set; then
19955 enableval=$enable_xv; if test "$enableval" = "no"; then
19956 use_xv=false
19957 fi
19958
19959 fi
19960
19961
19962 # Check whether --enable-gprof was given.
19963 if test "${enable_gprof+set}" = set; then
19964 enableval=$enable_gprof; if test "$enableval" = "yes"; then
19965 CFLAGS="$CFLAGS -g -pg"
19966 fi
19967
19968 fi
19969
19970
19971 if $use_asm; then
19972 case "$host_cpu" in
19973 i?86)
19974 arch_x86=true
19975 cat >>confdefs.h <<\_ACEOF
19976 #define ARCH_X86 1
19977 _ACEOF
19978
19979 ;;
19980 x86_64)
19981 arch_x86_64=true
19982 cat >>confdefs.h <<\_ACEOF
19983 #define ARCH_X86_64 1
19984 _ACEOF
19985
19986 ;;
19987 *)
19988 ;;
19989 esac
19990 fi
19991
19992
19993 # Check whether --with-pal-yuv was given.
19994 if test "${with_pal_yuv+set}" = set; then
19995 withval=$with_pal_yuv;
19996 case "$with_pal_yuv" in
19997 YV12)
19998 { echo "$as_me:$LINENO: result: YV12" >&5
19999 echo "${ECHO_T}YV12" >&6; }
20000 cat >>confdefs.h <<\_ACEOF
20001 #define YUV_420_USE_YV12 1
20002 _ACEOF
20003
20004 ;;
20005 *)
20006 { echo "$as_me:$LINENO: result: YUY2" >&5
20007 echo "${ECHO_T}YUY2" >&6; }
20008 ;;
20009 esac
20010
20011
20012 fi
20013
20014
20015 { echo "$as_me:$LINENO: checking whether to enable debugging" >&5
20016 echo $ECHO_N "checking whether to enable debugging... $ECHO_C" >&6; }
20017
20018 # Check whether --with-debug was given.
20019 if test "${with_debug+set}" = set; then
20020 withval=$with_debug;
20021 case "$with_debug" in
20022 no)
20023 { echo "$as_me:$LINENO: result: no" >&5
20024 echo "${ECHO_T}no" >&6; }
20025 ;;
20026 yes)
20027 { echo "$as_me:$LINENO: result: yes" >&5
20028 echo "${ECHO_T}yes" >&6; }
20029 cat >>confdefs.h <<\_ACEOF
20030 #define DEBUG 1
20031 _ACEOF
20032
20033 CFLAGS="$CFLAGS -g"
20034 ;;
20035 *)
20036 { echo "$as_me:$LINENO: result: DEBUG=$with_debug" >&5
20037 echo "${ECHO_T}DEBUG=$with_debug" >&6; }
20038 cat >>confdefs.h <<_ACEOF
20039 #define DEBUG $with_debug
20040 _ACEOF
20041
20042 CFLAGS="$CFLAGS -g"
20043 ;;
20044 esac
20045
20046 else
20047 { echo "$as_me:$LINENO: result: default=yes" >&5
20048 echo "${ECHO_T}default=yes" >&6; }
20049 cat >>confdefs.h <<\_ACEOF
20050 #define DEBUG 1
20051 _ACEOF
20052
20053 CFLAGS="$CFLAGS -g"
20054
20055
20056 fi
20057
20058
20059
20060
20061
20062 if test x$arch_x86 = xtrue; then
20063 HOST_X86_TRUE=
20064 HOST_X86_FALSE='#'
20065 else
20066 HOST_X86_TRUE='#'
20067 HOST_X86_FALSE=
20068 fi
20069
20070
20071
20072 if test x$arch_x86_64 = xtrue; then
20073 HOST_X86_64_TRUE=
20074 HOST_X86_64_FALSE='#'
20075 else
20076 HOST_X86_64_TRUE='#'
20077 HOST_X86_64_FALSE=
20078 fi
20079
20080
20081
20082
20083 have_gtk="false"
20084 if $use_gtk; then
20085 REQUIRES='glib >= 1.2.4 gtk+ >= 1.2.4'
20086
20087
20088 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20089 if test -n "$ac_tool_prefix"; then
20090 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20091 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20092 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20094 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20095 echo $ECHO_N "(cached) $ECHO_C" >&6
20096 else
20097 case $PKG_CONFIG in
20098 [\\/]* | ?:[\\/]*)
20099 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20100 ;;
20101 *)
20102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20103 for as_dir in $PATH
20104 do
20105 IFS=$as_save_IFS
20106 test -z "$as_dir" && as_dir=.
20107 for ac_exec_ext in '' $ac_executable_extensions; do
20108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20109 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20111 break 2
20112 fi
20113 done
20114 done
20115 IFS=$as_save_IFS
20116
20117 ;;
20118 esac
20119 fi
20120 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20121 if test -n "$PKG_CONFIG"; then
20122 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20123 echo "${ECHO_T}$PKG_CONFIG" >&6; }
20124 else
20125 { echo "$as_me:$LINENO: result: no" >&5
20126 echo "${ECHO_T}no" >&6; }
20127 fi
20128
20129
20130 fi
20131 if test -z "$ac_cv_path_PKG_CONFIG"; then
20132 ac_pt_PKG_CONFIG=$PKG_CONFIG
20133 # Extract the first word of "pkg-config", so it can be a program name with args.
20134 set dummy pkg-config; ac_word=$2
20135 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20137 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
20138 echo $ECHO_N "(cached) $ECHO_C" >&6
20139 else
20140 case $ac_pt_PKG_CONFIG in
20141 [\\/]* | ?:[\\/]*)
20142 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20143 ;;
20144 *)
20145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20146 for as_dir in $PATH
20147 do
20148 IFS=$as_save_IFS
20149 test -z "$as_dir" && as_dir=.
20150 for ac_exec_ext in '' $ac_executable_extensions; do
20151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20152 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20154 break 2
20155 fi
20156 done
20157 done
20158 IFS=$as_save_IFS
20159
20160 ;;
20161 esac
20162 fi
20163 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20164 if test -n "$ac_pt_PKG_CONFIG"; then
20165 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
20166 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
20167 else
20168 { echo "$as_me:$LINENO: result: no" >&5
20169 echo "${ECHO_T}no" >&6; }
20170 fi
20171
20172 if test "x$ac_pt_PKG_CONFIG" = x; then
20173 PKG_CONFIG=""
20174 else
20175 case $cross_compiling:$ac_tool_warned in
20176 yes:)
20177 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20178 whose name does not start with the host triplet. If you think this
20179 configuration is useful to you, please write to [email protected]." >&5
20180 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20181 whose name does not start with the host triplet. If you think this
20182 configuration is useful to you, please write to [email protected]." >&2;}
20183 ac_tool_warned=yes ;;
20184 esac
20185 PKG_CONFIG=$ac_pt_PKG_CONFIG
20186 fi
20187 else
20188 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20189 fi
20190
20191 fi
20192 if test -n "$PKG_CONFIG"; then
20193 _pkg_min_version=0.9.0
20194 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20195 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
20196 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20197 { echo "$as_me:$LINENO: result: yes" >&5
20198 echo "${ECHO_T}yes" >&6; }
20199 else
20200 { echo "$as_me:$LINENO: result: no" >&5
20201 echo "${ECHO_T}no" >&6; }
20202 PKG_CONFIG=""
20203 fi
20204
20205 fi
20206
20207 pkg_failed=no
20208 { echo "$as_me:$LINENO: checking for GTK" >&5
20209 echo $ECHO_N "checking for GTK... $ECHO_C" >&6; }
20210
20211 if test -n "$PKG_CONFIG"; then
20212 if test -n "$GTK_CFLAGS"; then
20213 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
20214 else
20215 if test -n "$PKG_CONFIG" && \
20216 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$REQUIRES\"") >&5
20217 ($PKG_CONFIG --exists --print-errors "$REQUIRES") 2>&5
20218 ac_status=$?
20219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20220 (exit $ac_status); }; then
20221 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "$REQUIRES" 2>/dev/null`
20222 else
20223 pkg_failed=yes
20224 fi
20225 fi
20226 else
20227 pkg_failed=untried
20228 fi
20229 if test -n "$PKG_CONFIG"; then
20230 if test -n "$GTK_LIBS"; then
20231 pkg_cv_GTK_LIBS="$GTK_LIBS"
20232 else
20233 if test -n "$PKG_CONFIG" && \
20234 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$REQUIRES\"") >&5
20235 ($PKG_CONFIG --exists --print-errors "$REQUIRES") 2>&5
20236 ac_status=$?
20237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20238 (exit $ac_status); }; then
20239 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "$REQUIRES" 2>/dev/null`
20240 else
20241 pkg_failed=yes
20242 fi
20243 fi
20244 else
20245 pkg_failed=untried
20246 fi
20247
20248
20249
20250 if test $pkg_failed = yes; then
20251
20252 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20253 _pkg_short_errors_supported=yes
20254 else
20255 _pkg_short_errors_supported=no
20256 fi
20257 if test $_pkg_short_errors_supported = yes; then
20258 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$REQUIRES"`
20259 else
20260 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$REQUIRES"`
20261 fi
20262 # Put the nasty error message in config.log where it belongs
20263 echo "$GTK_PKG_ERRORS" >&5
20264
20265 have_gtk="false"
20266 elif test $pkg_failed = untried; then
20267 have_gtk="false"
20268 else
20269 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
20270 GTK_LIBS=$pkg_cv_GTK_LIBS
20271 { echo "$as_me:$LINENO: result: yes" >&5
20272 echo "${ECHO_T}yes" >&6; }
20273 have_gtk="true"
20274 fi
20275 cat >>confdefs.h <<\_ACEOF
20276 #define HAVE_GTK 1
20277 _ACEOF
20278
20279 fi
20280
20281
20282
20283 if test x$have_gtk = xtrue; then
20284 HAVE_GTK_TRUE=
20285 HAVE_GTK_FALSE='#'
20286 else
20287 HAVE_GTK_TRUE='#'
20288 HAVE_GTK_FALSE=
20289 fi
20290
20291
20292
20293
20294
20295 if $use_sdl; then
20296
20297 # Check whether --with-sdl-prefix was given.
20298 if test "${with_sdl_prefix+set}" = set; then
20299 withval=$with_sdl_prefix; sdl_prefix="$withval"
20300 else
20301 sdl_prefix=""
20302 fi
20303
20304
20305 # Check whether --with-sdl-exec-prefix was given.
20306 if test "${with_sdl_exec_prefix+set}" = set; then
20307 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
20308 else
20309 sdl_exec_prefix=""
20310 fi
20311
20312 # Check whether --enable-sdltest was given.
20313 if test "${enable_sdltest+set}" = set; then
20314 enableval=$enable_sdltest;
20315 else
20316 enable_sdltest=yes
20317 fi
20318
20319
20320 if test x$sdl_exec_prefix != x ; then
20321 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
20322 if test x${SDL_CONFIG+set} != xset ; then
20323 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
20324 fi
20325 fi
20326 if test x$sdl_prefix != x ; then
20327 sdl_args="$sdl_args --prefix=$sdl_prefix"
20328 if test x${SDL_CONFIG+set} != xset ; then
20329 SDL_CONFIG=$sdl_prefix/bin/sdl-config
20330 fi
20331 fi
20332
20333 if test "x$prefix" != xNONE; then
20334 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
20335 fi
20336 # Extract the first word of "sdl-config", so it can be a program name with args.
20337 set dummy sdl-config; ac_word=$2
20338 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20340 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
20341 echo $ECHO_N "(cached) $ECHO_C" >&6
20342 else
20343 case $SDL_CONFIG in
20344 [\\/]* | ?:[\\/]*)
20345 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
20346 ;;
20347 *)
20348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20349 for as_dir in $PATH
20350 do
20351 IFS=$as_save_IFS
20352 test -z "$as_dir" && as_dir=.
20353 for ac_exec_ext in '' $ac_executable_extensions; do
20354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20355 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20357 break 2
20358 fi
20359 done
20360 done
20361 IFS=$as_save_IFS
20362
20363 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
20364 ;;
20365 esac
20366 fi
20367 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
20368 if test -n "$SDL_CONFIG"; then
20369 { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
20370 echo "${ECHO_T}$SDL_CONFIG" >&6; }
20371 else
20372 { echo "$as_me:$LINENO: result: no" >&5
20373 echo "${ECHO_T}no" >&6; }
20374 fi
20375
20376
20377 min_sdl_version=1.1.6
20378 { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
20379 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
20380 no_sdl=""
20381 if test "$SDL_CONFIG" = "no" ; then
20382 no_sdl=yes
20383 else
20384 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
20385 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
20386
20387 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
20388 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20389 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
20390 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20391 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
20392 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20393 if test "x$enable_sdltest" = "xyes" ; then
20394 ac_save_CFLAGS="$CFLAGS"
20395 ac_save_CXXFLAGS="$CXXFLAGS"
20396 ac_save_LIBS="$LIBS"
20397 CFLAGS="$CFLAGS $SDL_CFLAGS"
20398 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
20399 LIBS="$LIBS $SDL_LIBS"
20400 rm -f conf.sdltest
20401 if test "$cross_compiling" = yes; then
20402 echo $ac_n "cross compiling; assumed OK... $ac_c"
20403 else
20404 cat >conftest.$ac_ext <<_ACEOF
20405 /* confdefs.h. */
20406 _ACEOF
20407 cat confdefs.h >>conftest.$ac_ext
20408 cat >>conftest.$ac_ext <<_ACEOF
20409 /* end confdefs.h. */
20410
20411 #include <stdio.h>
20412 #include <stdlib.h>
20413 #include <string.h>
20414 #include "SDL.h"
20415
20416 char*
20417 my_strdup (char *str)
20418 {
20419 char *new_str;
20420
20421 if (str)
20422 {
20423 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
20424 strcpy (new_str, str);
20425 }
20426 else
20427 new_str = NULL;
20428
20429 return new_str;
20430 }
20431
20432 int main (int argc, char *argv[])
20433 {
20434 int major, minor, micro;
20435 char *tmp_version;
20436
20437 /* This hangs on some systems (?)
20438 system ("touch conf.sdltest");
20439 */
20440 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
20441
20442 /* HP/UX 9 (%@#!) writes to sscanf strings */
20443 tmp_version = my_strdup("$min_sdl_version");
20444 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20445 printf("%s, bad version string\n", "$min_sdl_version");
20446 exit(1);
20447 }
20448
20449 if (($sdl_major_version > major) ||
20450 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
20451 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
20452 {
20453 return 0;
20454 }
20455 else
20456 {
20457 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
20458 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
20459 printf("*** best to upgrade to the required version.\n");
20460 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
20461 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
20462 printf("*** config.cache before re-running configure\n");
20463 return 1;
20464 }
20465 }
20466
20467
20468 _ACEOF
20469 rm -f conftest$ac_exeext
20470 if { (ac_try="$ac_link"
20471 case "(($ac_try" in
20472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20473 *) ac_try_echo=$ac_try;;
20474 esac
20475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20476 (eval "$ac_link") 2>&5
20477 ac_status=$?
20478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20479 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20480 { (case "(($ac_try" in
20481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20482 *) ac_try_echo=$ac_try;;
20483 esac
20484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20485 (eval "$ac_try") 2>&5
20486 ac_status=$?
20487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488 (exit $ac_status); }; }; then
20489 :
20490 else
20491 echo "$as_me: program exited with status $ac_status" >&5
20492 echo "$as_me: failed program was:" >&5
20493 sed 's/^/| /' conftest.$ac_ext >&5
20494
20495 ( exit $ac_status )
20496 no_sdl=yes
20497 fi
20498 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20499 fi
20500
20501
20502 CFLAGS="$ac_save_CFLAGS"
20503 CXXFLAGS="$ac_save_CXXFLAGS"
20504 LIBS="$ac_save_LIBS"
20505 fi
20506 fi
20507 if test "x$no_sdl" = x ; then
20508 { echo "$as_me:$LINENO: result: yes" >&5
20509 echo "${ECHO_T}yes" >&6; }
20510
20511 cat >>confdefs.h <<\_ACEOF
20512 #define HAVE_SDL 1
20513 _ACEOF
20514
20515
20516 else
20517 { echo "$as_me:$LINENO: result: no" >&5
20518 echo "${ECHO_T}no" >&6; }
20519 if test "$SDL_CONFIG" = "no" ; then
20520 echo "*** The sdl-config script installed by SDL could not be found"
20521 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
20522 echo "*** your path, or set the SDL_CONFIG environment variable to the"
20523 echo "*** full path to sdl-config."
20524 else
20525 if test -f conf.sdltest ; then
20526 :
20527 else
20528 echo "*** Could not run SDL test program, checking why..."
20529 CFLAGS="$CFLAGS $SDL_CFLAGS"
20530 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
20531 LIBS="$LIBS $SDL_LIBS"
20532 cat >conftest.$ac_ext <<_ACEOF
20533 /* confdefs.h. */
20534 _ACEOF
20535 cat confdefs.h >>conftest.$ac_ext
20536 cat >>conftest.$ac_ext <<_ACEOF
20537 /* end confdefs.h. */
20538
20539 #include <stdio.h>
20540 #include "SDL.h"
20541
20542 int main(int argc, char *argv[])
20543 { return 0; }
20544 #undef main
20545 #define main K_and_R_C_main
20546
20547 int
20548 main ()
20549 {
20550 return 0;
20551 ;
20552 return 0;
20553 }
20554 _ACEOF
20555 rm -f conftest.$ac_objext conftest$ac_exeext
20556 if { (ac_try="$ac_link"
20557 case "(($ac_try" in
20558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20559 *) ac_try_echo=$ac_try;;
20560 esac
20561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20562 (eval "$ac_link") 2>conftest.er1
20563 ac_status=$?
20564 grep -v '^ *+' conftest.er1 >conftest.err
20565 rm -f conftest.er1
20566 cat conftest.err >&5
20567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20568 (exit $ac_status); } &&
20569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20570 { (case "(($ac_try" in
20571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20572 *) ac_try_echo=$ac_try;;
20573 esac
20574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20575 (eval "$ac_try") 2>&5
20576 ac_status=$?
20577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20578 (exit $ac_status); }; } &&
20579 { ac_try='test -s conftest$ac_exeext'
20580 { (case "(($ac_try" in
20581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20582 *) ac_try_echo=$ac_try;;
20583 esac
20584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20585 (eval "$ac_try") 2>&5
20586 ac_status=$?
20587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20588 (exit $ac_status); }; }; then
20589 echo "*** The test program compiled, but did not run. This usually means"
20590 echo "*** that the run-time linker is not finding SDL or finding the wrong"
20591 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
20592 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20593 echo "*** to the installed location Also, make sure you have run ldconfig if that"
20594 echo "*** is required on your system"
20595 echo "***"
20596 echo "*** If you have an old version installed, it is best to remove it, although"
20597 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20598 else
20599 echo "$as_me: failed program was:" >&5
20600 sed 's/^/| /' conftest.$ac_ext >&5
20601
20602 echo "*** The test program failed to compile or link. See the file config.log for the"
20603 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
20604 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
20605 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
20606 fi
20607
20608 rm -f core conftest.err conftest.$ac_objext \
20609 conftest$ac_exeext conftest.$ac_ext
20610 CFLAGS="$ac_save_CFLAGS"
20611 CXXFLAGS="$ac_save_CXXFLAGS"
20612 LIBS="$ac_save_LIBS"
20613 fi
20614 fi
20615 SDL_CFLAGS=""
20616 SDL_LIBS=""
20617 :
20618 fi
20619
20620
20621 rm -f conf.sdltest
20622
20623 fi
20624
20625 if $use_gtk && $use_xv ; then
20626 { echo "$as_me:$LINENO: checking for XvQueryAdaptors in -lXv" >&5
20627 echo $ECHO_N "checking for XvQueryAdaptors in -lXv... $ECHO_C" >&6; }
20628 if test "${ac_cv_lib_Xv_XvQueryAdaptors+set}" = set; then
20629 echo $ECHO_N "(cached) $ECHO_C" >&6
20630 else
20631 ac_check_lib_save_LIBS=$LIBS
20632 LIBS="-lXv $GTK_LIBS
20633 $LIBS"
20634 cat >conftest.$ac_ext <<_ACEOF
20635 /* confdefs.h. */
20636 _ACEOF
20637 cat confdefs.h >>conftest.$ac_ext
20638 cat >>conftest.$ac_ext <<_ACEOF
20639 /* end confdefs.h. */
20640
20641 /* Override any GCC internal prototype to avoid an error.
20642 Use char because int might match the return type of a GCC
20643 builtin and then its argument prototype would still apply. */
20644 #ifdef __cplusplus
20645 extern "C"
20646 #endif
20647 char XvQueryAdaptors ();
20648 int
20649 main ()
20650 {
20651 return XvQueryAdaptors ();
20652 ;
20653 return 0;
20654 }
20655 _ACEOF
20656 rm -f conftest.$ac_objext conftest$ac_exeext
20657 if { (ac_try="$ac_link"
20658 case "(($ac_try" in
20659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20660 *) ac_try_echo=$ac_try;;
20661 esac
20662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20663 (eval "$ac_link") 2>conftest.er1
20664 ac_status=$?
20665 grep -v '^ *+' conftest.er1 >conftest.err
20666 rm -f conftest.er1
20667 cat conftest.err >&5
20668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669 (exit $ac_status); } &&
20670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20671 { (case "(($ac_try" in
20672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20673 *) ac_try_echo=$ac_try;;
20674 esac
20675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20676 (eval "$ac_try") 2>&5
20677 ac_status=$?
20678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20679 (exit $ac_status); }; } &&
20680 { ac_try='test -s conftest$ac_exeext'
20681 { (case "(($ac_try" in
20682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20683 *) ac_try_echo=$ac_try;;
20684 esac
20685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20686 (eval "$ac_try") 2>&5
20687 ac_status=$?
20688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689 (exit $ac_status); }; }; then
20690 ac_cv_lib_Xv_XvQueryAdaptors=yes
20691 else
20692 echo "$as_me: failed program was:" >&5
20693 sed 's/^/| /' conftest.$ac_ext >&5
20694
20695 ac_cv_lib_Xv_XvQueryAdaptors=no
20696 fi
20697
20698 rm -f core conftest.err conftest.$ac_objext \
20699 conftest$ac_exeext conftest.$ac_ext
20700 LIBS=$ac_check_lib_save_LIBS
20701 fi
20702 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvQueryAdaptors" >&5
20703 echo "${ECHO_T}$ac_cv_lib_Xv_XvQueryAdaptors" >&6; }
20704 if test $ac_cv_lib_Xv_XvQueryAdaptors = yes; then
20705 cat >>confdefs.h <<\_ACEOF
20706 #define HAVE_LIBXV 1
20707 _ACEOF
20708
20709
20710 XV_LIB='-lXv'
20711
20712 else
20713 { { echo "$as_me:$LINENO: error: Could not find Xv Lib" >&5
20714 echo "$as_me: error: Could not find Xv Lib" >&2;}
20715 { (exit 1); exit 1; }; }
20716 fi
20717
20718 fi
20719
20720
20721
20722 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20723 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
20724 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20725 echo $ECHO_N "(cached) $ECHO_C" >&6
20726 else
20727 ac_check_lib_save_LIBS=$LIBS
20728 LIBS="-lpthread $LIBS"
20729 cat >conftest.$ac_ext <<_ACEOF
20730 /* confdefs.h. */
20731 _ACEOF
20732 cat confdefs.h >>conftest.$ac_ext
20733 cat >>conftest.$ac_ext <<_ACEOF
20734 /* end confdefs.h. */
20735
20736 /* Override any GCC internal prototype to avoid an error.
20737 Use char because int might match the return type of a GCC
20738 builtin and then its argument prototype would still apply. */
20739 #ifdef __cplusplus
20740 extern "C"
20741 #endif
20742 char pthread_create ();
20743 int
20744 main ()
20745 {
20746 return pthread_create ();
20747 ;
20748 return 0;
20749 }
20750 _ACEOF
20751 rm -f conftest.$ac_objext conftest$ac_exeext
20752 if { (ac_try="$ac_link"
20753 case "(($ac_try" in
20754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20755 *) ac_try_echo=$ac_try;;
20756 esac
20757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20758 (eval "$ac_link") 2>conftest.er1
20759 ac_status=$?
20760 grep -v '^ *+' conftest.er1 >conftest.err
20761 rm -f conftest.er1
20762 cat conftest.err >&5
20763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20764 (exit $ac_status); } &&
20765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20766 { (case "(($ac_try" in
20767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20768 *) ac_try_echo=$ac_try;;
20769 esac
20770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20771 (eval "$ac_try") 2>&5
20772 ac_status=$?
20773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20774 (exit $ac_status); }; } &&
20775 { ac_try='test -s conftest$ac_exeext'
20776 { (case "(($ac_try" in
20777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20778 *) ac_try_echo=$ac_try;;
20779 esac
20780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20781 (eval "$ac_try") 2>&5
20782 ac_status=$?
20783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20784 (exit $ac_status); }; }; then
20785 ac_cv_lib_pthread_pthread_create=yes
20786 else
20787 echo "$as_me: failed program was:" >&5
20788 sed 's/^/| /' conftest.$ac_ext >&5
20789
20790 ac_cv_lib_pthread_pthread_create=no
20791 fi
20792
20793 rm -f core conftest.err conftest.$ac_objext \
20794 conftest$ac_exeext conftest.$ac_ext
20795 LIBS=$ac_check_lib_save_LIBS
20796 fi
20797 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20798 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
20799 if test $ac_cv_lib_pthread_pthread_create = yes; then
20800 PTHREAD_LIBS="-lpthread"
20801 fi
20802
20803
20804 OS_ARCH=`uname -s | sed -e 's|/|_|g'`
20805 # FreeBSD and OpenBSD have neither -lpthread nor integrated pthreads in libc.
20806 # Instead -pthread is used to the compiler/linker to get pthreads working right.
20807 if test x$OS_ARCH = xFreeBSD -o x$OS_ARCH = xOpenBSD; then
20808 CFLAGS="$CFLAGS -pthread"
20809 CXXFLAGS="$CXXFLAGS -pthread"
20810 fi
20811
20812
20813
20814 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
20815 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
20816 if test "${ac_cv_lib_m_sqrt+set}" = set; then
20817 echo $ECHO_N "(cached) $ECHO_C" >&6
20818 else
20819 ac_check_lib_save_LIBS=$LIBS
20820 LIBS="-lm $LIBS"
20821 cat >conftest.$ac_ext <<_ACEOF
20822 /* confdefs.h. */
20823 _ACEOF
20824 cat confdefs.h >>conftest.$ac_ext
20825 cat >>conftest.$ac_ext <<_ACEOF
20826 /* end confdefs.h. */
20827
20828 /* Override any GCC internal prototype to avoid an error.
20829 Use char because int might match the return type of a GCC
20830 builtin and then its argument prototype would still apply. */
20831 #ifdef __cplusplus
20832 extern "C"
20833 #endif
20834 char sqrt ();
20835 int
20836 main ()
20837 {
20838 return sqrt ();
20839 ;
20840 return 0;
20841 }
20842 _ACEOF
20843 rm -f conftest.$ac_objext conftest$ac_exeext
20844 if { (ac_try="$ac_link"
20845 case "(($ac_try" in
20846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20847 *) ac_try_echo=$ac_try;;
20848 esac
20849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20850 (eval "$ac_link") 2>conftest.er1
20851 ac_status=$?
20852 grep -v '^ *+' conftest.er1 >conftest.err
20853 rm -f conftest.er1
20854 cat conftest.err >&5
20855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20856 (exit $ac_status); } &&
20857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20858 { (case "(($ac_try" in
20859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20860 *) ac_try_echo=$ac_try;;
20861 esac
20862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20863 (eval "$ac_try") 2>&5
20864 ac_status=$?
20865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20866 (exit $ac_status); }; } &&
20867 { ac_try='test -s conftest$ac_exeext'
20868 { (case "(($ac_try" in
20869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20870 *) ac_try_echo=$ac_try;;
20871 esac
20872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20873 (eval "$ac_try") 2>&5
20874 ac_status=$?
20875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20876 (exit $ac_status); }; }; then
20877 ac_cv_lib_m_sqrt=yes
20878 else
20879 echo "$as_me: failed program was:" >&5
20880 sed 's/^/| /' conftest.$ac_ext >&5
20881
20882 ac_cv_lib_m_sqrt=no
20883 fi
20884
20885 rm -f core conftest.err conftest.$ac_objext \
20886 conftest$ac_exeext conftest.$ac_ext
20887 LIBS=$ac_check_lib_save_LIBS
20888 fi
20889 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
20890 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
20891 if test $ac_cv_lib_m_sqrt = yes; then
20892 cat >>confdefs.h <<_ACEOF
20893 #define HAVE_LIBM 1
20894 _ACEOF
20895
20896 LIBS="-lm $LIBS"
20897
20898 fi
20899
20900
20901 REQUIRES_NOPKGCONFIG=""
20902 if test "$GCC" = "yes"; then
20903 { echo "$as_me:$LINENO: checking for poptGetContext in -lpopt" >&5
20904 echo $ECHO_N "checking for poptGetContext in -lpopt... $ECHO_C" >&6; }
20905 if test "${ac_cv_lib_popt_poptGetContext+set}" = set; then
20906 echo $ECHO_N "(cached) $ECHO_C" >&6
20907 else
20908 ac_check_lib_save_LIBS=$LIBS
20909 LIBS="-lpopt $LIBS"
20910 cat >conftest.$ac_ext <<_ACEOF
20911 /* confdefs.h. */
20912 _ACEOF
20913 cat confdefs.h >>conftest.$ac_ext
20914 cat >>conftest.$ac_ext <<_ACEOF
20915 /* end confdefs.h. */
20916
20917 /* Override any GCC internal prototype to avoid an error.
20918 Use char because int might match the return type of a GCC
20919 builtin and then its argument prototype would still apply. */
20920 #ifdef __cplusplus
20921 extern "C"
20922 #endif
20923 char poptGetContext ();
20924 int
20925 main ()
20926 {
20927 return poptGetContext ();
20928 ;
20929 return 0;
20930 }
20931 _ACEOF
20932 rm -f conftest.$ac_objext conftest$ac_exeext
20933 if { (ac_try="$ac_link"
20934 case "(($ac_try" in
20935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20936 *) ac_try_echo=$ac_try;;
20937 esac
20938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20939 (eval "$ac_link") 2>conftest.er1
20940 ac_status=$?
20941 grep -v '^ *+' conftest.er1 >conftest.err
20942 rm -f conftest.er1
20943 cat conftest.err >&5
20944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20945 (exit $ac_status); } &&
20946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20947 { (case "(($ac_try" in
20948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20949 *) ac_try_echo=$ac_try;;
20950 esac
20951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20952 (eval "$ac_try") 2>&5
20953 ac_status=$?
20954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20955 (exit $ac_status); }; } &&
20956 { ac_try='test -s conftest$ac_exeext'
20957 { (case "(($ac_try" in
20958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20959 *) ac_try_echo=$ac_try;;
20960 esac
20961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20962 (eval "$ac_try") 2>&5
20963 ac_status=$?
20964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20965 (exit $ac_status); }; }; then
20966 ac_cv_lib_popt_poptGetContext=yes
20967 else
20968 echo "$as_me: failed program was:" >&5
20969 sed 's/^/| /' conftest.$ac_ext >&5
20970
20971 ac_cv_lib_popt_poptGetContext=no
20972 fi
20973
20974 rm -f core conftest.err conftest.$ac_objext \
20975 conftest$ac_exeext conftest.$ac_ext
20976 LIBS=$ac_check_lib_save_LIBS
20977 fi
20978 { echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptGetContext" >&5
20979 echo "${ECHO_T}$ac_cv_lib_popt_poptGetContext" >&6; }
20980 if test $ac_cv_lib_popt_poptGetContext = yes; then
20981
20982 POPT_LIB="-lpopt"
20983
20984 cat >>confdefs.h <<\_ACEOF
20985 #define HAVE_LIBPOPT 1
20986 _ACEOF
20987
20988
20989 else
20990
20991 { echo "$as_me:$LINENO: WARNING: playdv needs the popt package for command line parsing.
20992 The source archive for popt is available at:
20993 ftp://ftp.redhat.com/pub/redhat/code/popt" >&5
20994 echo "$as_me: WARNING: playdv needs the popt package for command line parsing.
20995 The source archive for popt is available at:
20996 ftp://ftp.redhat.com/pub/redhat/code/popt" >&2;}
20997
20998 fi
20999
21000 fi
21001
21002
21003
21004 { echo "$as_me:$LINENO: checking for X" >&5
21005 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
21006
21007
21008 # Check whether --with-x was given.
21009 if test "${with_x+set}" = set; then
21010 withval=$with_x;
21011 fi
21012
21013 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
21014 if test "x$with_x" = xno; then
21015 # The user explicitly disabled X.
21016 have_x=disabled
21017 else
21018 case $x_includes,$x_libraries in #(
21019 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
21020 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
21021 { (exit 1); exit 1; }; };; #(
21022 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
21023 echo $ECHO_N "(cached) $ECHO_C" >&6
21024 else
21025 # One or both of the vars are not set, and there is no cached value.
21026 ac_x_includes=no ac_x_libraries=no
21027 rm -f -r conftest.dir
21028 if mkdir conftest.dir; then
21029 cd conftest.dir
21030 cat >Imakefile <<'_ACEOF'
21031 incroot:
21032 @echo incroot='${INCROOT}'
21033 usrlibdir:
21034 @echo usrlibdir='${USRLIBDIR}'
21035 libdir:
21036 @echo libdir='${LIBDIR}'
21037 _ACEOF
21038 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
21039 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
21040 for ac_var in incroot usrlibdir libdir; do
21041 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
21042 done
21043 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
21044 for ac_extension in a so sl; do
21045 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
21046 test -f "$ac_im_libdir/libX11.$ac_extension"; then
21047 ac_im_usrlibdir=$ac_im_libdir; break
21048 fi
21049 done
21050 # Screen out bogus values from the imake configuration. They are
21051 # bogus both because they are the default anyway, and because
21052 # using them would break gcc on systems where it needs fixed includes.
21053 case $ac_im_incroot in
21054 /usr/include) ac_x_includes= ;;
21055 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
21056 esac
21057 case $ac_im_usrlibdir in
21058 /usr/lib | /lib) ;;
21059 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
21060 esac
21061 fi
21062 cd ..
21063 rm -f -r conftest.dir
21064 fi
21065
21066 # Standard set of common directories for X headers.
21067 # Check X11 before X11Rn because it is often a symlink to the current release.
21068 ac_x_header_dirs='
21069 /usr/X11/include
21070 /usr/X11R6/include
21071 /usr/X11R5/include
21072 /usr/X11R4/include
21073
21074 /usr/include/X11
21075 /usr/include/X11R6
21076 /usr/include/X11R5
21077 /usr/include/X11R4
21078
21079 /usr/local/X11/include
21080 /usr/local/X11R6/include
21081 /usr/local/X11R5/include
21082 /usr/local/X11R4/include
21083
21084 /usr/local/include/X11
21085 /usr/local/include/X11R6
21086 /usr/local/include/X11R5
21087 /usr/local/include/X11R4
21088
21089 /usr/X386/include
21090 /usr/x386/include
21091 /usr/XFree86/include/X11
21092
21093 /usr/include
21094 /usr/local/include
21095 /usr/unsupported/include
21096 /usr/athena/include
21097 /usr/local/x11r5/include
21098 /usr/lpp/Xamples/include
21099
21100 /usr/openwin/include
21101 /usr/openwin/share/include'
21102
21103 if test "$ac_x_includes" = no; then
21104 # Guess where to find include files, by looking for Xlib.h.
21105 # First, try using that file with no special directory specified.
21106 cat >conftest.$ac_ext <<_ACEOF
21107 /* confdefs.h. */
21108 _ACEOF
21109 cat confdefs.h >>conftest.$ac_ext
21110 cat >>conftest.$ac_ext <<_ACEOF
21111 /* end confdefs.h. */
21112 #include <X11/Xlib.h>
21113 _ACEOF
21114 if { (ac_try="$ac_cpp conftest.$ac_ext"
21115 case "(($ac_try" in
21116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21117 *) ac_try_echo=$ac_try;;
21118 esac
21119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21120 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21121 ac_status=$?
21122 grep -v '^ *+' conftest.er1 >conftest.err
21123 rm -f conftest.er1
21124 cat conftest.err >&5
21125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21126 (exit $ac_status); } >/dev/null; then
21127 if test -s conftest.err; then
21128 ac_cpp_err=$ac_c_preproc_warn_flag
21129 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21130 else
21131 ac_cpp_err=
21132 fi
21133 else
21134 ac_cpp_err=yes
21135 fi
21136 if test -z "$ac_cpp_err"; then
21137 # We can compile using X headers with no special include directory.
21138 ac_x_includes=
21139 else
21140 echo "$as_me: failed program was:" >&5
21141 sed 's/^/| /' conftest.$ac_ext >&5
21142
21143 for ac_dir in $ac_x_header_dirs; do
21144 if test -r "$ac_dir/X11/Xlib.h"; then
21145 ac_x_includes=$ac_dir
21146 break
21147 fi
21148 done
21149 fi
21150
21151 rm -f conftest.err conftest.$ac_ext
21152 fi # $ac_x_includes = no
21153
21154 if test "$ac_x_libraries" = no; then
21155 # Check for the libraries.
21156 # See if we find them without any special options.
21157 # Don't add to $LIBS permanently.
21158 ac_save_LIBS=$LIBS
21159 LIBS="-lXt $LIBS"
21160 cat >conftest.$ac_ext <<_ACEOF
21161 /* confdefs.h. */
21162 _ACEOF
21163 cat confdefs.h >>conftest.$ac_ext
21164 cat >>conftest.$ac_ext <<_ACEOF
21165 /* end confdefs.h. */
21166 #include <X11/Xlib.h>
21167 int
21168 main ()
21169 {
21170 XrmInitialize ()
21171 ;
21172 return 0;
21173 }
21174 _ACEOF
21175 rm -f conftest.$ac_objext conftest$ac_exeext
21176 if { (ac_try="$ac_link"
21177 case "(($ac_try" in
21178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21179 *) ac_try_echo=$ac_try;;
21180 esac
21181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21182 (eval "$ac_link") 2>conftest.er1
21183 ac_status=$?
21184 grep -v '^ *+' conftest.er1 >conftest.err
21185 rm -f conftest.er1
21186 cat conftest.err >&5
21187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21188 (exit $ac_status); } &&
21189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21190 { (case "(($ac_try" in
21191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21192 *) ac_try_echo=$ac_try;;
21193 esac
21194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21195 (eval "$ac_try") 2>&5
21196 ac_status=$?
21197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21198 (exit $ac_status); }; } &&
21199 { ac_try='test -s conftest$ac_exeext'
21200 { (case "(($ac_try" in
21201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21202 *) ac_try_echo=$ac_try;;
21203 esac
21204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21205 (eval "$ac_try") 2>&5
21206 ac_status=$?
21207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21208 (exit $ac_status); }; }; then
21209 LIBS=$ac_save_LIBS
21210 # We can link X programs with no special library path.
21211 ac_x_libraries=
21212 else
21213 echo "$as_me: failed program was:" >&5
21214 sed 's/^/| /' conftest.$ac_ext >&5
21215
21216 LIBS=$ac_save_LIBS
21217 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21218 do
21219 # Don't even attempt the hair of trying to link an X program!
21220 for ac_extension in a so sl; do
21221 if test -r "$ac_dir/libXt.$ac_extension"; then
21222 ac_x_libraries=$ac_dir
21223 break 2
21224 fi
21225 done
21226 done
21227 fi
21228
21229 rm -f core conftest.err conftest.$ac_objext \
21230 conftest$ac_exeext conftest.$ac_ext
21231 fi # $ac_x_libraries = no
21232
21233 case $ac_x_includes,$ac_x_libraries in #(
21234 no,* | *,no | *\'*)
21235 # Didn't find X, or a directory has "'" in its name.
21236 ac_cv_have_x="have_x=no";; #(
21237 *)
21238 # Record where we found X for the cache.
21239 ac_cv_have_x="have_x=yes\
21240 ac_x_includes='$ac_x_includes'\
21241 ac_x_libraries='$ac_x_libraries'"
21242 esac
21243 fi
21244 ;; #(
21245 *) have_x=yes;;
21246 esac
21247 eval "$ac_cv_have_x"
21248 fi # $with_x != no
21249
21250 if test "$have_x" != yes; then
21251 { echo "$as_me:$LINENO: result: $have_x" >&5
21252 echo "${ECHO_T}$have_x" >&6; }
21253 no_x=yes
21254 else
21255 # If each of the values was on the command line, it overrides each guess.
21256 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
21257 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
21258 # Update the cache value to reflect the command line values.
21259 ac_cv_have_x="have_x=yes\
21260 ac_x_includes='$x_includes'\
21261 ac_x_libraries='$x_libraries'"
21262 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
21263 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
21264 fi
21265
21266 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21267 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21268 if test "${ac_cv_header_stdc+set}" = set; then
21269 echo $ECHO_N "(cached) $ECHO_C" >&6
21270 else
21271 cat >conftest.$ac_ext <<_ACEOF
21272 /* confdefs.h. */
21273 _ACEOF
21274 cat confdefs.h >>conftest.$ac_ext
21275 cat >>conftest.$ac_ext <<_ACEOF
21276 /* end confdefs.h. */
21277 #include <stdlib.h>
21278 #include <stdarg.h>
21279 #include <string.h>
21280 #include <float.h>
21281
21282 int
21283 main ()
21284 {
21285
21286 ;
21287 return 0;
21288 }
21289 _ACEOF
21290 rm -f conftest.$ac_objext
21291 if { (ac_try="$ac_compile"
21292 case "(($ac_try" in
21293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21294 *) ac_try_echo=$ac_try;;
21295 esac
21296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21297 (eval "$ac_compile") 2>conftest.er1
21298 ac_status=$?
21299 grep -v '^ *+' conftest.er1 >conftest.err
21300 rm -f conftest.er1
21301 cat conftest.err >&5
21302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21303 (exit $ac_status); } &&
21304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21305 { (case "(($ac_try" in
21306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21307 *) ac_try_echo=$ac_try;;
21308 esac
21309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21310 (eval "$ac_try") 2>&5
21311 ac_status=$?
21312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21313 (exit $ac_status); }; } &&
21314 { ac_try='test -s conftest.$ac_objext'
21315 { (case "(($ac_try" in
21316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21317 *) ac_try_echo=$ac_try;;
21318 esac
21319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21320 (eval "$ac_try") 2>&5
21321 ac_status=$?
21322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21323 (exit $ac_status); }; }; then
21324 ac_cv_header_stdc=yes
21325 else
21326 echo "$as_me: failed program was:" >&5
21327 sed 's/^/| /' conftest.$ac_ext >&5
21328
21329 ac_cv_header_stdc=no
21330 fi
21331
21332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21333
21334 if test $ac_cv_header_stdc = yes; then
21335 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21336 cat >conftest.$ac_ext <<_ACEOF
21337 /* confdefs.h. */
21338 _ACEOF
21339 cat confdefs.h >>conftest.$ac_ext
21340 cat >>conftest.$ac_ext <<_ACEOF
21341 /* end confdefs.h. */
21342 #include <string.h>
21343
21344 _ACEOF
21345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21346 $EGREP "memchr" >/dev/null 2>&1; then
21347 :
21348 else
21349 ac_cv_header_stdc=no
21350 fi
21351 rm -f conftest*
21352
21353 fi
21354
21355 if test $ac_cv_header_stdc = yes; then
21356 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21357 cat >conftest.$ac_ext <<_ACEOF
21358 /* confdefs.h. */
21359 _ACEOF
21360 cat confdefs.h >>conftest.$ac_ext
21361 cat >>conftest.$ac_ext <<_ACEOF
21362 /* end confdefs.h. */
21363 #include <stdlib.h>
21364
21365 _ACEOF
21366 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21367 $EGREP "free" >/dev/null 2>&1; then
21368 :
21369 else
21370 ac_cv_header_stdc=no
21371 fi
21372 rm -f conftest*
21373
21374 fi
21375
21376 if test $ac_cv_header_stdc = yes; then
21377 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21378 if test "$cross_compiling" = yes; then
21379 :
21380 else
21381 cat >conftest.$ac_ext <<_ACEOF
21382 /* confdefs.h. */
21383 _ACEOF
21384 cat confdefs.h >>conftest.$ac_ext
21385 cat >>conftest.$ac_ext <<_ACEOF
21386 /* end confdefs.h. */
21387 #include <ctype.h>
21388 #include <stdlib.h>
21389 #if ((' ' & 0x0FF) == 0x020)
21390 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21391 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21392 #else
21393 # define ISLOWER(c) \
21394 (('a' <= (c) && (c) <= 'i') \
21395 || ('j' <= (c) && (c) <= 'r') \
21396 || ('s' <= (c) && (c) <= 'z'))
21397 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21398 #endif
21399
21400 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21401 int
21402 main ()
21403 {
21404 int i;
21405 for (i = 0; i < 256; i++)
21406 if (XOR (islower (i), ISLOWER (i))
21407 || toupper (i) != TOUPPER (i))
21408 return 2;
21409 return 0;
21410 }
21411 _ACEOF
21412 rm -f conftest$ac_exeext
21413 if { (ac_try="$ac_link"
21414 case "(($ac_try" in
21415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21416 *) ac_try_echo=$ac_try;;
21417 esac
21418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21419 (eval "$ac_link") 2>&5
21420 ac_status=$?
21421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21423 { (case "(($ac_try" in
21424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21425 *) ac_try_echo=$ac_try;;
21426 esac
21427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21428 (eval "$ac_try") 2>&5
21429 ac_status=$?
21430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21431 (exit $ac_status); }; }; then
21432 :
21433 else
21434 echo "$as_me: program exited with status $ac_status" >&5
21435 echo "$as_me: failed program was:" >&5
21436 sed 's/^/| /' conftest.$ac_ext >&5
21437
21438 ( exit $ac_status )
21439 ac_cv_header_stdc=no
21440 fi
21441 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21442 fi
21443
21444
21445 fi
21446 fi
21447 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21448 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21449 if test $ac_cv_header_stdc = yes; then
21450
21451 cat >>confdefs.h <<\_ACEOF
21452 #define STDC_HEADERS 1
21453 _ACEOF
21454
21455 fi
21456
21457
21458
21459
21460
21461
21462
21463
21464
21465 for ac_header in fcntl.h sys/time.h unistd.h linux/videodev.h sys/soundcard.h \
21466 endian.h machine/endian.h inttypes.h
21467 do
21468 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21469 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21470 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21472 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21473 echo $ECHO_N "(cached) $ECHO_C" >&6
21474 fi
21475 ac_res=`eval echo '${'$as_ac_Header'}'`
21476 { echo "$as_me:$LINENO: result: $ac_res" >&5
21477 echo "${ECHO_T}$ac_res" >&6; }
21478 else
21479 # Is the header compilable?
21480 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21481 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21482 cat >conftest.$ac_ext <<_ACEOF
21483 /* confdefs.h. */
21484 _ACEOF
21485 cat confdefs.h >>conftest.$ac_ext
21486 cat >>conftest.$ac_ext <<_ACEOF
21487 /* end confdefs.h. */
21488 $ac_includes_default
21489 #include <$ac_header>
21490 _ACEOF
21491 rm -f conftest.$ac_objext
21492 if { (ac_try="$ac_compile"
21493 case "(($ac_try" in
21494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21495 *) ac_try_echo=$ac_try;;
21496 esac
21497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21498 (eval "$ac_compile") 2>conftest.er1
21499 ac_status=$?
21500 grep -v '^ *+' conftest.er1 >conftest.err
21501 rm -f conftest.er1
21502 cat conftest.err >&5
21503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21504 (exit $ac_status); } &&
21505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21506 { (case "(($ac_try" in
21507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21508 *) ac_try_echo=$ac_try;;
21509 esac
21510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21511 (eval "$ac_try") 2>&5
21512 ac_status=$?
21513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21514 (exit $ac_status); }; } &&
21515 { ac_try='test -s conftest.$ac_objext'
21516 { (case "(($ac_try" in
21517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21518 *) ac_try_echo=$ac_try;;
21519 esac
21520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21521 (eval "$ac_try") 2>&5
21522 ac_status=$?
21523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21524 (exit $ac_status); }; }; then
21525 ac_header_compiler=yes
21526 else
21527 echo "$as_me: failed program was:" >&5
21528 sed 's/^/| /' conftest.$ac_ext >&5
21529
21530 ac_header_compiler=no
21531 fi
21532
21533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21534 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21535 echo "${ECHO_T}$ac_header_compiler" >&6; }
21536
21537 # Is the header present?
21538 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21539 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21540 cat >conftest.$ac_ext <<_ACEOF
21541 /* confdefs.h. */
21542 _ACEOF
21543 cat confdefs.h >>conftest.$ac_ext
21544 cat >>conftest.$ac_ext <<_ACEOF
21545 /* end confdefs.h. */
21546 #include <$ac_header>
21547 _ACEOF
21548 if { (ac_try="$ac_cpp conftest.$ac_ext"
21549 case "(($ac_try" in
21550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21551 *) ac_try_echo=$ac_try;;
21552 esac
21553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21554 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21555 ac_status=$?
21556 grep -v '^ *+' conftest.er1 >conftest.err
21557 rm -f conftest.er1
21558 cat conftest.err >&5
21559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21560 (exit $ac_status); } >/dev/null; then
21561 if test -s conftest.err; then
21562 ac_cpp_err=$ac_c_preproc_warn_flag
21563 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21564 else
21565 ac_cpp_err=
21566 fi
21567 else
21568 ac_cpp_err=yes
21569 fi
21570 if test -z "$ac_cpp_err"; then
21571 ac_header_preproc=yes
21572 else
21573 echo "$as_me: failed program was:" >&5
21574 sed 's/^/| /' conftest.$ac_ext >&5
21575
21576 ac_header_preproc=no
21577 fi
21578
21579 rm -f conftest.err conftest.$ac_ext
21580 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21581 echo "${ECHO_T}$ac_header_preproc" >&6; }
21582
21583 # So? What about this header?
21584 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21585 yes:no: )
21586 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21587 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21588 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21589 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21590 ac_header_preproc=yes
21591 ;;
21592 no:yes:* )
21593 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21594 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21595 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21596 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21597 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21598 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21599 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21600 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21601 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21602 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21603 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21604 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21605
21606 ;;
21607 esac
21608 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21609 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21610 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21611 echo $ECHO_N "(cached) $ECHO_C" >&6
21612 else
21613 eval "$as_ac_Header=\$ac_header_preproc"
21614 fi
21615 ac_res=`eval echo '${'$as_ac_Header'}'`
21616 { echo "$as_me:$LINENO: result: $ac_res" >&5
21617 echo "${ECHO_T}$ac_res" >&6; }
21618
21619 fi
21620 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21621 cat >>confdefs.h <<_ACEOF
21622 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21623 _ACEOF
21624
21625 fi
21626
21627 done
21628
21629
21630 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21631 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21632 if test "${ac_cv_c_const+set}" = set; then
21633 echo $ECHO_N "(cached) $ECHO_C" >&6
21634 else
21635 cat >conftest.$ac_ext <<_ACEOF
21636 /* confdefs.h. */
21637 _ACEOF
21638 cat confdefs.h >>conftest.$ac_ext
21639 cat >>conftest.$ac_ext <<_ACEOF
21640 /* end confdefs.h. */
21641
21642 int
21643 main ()
21644 {
21645 /* FIXME: Include the comments suggested by Paul. */
21646 #ifndef __cplusplus
21647 /* Ultrix mips cc rejects this. */
21648 typedef int charset[2];
21649 const charset x;
21650 /* SunOS 4.1.1 cc rejects this. */
21651 char const *const *ccp;
21652 char **p;
21653 /* NEC SVR4.0.2 mips cc rejects this. */
21654 struct point {int x, y;};
21655 static struct point const zero = {0,0};
21656 /* AIX XL C 1.02.0.0 rejects this.
21657 It does not let you subtract one const X* pointer from another in
21658 an arm of an if-expression whose if-part is not a constant
21659 expression */
21660 const char *g = "string";
21661 ccp = &g + (g ? g-g : 0);
21662 /* HPUX 7.0 cc rejects these. */
21663 ++ccp;
21664 p = (char**) ccp;
21665 ccp = (char const *const *) p;
21666 { /* SCO 3.2v4 cc rejects this. */
21667 char *t;
21668 char const *s = 0 ? (char *) 0 : (char const *) 0;
21669
21670 *t++ = 0;
21671 if (s) return 0;
21672 }
21673 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21674 int x[] = {25, 17};
21675 const int *foo = &x[0];
21676 ++foo;
21677 }
21678 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21679 typedef const int *iptr;
21680 iptr p = 0;
21681 ++p;
21682 }
21683 { /* AIX XL C 1.02.0.0 rejects this saying
21684 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21685 struct s { int j; const int *ap[3]; };
21686 struct s *b; b->j = 5;
21687 }
21688 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21689 const int foo = 10;
21690 if (!foo) return 0;
21691 }
21692 return !x[0] && !zero.x;
21693 #endif
21694
21695 ;
21696 return 0;
21697 }
21698 _ACEOF
21699 rm -f conftest.$ac_objext
21700 if { (ac_try="$ac_compile"
21701 case "(($ac_try" in
21702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21703 *) ac_try_echo=$ac_try;;
21704 esac
21705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21706 (eval "$ac_compile") 2>conftest.er1
21707 ac_status=$?
21708 grep -v '^ *+' conftest.er1 >conftest.err
21709 rm -f conftest.er1
21710 cat conftest.err >&5
21711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21712 (exit $ac_status); } &&
21713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21714 { (case "(($ac_try" in
21715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21716 *) ac_try_echo=$ac_try;;
21717 esac
21718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21719 (eval "$ac_try") 2>&5
21720 ac_status=$?
21721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21722 (exit $ac_status); }; } &&
21723 { ac_try='test -s conftest.$ac_objext'
21724 { (case "(($ac_try" in
21725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21726 *) ac_try_echo=$ac_try;;
21727 esac
21728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21729 (eval "$ac_try") 2>&5
21730 ac_status=$?
21731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21732 (exit $ac_status); }; }; then
21733 ac_cv_c_const=yes
21734 else
21735 echo "$as_me: failed program was:" >&5
21736 sed 's/^/| /' conftest.$ac_ext >&5
21737
21738 ac_cv_c_const=no
21739 fi
21740
21741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21742 fi
21743 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21744 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21745 if test $ac_cv_c_const = no; then
21746
21747 cat >>confdefs.h <<\_ACEOF
21748 #define const
21749 _ACEOF
21750
21751 fi
21752
21753 { echo "$as_me:$LINENO: checking for inline" >&5
21754 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
21755 if test "${ac_cv_c_inline+set}" = set; then
21756 echo $ECHO_N "(cached) $ECHO_C" >&6
21757 else
21758 ac_cv_c_inline=no
21759 for ac_kw in inline __inline__ __inline; do
21760 cat >conftest.$ac_ext <<_ACEOF
21761 /* confdefs.h. */
21762 _ACEOF
21763 cat confdefs.h >>conftest.$ac_ext
21764 cat >>conftest.$ac_ext <<_ACEOF
21765 /* end confdefs.h. */
21766 #ifndef __cplusplus
21767 typedef int foo_t;
21768 static $ac_kw foo_t static_foo () {return 0; }
21769 $ac_kw foo_t foo () {return 0; }
21770 #endif
21771
21772 _ACEOF
21773 rm -f conftest.$ac_objext
21774 if { (ac_try="$ac_compile"
21775 case "(($ac_try" in
21776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21777 *) ac_try_echo=$ac_try;;
21778 esac
21779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21780 (eval "$ac_compile") 2>conftest.er1
21781 ac_status=$?
21782 grep -v '^ *+' conftest.er1 >conftest.err
21783 rm -f conftest.er1
21784 cat conftest.err >&5
21785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21786 (exit $ac_status); } &&
21787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21788 { (case "(($ac_try" in
21789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21790 *) ac_try_echo=$ac_try;;
21791 esac
21792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21793 (eval "$ac_try") 2>&5
21794 ac_status=$?
21795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21796 (exit $ac_status); }; } &&
21797 { ac_try='test -s conftest.$ac_objext'
21798 { (case "(($ac_try" in
21799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21800 *) ac_try_echo=$ac_try;;
21801 esac
21802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21803 (eval "$ac_try") 2>&5
21804 ac_status=$?
21805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21806 (exit $ac_status); }; }; then
21807 ac_cv_c_inline=$ac_kw
21808 else
21809 echo "$as_me: failed program was:" >&5
21810 sed 's/^/| /' conftest.$ac_ext >&5
21811
21812
21813 fi
21814
21815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21816 test "$ac_cv_c_inline" != no && break
21817 done
21818
21819 fi
21820 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21821 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
21822
21823
21824 case $ac_cv_c_inline in
21825 inline | yes) ;;
21826 *)
21827 case $ac_cv_c_inline in
21828 no) ac_val=;;
21829 *) ac_val=$ac_cv_c_inline;;
21830 esac
21831 cat >>confdefs.h <<_ACEOF
21832 #ifndef __cplusplus
21833 #define inline $ac_val
21834 #endif
21835 _ACEOF
21836 ;;
21837 esac
21838
21839 { echo "$as_me:$LINENO: checking for off_t" >&5
21840 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
21841 if test "${ac_cv_type_off_t+set}" = set; then
21842 echo $ECHO_N "(cached) $ECHO_C" >&6
21843 else
21844 cat >conftest.$ac_ext <<_ACEOF
21845 /* confdefs.h. */
21846 _ACEOF
21847 cat confdefs.h >>conftest.$ac_ext
21848 cat >>conftest.$ac_ext <<_ACEOF
21849 /* end confdefs.h. */
21850 $ac_includes_default
21851 typedef off_t ac__type_new_;
21852 int
21853 main ()
21854 {
21855 if ((ac__type_new_ *) 0)
21856 return 0;
21857 if (sizeof (ac__type_new_))
21858 return 0;
21859 ;
21860 return 0;
21861 }
21862 _ACEOF
21863 rm -f conftest.$ac_objext
21864 if { (ac_try="$ac_compile"
21865 case "(($ac_try" in
21866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21867 *) ac_try_echo=$ac_try;;
21868 esac
21869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21870 (eval "$ac_compile") 2>conftest.er1
21871 ac_status=$?
21872 grep -v '^ *+' conftest.er1 >conftest.err
21873 rm -f conftest.er1
21874 cat conftest.err >&5
21875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21876 (exit $ac_status); } &&
21877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21878 { (case "(($ac_try" in
21879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21880 *) ac_try_echo=$ac_try;;
21881 esac
21882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21883 (eval "$ac_try") 2>&5
21884 ac_status=$?
21885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21886 (exit $ac_status); }; } &&
21887 { ac_try='test -s conftest.$ac_objext'
21888 { (case "(($ac_try" in
21889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21890 *) ac_try_echo=$ac_try;;
21891 esac
21892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21893 (eval "$ac_try") 2>&5
21894 ac_status=$?
21895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21896 (exit $ac_status); }; }; then
21897 ac_cv_type_off_t=yes
21898 else
21899 echo "$as_me: failed program was:" >&5
21900 sed 's/^/| /' conftest.$ac_ext >&5
21901
21902 ac_cv_type_off_t=no
21903 fi
21904
21905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21906 fi
21907 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21908 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
21909 if test $ac_cv_type_off_t = yes; then
21910 :
21911 else
21912
21913 cat >>confdefs.h <<_ACEOF
21914 #define off_t long int
21915 _ACEOF
21916
21917 fi
21918
21919 { echo "$as_me:$LINENO: checking for size_t" >&5
21920 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21921 if test "${ac_cv_type_size_t+set}" = set; then
21922 echo $ECHO_N "(cached) $ECHO_C" >&6
21923 else
21924 cat >conftest.$ac_ext <<_ACEOF
21925 /* confdefs.h. */
21926 _ACEOF
21927 cat confdefs.h >>conftest.$ac_ext
21928 cat >>conftest.$ac_ext <<_ACEOF
21929 /* end confdefs.h. */
21930 $ac_includes_default
21931 typedef size_t ac__type_new_;
21932 int
21933 main ()
21934 {
21935 if ((ac__type_new_ *) 0)
21936 return 0;
21937 if (sizeof (ac__type_new_))
21938 return 0;
21939 ;
21940 return 0;
21941 }
21942 _ACEOF
21943 rm -f conftest.$ac_objext
21944 if { (ac_try="$ac_compile"
21945 case "(($ac_try" in
21946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21947 *) ac_try_echo=$ac_try;;
21948 esac
21949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21950 (eval "$ac_compile") 2>conftest.er1
21951 ac_status=$?
21952 grep -v '^ *+' conftest.er1 >conftest.err
21953 rm -f conftest.er1
21954 cat conftest.err >&5
21955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21956 (exit $ac_status); } &&
21957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21958 { (case "(($ac_try" in
21959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21960 *) ac_try_echo=$ac_try;;
21961 esac
21962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21963 (eval "$ac_try") 2>&5
21964 ac_status=$?
21965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21966 (exit $ac_status); }; } &&
21967 { ac_try='test -s conftest.$ac_objext'
21968 { (case "(($ac_try" in
21969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21970 *) ac_try_echo=$ac_try;;
21971 esac
21972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21973 (eval "$ac_try") 2>&5
21974 ac_status=$?
21975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21976 (exit $ac_status); }; }; then
21977 ac_cv_type_size_t=yes
21978 else
21979 echo "$as_me: failed program was:" >&5
21980 sed 's/^/| /' conftest.$ac_ext >&5
21981
21982 ac_cv_type_size_t=no
21983 fi
21984
21985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21986 fi
21987 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21988 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
21989 if test $ac_cv_type_size_t = yes; then
21990 :
21991 else
21992
21993 cat >>confdefs.h <<_ACEOF
21994 #define size_t unsigned int
21995 _ACEOF
21996
21997 fi
21998
21999 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
22000 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
22001 if test "${ac_cv_header_time+set}" = set; then
22002 echo $ECHO_N "(cached) $ECHO_C" >&6
22003 else
22004 cat >conftest.$ac_ext <<_ACEOF
22005 /* confdefs.h. */
22006 _ACEOF
22007 cat confdefs.h >>conftest.$ac_ext
22008 cat >>conftest.$ac_ext <<_ACEOF
22009 /* end confdefs.h. */
22010 #include <sys/types.h>
22011 #include <sys/time.h>
22012 #include <time.h>
22013
22014 int
22015 main ()
22016 {
22017 if ((struct tm *) 0)
22018 return 0;
22019 ;
22020 return 0;
22021 }
22022 _ACEOF
22023 rm -f conftest.$ac_objext
22024 if { (ac_try="$ac_compile"
22025 case "(($ac_try" in
22026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22027 *) ac_try_echo=$ac_try;;
22028 esac
22029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22030 (eval "$ac_compile") 2>conftest.er1
22031 ac_status=$?
22032 grep -v '^ *+' conftest.er1 >conftest.err
22033 rm -f conftest.er1
22034 cat conftest.err >&5
22035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22036 (exit $ac_status); } &&
22037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22038 { (case "(($ac_try" in
22039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22040 *) ac_try_echo=$ac_try;;
22041 esac
22042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22043 (eval "$ac_try") 2>&5
22044 ac_status=$?
22045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22046 (exit $ac_status); }; } &&
22047 { ac_try='test -s conftest.$ac_objext'
22048 { (case "(($ac_try" in
22049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22050 *) ac_try_echo=$ac_try;;
22051 esac
22052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22053 (eval "$ac_try") 2>&5
22054 ac_status=$?
22055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22056 (exit $ac_status); }; }; then
22057 ac_cv_header_time=yes
22058 else
22059 echo "$as_me: failed program was:" >&5
22060 sed 's/^/| /' conftest.$ac_ext >&5
22061
22062 ac_cv_header_time=no
22063 fi
22064
22065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22066 fi
22067 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22068 echo "${ECHO_T}$ac_cv_header_time" >&6; }
22069 if test $ac_cv_header_time = yes; then
22070
22071 cat >>confdefs.h <<\_ACEOF
22072 #define TIME_WITH_SYS_TIME 1
22073 _ACEOF
22074
22075 fi
22076
22077
22078
22079
22080 for ac_header in stdlib.h unistd.h
22081 do
22082 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22083 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22084 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22087 echo $ECHO_N "(cached) $ECHO_C" >&6
22088 fi
22089 ac_res=`eval echo '${'$as_ac_Header'}'`
22090 { echo "$as_me:$LINENO: result: $ac_res" >&5
22091 echo "${ECHO_T}$ac_res" >&6; }
22092 else
22093 # Is the header compilable?
22094 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22095 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22096 cat >conftest.$ac_ext <<_ACEOF
22097 /* confdefs.h. */
22098 _ACEOF
22099 cat confdefs.h >>conftest.$ac_ext
22100 cat >>conftest.$ac_ext <<_ACEOF
22101 /* end confdefs.h. */
22102 $ac_includes_default
22103 #include <$ac_header>
22104 _ACEOF
22105 rm -f conftest.$ac_objext
22106 if { (ac_try="$ac_compile"
22107 case "(($ac_try" in
22108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22109 *) ac_try_echo=$ac_try;;
22110 esac
22111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22112 (eval "$ac_compile") 2>conftest.er1
22113 ac_status=$?
22114 grep -v '^ *+' conftest.er1 >conftest.err
22115 rm -f conftest.er1
22116 cat conftest.err >&5
22117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22118 (exit $ac_status); } &&
22119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22120 { (case "(($ac_try" in
22121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22122 *) ac_try_echo=$ac_try;;
22123 esac
22124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22125 (eval "$ac_try") 2>&5
22126 ac_status=$?
22127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22128 (exit $ac_status); }; } &&
22129 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
22136 ac_status=$?
22137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22138 (exit $ac_status); }; }; then
22139 ac_header_compiler=yes
22140 else
22141 echo "$as_me: failed program was:" >&5
22142 sed 's/^/| /' conftest.$ac_ext >&5
22143
22144 ac_header_compiler=no
22145 fi
22146
22147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22148 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22149 echo "${ECHO_T}$ac_header_compiler" >&6; }
22150
22151 # Is the header present?
22152 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22153 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22154 cat >conftest.$ac_ext <<_ACEOF
22155 /* confdefs.h. */
22156 _ACEOF
22157 cat confdefs.h >>conftest.$ac_ext
22158 cat >>conftest.$ac_ext <<_ACEOF
22159 /* end confdefs.h. */
22160 #include <$ac_header>
22161 _ACEOF
22162 if { (ac_try="$ac_cpp conftest.$ac_ext"
22163 case "(($ac_try" in
22164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22165 *) ac_try_echo=$ac_try;;
22166 esac
22167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22168 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22169 ac_status=$?
22170 grep -v '^ *+' conftest.er1 >conftest.err
22171 rm -f conftest.er1
22172 cat conftest.err >&5
22173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22174 (exit $ac_status); } >/dev/null; then
22175 if test -s conftest.err; then
22176 ac_cpp_err=$ac_c_preproc_warn_flag
22177 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22178 else
22179 ac_cpp_err=
22180 fi
22181 else
22182 ac_cpp_err=yes
22183 fi
22184 if test -z "$ac_cpp_err"; then
22185 ac_header_preproc=yes
22186 else
22187 echo "$as_me: failed program was:" >&5
22188 sed 's/^/| /' conftest.$ac_ext >&5
22189
22190 ac_header_preproc=no
22191 fi
22192
22193 rm -f conftest.err conftest.$ac_ext
22194 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22195 echo "${ECHO_T}$ac_header_preproc" >&6; }
22196
22197 # So? What about this header?
22198 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22199 yes:no: )
22200 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22201 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22202 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22203 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22204 ac_header_preproc=yes
22205 ;;
22206 no:yes:* )
22207 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22208 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22209 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22210 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22211 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22212 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22213 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22214 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22216 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22217 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22218 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22219
22220 ;;
22221 esac
22222 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22223 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22224 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22225 echo $ECHO_N "(cached) $ECHO_C" >&6
22226 else
22227 eval "$as_ac_Header=\$ac_header_preproc"
22228 fi
22229 ac_res=`eval echo '${'$as_ac_Header'}'`
22230 { echo "$as_me:$LINENO: result: $ac_res" >&5
22231 echo "${ECHO_T}$ac_res" >&6; }
22232
22233 fi
22234 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22235 cat >>confdefs.h <<_ACEOF
22236 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22237 _ACEOF
22238
22239 fi
22240
22241 done
22242
22243
22244 for ac_func in getpagesize
22245 do
22246 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22247 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22248 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22249 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22250 echo $ECHO_N "(cached) $ECHO_C" >&6
22251 else
22252 cat >conftest.$ac_ext <<_ACEOF
22253 /* confdefs.h. */
22254 _ACEOF
22255 cat confdefs.h >>conftest.$ac_ext
22256 cat >>conftest.$ac_ext <<_ACEOF
22257 /* end confdefs.h. */
22258 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22259 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22260 #define $ac_func innocuous_$ac_func
22261
22262 /* System header to define __stub macros and hopefully few prototypes,
22263 which can conflict with char $ac_func (); below.
22264 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22265 <limits.h> exists even on freestanding compilers. */
22266
22267 #ifdef __STDC__
22268 # include <limits.h>
22269 #else
22270 # include <assert.h>
22271 #endif
22272
22273 #undef $ac_func
22274
22275 /* Override any GCC internal prototype to avoid an error.
22276 Use char because int might match the return type of a GCC
22277 builtin and then its argument prototype would still apply. */
22278 #ifdef __cplusplus
22279 extern "C"
22280 #endif
22281 char $ac_func ();
22282 /* The GNU C library defines this for functions which it implements
22283 to always fail with ENOSYS. Some functions are actually named
22284 something starting with __ and the normal name is an alias. */
22285 #if defined __stub_$ac_func || defined __stub___$ac_func
22286 choke me
22287 #endif
22288
22289 int
22290 main ()
22291 {
22292 return $ac_func ();
22293 ;
22294 return 0;
22295 }
22296 _ACEOF
22297 rm -f conftest.$ac_objext conftest$ac_exeext
22298 if { (ac_try="$ac_link"
22299 case "(($ac_try" in
22300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22301 *) ac_try_echo=$ac_try;;
22302 esac
22303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22304 (eval "$ac_link") 2>conftest.er1
22305 ac_status=$?
22306 grep -v '^ *+' conftest.er1 >conftest.err
22307 rm -f conftest.er1
22308 cat conftest.err >&5
22309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22310 (exit $ac_status); } &&
22311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22312 { (case "(($ac_try" in
22313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22314 *) ac_try_echo=$ac_try;;
22315 esac
22316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22317 (eval "$ac_try") 2>&5
22318 ac_status=$?
22319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22320 (exit $ac_status); }; } &&
22321 { ac_try='test -s conftest$ac_exeext'
22322 { (case "(($ac_try" in
22323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22324 *) ac_try_echo=$ac_try;;
22325 esac
22326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22327 (eval "$ac_try") 2>&5
22328 ac_status=$?
22329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22330 (exit $ac_status); }; }; then
22331 eval "$as_ac_var=yes"
22332 else
22333 echo "$as_me: failed program was:" >&5
22334 sed 's/^/| /' conftest.$ac_ext >&5
22335
22336 eval "$as_ac_var=no"
22337 fi
22338
22339 rm -f core conftest.err conftest.$ac_objext \
22340 conftest$ac_exeext conftest.$ac_ext
22341 fi
22342 ac_res=`eval echo '${'$as_ac_var'}'`
22343 { echo "$as_me:$LINENO: result: $ac_res" >&5
22344 echo "${ECHO_T}$ac_res" >&6; }
22345 if test `eval echo '${'$as_ac_var'}'` = yes; then
22346 cat >>confdefs.h <<_ACEOF
22347 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22348 _ACEOF
22349
22350 fi
22351 done
22352
22353 { echo "$as_me:$LINENO: checking for working mmap" >&5
22354 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
22355 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22356 echo $ECHO_N "(cached) $ECHO_C" >&6
22357 else
22358 if test "$cross_compiling" = yes; then
22359 ac_cv_func_mmap_fixed_mapped=no
22360 else
22361 cat >conftest.$ac_ext <<_ACEOF
22362 /* confdefs.h. */
22363 _ACEOF
22364 cat confdefs.h >>conftest.$ac_ext
22365 cat >>conftest.$ac_ext <<_ACEOF
22366 /* end confdefs.h. */
22367 $ac_includes_default
22368 /* malloc might have been renamed as rpl_malloc. */
22369 #undef malloc
22370
22371 /* Thanks to Mike Haertel and Jim Avera for this test.
22372 Here is a matrix of mmap possibilities:
22373 mmap private not fixed
22374 mmap private fixed at somewhere currently unmapped
22375 mmap private fixed at somewhere already mapped
22376 mmap shared not fixed
22377 mmap shared fixed at somewhere currently unmapped
22378 mmap shared fixed at somewhere already mapped
22379 For private mappings, we should verify that changes cannot be read()
22380 back from the file, nor mmap's back from the file at a different
22381 address. (There have been systems where private was not correctly
22382 implemented like the infamous i386 svr4.0, and systems where the
22383 VM page cache was not coherent with the file system buffer cache
22384 like early versions of FreeBSD and possibly contemporary NetBSD.)
22385 For shared mappings, we should conversely verify that changes get
22386 propagated back to all the places they're supposed to be.
22387
22388 Grep wants private fixed already mapped.
22389 The main things grep needs to know about mmap are:
22390 * does it exist and is it safe to write into the mmap'd area
22391 * how to use it (BSD variants) */
22392
22393 #include <fcntl.h>
22394 #include <sys/mman.h>
22395
22396 #if !STDC_HEADERS && !HAVE_STDLIB_H
22397 char *malloc ();
22398 #endif
22399
22400 /* This mess was copied from the GNU getpagesize.h. */
22401 #if !HAVE_GETPAGESIZE
22402 /* Assume that all systems that can run configure have sys/param.h. */
22403 # if !HAVE_SYS_PARAM_H
22404 # define HAVE_SYS_PARAM_H 1
22405 # endif
22406
22407 # ifdef _SC_PAGESIZE
22408 # define getpagesize() sysconf(_SC_PAGESIZE)
22409 # else /* no _SC_PAGESIZE */
22410 # if HAVE_SYS_PARAM_H
22411 # include <sys/param.h>
22412 # ifdef EXEC_PAGESIZE
22413 # define getpagesize() EXEC_PAGESIZE
22414 # else /* no EXEC_PAGESIZE */
22415 # ifdef NBPG
22416 # define getpagesize() NBPG * CLSIZE
22417 # ifndef CLSIZE
22418 # define CLSIZE 1
22419 # endif /* no CLSIZE */
22420 # else /* no NBPG */
22421 # ifdef NBPC
22422 # define getpagesize() NBPC
22423 # else /* no NBPC */
22424 # ifdef PAGESIZE
22425 # define getpagesize() PAGESIZE
22426 # endif /* PAGESIZE */
22427 # endif /* no NBPC */
22428 # endif /* no NBPG */
22429 # endif /* no EXEC_PAGESIZE */
22430 # else /* no HAVE_SYS_PARAM_H */
22431 # define getpagesize() 8192 /* punt totally */
22432 # endif /* no HAVE_SYS_PARAM_H */
22433 # endif /* no _SC_PAGESIZE */
22434
22435 #endif /* no HAVE_GETPAGESIZE */
22436
22437 int
22438 main ()
22439 {
22440 char *data, *data2, *data3;
22441 int i, pagesize;
22442 int fd;
22443
22444 pagesize = getpagesize ();
22445
22446 /* First, make a file with some known garbage in it. */
22447 data = (char *) malloc (pagesize);
22448 if (!data)
22449 return 1;
22450 for (i = 0; i < pagesize; ++i)
22451 *(data + i) = rand ();
22452 umask (0);
22453 fd = creat ("conftest.mmap", 0600);
22454 if (fd < 0)
22455 return 1;
22456 if (write (fd, data, pagesize) != pagesize)
22457 return 1;
22458 close (fd);
22459
22460 /* Next, try to mmap the file at a fixed address which already has
22461 something else allocated at it. If we can, also make sure that
22462 we see the same garbage. */
22463 fd = open ("conftest.mmap", O_RDWR);
22464 if (fd < 0)
22465 return 1;
22466 data2 = (char *) malloc (2 * pagesize);
22467 if (!data2)
22468 return 1;
22469 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
22470 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22471 MAP_PRIVATE | MAP_FIXED, fd, 0L))
22472 return 1;
22473 for (i = 0; i < pagesize; ++i)
22474 if (*(data + i) != *(data2 + i))
22475 return 1;
22476
22477 /* Finally, make sure that changes to the mapped area do not
22478 percolate back to the file as seen by read(). (This is a bug on
22479 some variants of i386 svr4.0.) */
22480 for (i = 0; i < pagesize; ++i)
22481 *(data2 + i) = *(data2 + i) + 1;
22482 data3 = (char *) malloc (pagesize);
22483 if (!data3)
22484 return 1;
22485 if (read (fd, data3, pagesize) != pagesize)
22486 return 1;
22487 for (i = 0; i < pagesize; ++i)
22488 if (*(data + i) != *(data3 + i))
22489 return 1;
22490 close (fd);
22491 return 0;
22492 }
22493 _ACEOF
22494 rm -f conftest$ac_exeext
22495 if { (ac_try="$ac_link"
22496 case "(($ac_try" in
22497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22498 *) ac_try_echo=$ac_try;;
22499 esac
22500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22501 (eval "$ac_link") 2>&5
22502 ac_status=$?
22503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22504 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22505 { (case "(($ac_try" in
22506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22507 *) ac_try_echo=$ac_try;;
22508 esac
22509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22510 (eval "$ac_try") 2>&5
22511 ac_status=$?
22512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22513 (exit $ac_status); }; }; then
22514 ac_cv_func_mmap_fixed_mapped=yes
22515 else
22516 echo "$as_me: program exited with status $ac_status" >&5
22517 echo "$as_me: failed program was:" >&5
22518 sed 's/^/| /' conftest.$ac_ext >&5
22519
22520 ( exit $ac_status )
22521 ac_cv_func_mmap_fixed_mapped=no
22522 fi
22523 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22524 fi
22525
22526
22527 fi
22528 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22529 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
22530 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22531
22532 cat >>confdefs.h <<\_ACEOF
22533 #define HAVE_MMAP 1
22534 _ACEOF
22535
22536 fi
22537 rm -f conftest.mmap
22538
22539
22540 for ac_func in gettimeofday
22541 do
22542 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22543 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22544 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22545 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22546 echo $ECHO_N "(cached) $ECHO_C" >&6
22547 else
22548 cat >conftest.$ac_ext <<_ACEOF
22549 /* confdefs.h. */
22550 _ACEOF
22551 cat confdefs.h >>conftest.$ac_ext
22552 cat >>conftest.$ac_ext <<_ACEOF
22553 /* end confdefs.h. */
22554 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22555 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22556 #define $ac_func innocuous_$ac_func
22557
22558 /* System header to define __stub macros and hopefully few prototypes,
22559 which can conflict with char $ac_func (); below.
22560 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22561 <limits.h> exists even on freestanding compilers. */
22562
22563 #ifdef __STDC__
22564 # include <limits.h>
22565 #else
22566 # include <assert.h>
22567 #endif
22568
22569 #undef $ac_func
22570
22571 /* Override any GCC internal prototype to avoid an error.
22572 Use char because int might match the return type of a GCC
22573 builtin and then its argument prototype would still apply. */
22574 #ifdef __cplusplus
22575 extern "C"
22576 #endif
22577 char $ac_func ();
22578 /* The GNU C library defines this for functions which it implements
22579 to always fail with ENOSYS. Some functions are actually named
22580 something starting with __ and the normal name is an alias. */
22581 #if defined __stub_$ac_func || defined __stub___$ac_func
22582 choke me
22583 #endif
22584
22585 int
22586 main ()
22587 {
22588 return $ac_func ();
22589 ;
22590 return 0;
22591 }
22592 _ACEOF
22593 rm -f conftest.$ac_objext conftest$ac_exeext
22594 if { (ac_try="$ac_link"
22595 case "(($ac_try" in
22596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22597 *) ac_try_echo=$ac_try;;
22598 esac
22599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22600 (eval "$ac_link") 2>conftest.er1
22601 ac_status=$?
22602 grep -v '^ *+' conftest.er1 >conftest.err
22603 rm -f conftest.er1
22604 cat conftest.err >&5
22605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22606 (exit $ac_status); } &&
22607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22608 { (case "(($ac_try" in
22609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22610 *) ac_try_echo=$ac_try;;
22611 esac
22612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22613 (eval "$ac_try") 2>&5
22614 ac_status=$?
22615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22616 (exit $ac_status); }; } &&
22617 { ac_try='test -s conftest$ac_exeext'
22618 { (case "(($ac_try" in
22619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22620 *) ac_try_echo=$ac_try;;
22621 esac
22622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22623 (eval "$ac_try") 2>&5
22624 ac_status=$?
22625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22626 (exit $ac_status); }; }; then
22627 eval "$as_ac_var=yes"
22628 else
22629 echo "$as_me: failed program was:" >&5
22630 sed 's/^/| /' conftest.$ac_ext >&5
22631
22632 eval "$as_ac_var=no"
22633 fi
22634
22635 rm -f core conftest.err conftest.$ac_objext \
22636 conftest$ac_exeext conftest.$ac_ext
22637 fi
22638 ac_res=`eval echo '${'$as_ac_var'}'`
22639 { echo "$as_me:$LINENO: result: $ac_res" >&5
22640 echo "${ECHO_T}$ac_res" >&6; }
22641 if test `eval echo '${'$as_ac_var'}'` = yes; then
22642 cat >>confdefs.h <<_ACEOF
22643 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22644 _ACEOF
22645
22646 fi
22647 done
22648
22649
22650
22651
22652
22653 ac_config_files="$ac_config_files Makefile libdv.spec libdv.pc libdv/Makefile playdv/Makefile encodedv/Makefile"
22654
22655 cat >confcache <<\_ACEOF
22656 # This file is a shell script that caches the results of configure
22657 # tests run on this system so they can be shared between configure
22658 # scripts and configure runs, see configure's option --config-cache.
22659 # It is not useful on other systems. If it contains results you don't
22660 # want to keep, you may remove or edit it.
22661 #
22662 # config.status only pays attention to the cache file if you give it
22663 # the --recheck option to rerun configure.
22664 #
22665 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22666 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22667 # following values.
22668
22669 _ACEOF
22670
22671 # The following way of writing the cache mishandles newlines in values,
22672 # but we know of no workaround that is simple, portable, and efficient.
22673 # So, we kill variables containing newlines.
22674 # Ultrix sh set writes to stderr and can't be redirected directly,
22675 # and sets the high bit in the cache file unless we assign to the vars.
22676 (
22677 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22678 eval ac_val=\$$ac_var
22679 case $ac_val in #(
22680 *${as_nl}*)
22681 case $ac_var in #(
22682 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22683 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22684 esac
22685 case $ac_var in #(
22686 _ | IFS | as_nl) ;; #(
22687 *) $as_unset $ac_var ;;
22688 esac ;;
22689 esac
22690 done
22691
22692 (set) 2>&1 |
22693 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22694 *${as_nl}ac_space=\ *)
22695 # `set' does not quote correctly, so add quotes (double-quote
22696 # substitution turns \\\\ into \\, and sed turns \\ into \).
22697 sed -n \
22698 "s/'/'\\\\''/g;
22699 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22700 ;; #(
22701 *)
22702 # `set' quotes correctly as required by POSIX, so do not add quotes.
22703 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22704 ;;
22705 esac |
22706 sort
22707 ) |
22708 sed '
22709 /^ac_cv_env_/b end
22710 t clear
22711 :clear
22712 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22713 t end
22714 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22715 :end' >>confcache
22716 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22717 if test -w "$cache_file"; then
22718 test "x$cache_file" != "x/dev/null" &&
22719 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22720 echo "$as_me: updating cache $cache_file" >&6;}
22721 cat confcache >$cache_file
22722 else
22723 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22724 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22725 fi
22726 fi
22727 rm -f confcache
22728
22729 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22730 # Let make expand exec_prefix.
22731 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22732
22733 DEFS=-DHAVE_CONFIG_H
22734
22735 ac_libobjs=
22736 ac_ltlibobjs=
22737 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22738 # 1. Remove the extension, and $U if already installed.
22739 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22740 ac_i=`echo "$ac_i" | sed "$ac_script"`
22741 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22742 # will be set to the directory where LIBOBJS objects are built.
22743 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22744 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22745 done
22746 LIBOBJS=$ac_libobjs
22747
22748 LTLIBOBJS=$ac_ltlibobjs
22749
22750
22751 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22752 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22753 Usually this means the macro was only invoked conditionally." >&5
22754 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22755 Usually this means the macro was only invoked conditionally." >&2;}
22756 { (exit 1); exit 1; }; }
22757 fi
22758 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22759 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22760 Usually this means the macro was only invoked conditionally." >&5
22761 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22762 Usually this means the macro was only invoked conditionally." >&2;}
22763 { (exit 1); exit 1; }; }
22764 fi
22765 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22766 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22767 Usually this means the macro was only invoked conditionally." >&5
22768 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22769 Usually this means the macro was only invoked conditionally." >&2;}
22770 { (exit 1); exit 1; }; }
22771 fi
22772 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22773 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22774 Usually this means the macro was only invoked conditionally." >&5
22775 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22776 Usually this means the macro was only invoked conditionally." >&2;}
22777 { (exit 1); exit 1; }; }
22778 fi
22779 if test -z "${HOST_X86_TRUE}" && test -z "${HOST_X86_FALSE}"; then
22780 { { echo "$as_me:$LINENO: error: conditional \"HOST_X86\" was never defined.
22781 Usually this means the macro was only invoked conditionally." >&5
22782 echo "$as_me: error: conditional \"HOST_X86\" was never defined.
22783 Usually this means the macro was only invoked conditionally." >&2;}
22784 { (exit 1); exit 1; }; }
22785 fi
22786 if test -z "${HOST_X86_64_TRUE}" && test -z "${HOST_X86_64_FALSE}"; then
22787 { { echo "$as_me:$LINENO: error: conditional \"HOST_X86_64\" was never defined.
22788 Usually this means the macro was only invoked conditionally." >&5
22789 echo "$as_me: error: conditional \"HOST_X86_64\" was never defined.
22790 Usually this means the macro was only invoked conditionally." >&2;}
22791 { (exit 1); exit 1; }; }
22792 fi
22793 if test -z "${HAVE_GTK_TRUE}" && test -z "${HAVE_GTK_FALSE}"; then
22794 { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK\" was never defined.
22795 Usually this means the macro was only invoked conditionally." >&5
22796 echo "$as_me: error: conditional \"HAVE_GTK\" was never defined.
22797 Usually this means the macro was only invoked conditionally." >&2;}
22798 { (exit 1); exit 1; }; }
22799 fi
22800
22801 : ${CONFIG_STATUS=./config.status}
22802 ac_clean_files_save=$ac_clean_files
22803 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22804 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22805 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22806 cat >$CONFIG_STATUS <<_ACEOF
22807 #! $SHELL
22808 # Generated by $as_me.
22809 # Run this file to recreate the current configuration.
22810 # Compiler output produced by configure, useful for debugging
22811 # configure, is in config.log if it exists.
22812
22813 debug=false
22814 ac_cs_recheck=false
22815 ac_cs_silent=false
22816 SHELL=\${CONFIG_SHELL-$SHELL}
22817 _ACEOF
22818
22819 cat >>$CONFIG_STATUS <<\_ACEOF
22820 ## --------------------- ##
22821 ## M4sh Initialization. ##
22822 ## --------------------- ##
22823
22824 # Be Bourne compatible
22825 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22826 emulate sh
22827 NULLCMD=:
22828 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22829 # is contrary to our usage. Disable this feature.
22830 alias -g '${1+"$@"}'='"$@"'
22831 setopt NO_GLOB_SUBST
22832 else
22833 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22834 fi
22835 BIN_SH=xpg4; export BIN_SH # for Tru64
22836 DUALCASE=1; export DUALCASE # for MKS sh
22837
22838
22839 # PATH needs CR
22840 # Avoid depending upon Character Ranges.
22841 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22842 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22843 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22844 as_cr_digits='0123456789'
22845 as_cr_alnum=$as_cr_Letters$as_cr_digits
22846
22847 # The user is always right.
22848 if test "${PATH_SEPARATOR+set}" != set; then
22849 echo "#! /bin/sh" >conf$$.sh
22850 echo "exit 0" >>conf$$.sh
22851 chmod +x conf$$.sh
22852 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22853 PATH_SEPARATOR=';'
22854 else
22855 PATH_SEPARATOR=:
22856 fi
22857 rm -f conf$$.sh
22858 fi
22859
22860 # Support unset when possible.
22861 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22862 as_unset=unset
22863 else
22864 as_unset=false
22865 fi
22866
22867
22868 # IFS
22869 # We need space, tab and new line, in precisely that order. Quoting is
22870 # there to prevent editors from complaining about space-tab.
22871 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22872 # splitting by setting IFS to empty value.)
22873 as_nl='
22874 '
22875 IFS=" "" $as_nl"
22876
22877 # Find who we are. Look in the path if we contain no directory separator.
22878 case $0 in
22879 *[\\/]* ) as_myself=$0 ;;
22880 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22881 for as_dir in $PATH
22882 do
22883 IFS=$as_save_IFS
22884 test -z "$as_dir" && as_dir=.
22885 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22886 done
22887 IFS=$as_save_IFS
22888
22889 ;;
22890 esac
22891 # We did not find ourselves, most probably we were run as `sh COMMAND'
22892 # in which case we are not to be found in the path.
22893 if test "x$as_myself" = x; then
22894 as_myself=$0
22895 fi
22896 if test ! -f "$as_myself"; then
22897 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22898 { (exit 1); exit 1; }
22899 fi
22900
22901 # Work around bugs in pre-3.0 UWIN ksh.
22902 for as_var in ENV MAIL MAILPATH
22903 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22904 done
22905 PS1='$ '
22906 PS2='> '
22907 PS4='+ '
22908
22909 # NLS nuisances.
22910 for as_var in \
22911 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22912 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22913 LC_TELEPHONE LC_TIME
22914 do
22915 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22916 eval $as_var=C; export $as_var
22917 else
22918 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22919 fi
22920 done
22921
22922 # Required to use basename.
22923 if expr a : '\(a\)' >/dev/null 2>&1 &&
22924 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22925 as_expr=expr
22926 else
22927 as_expr=false
22928 fi
22929
22930 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22931 as_basename=basename
22932 else
22933 as_basename=false
22934 fi
22935
22936
22937 # Name of the executable.
22938 as_me=`$as_basename -- "$0" ||
22939 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22940 X"$0" : 'X\(//\)$' \| \
22941 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22942 echo X/"$0" |
22943 sed '/^.*\/\([^/][^/]*\)\/*$/{
22944 s//\1/
22945 q
22946 }
22947 /^X\/\(\/\/\)$/{
22948 s//\1/
22949 q
22950 }
22951 /^X\/\(\/\).*/{
22952 s//\1/
22953 q
22954 }
22955 s/.*/./; q'`
22956
22957 # CDPATH.
22958 $as_unset CDPATH
22959
22960
22961
22962 as_lineno_1=$LINENO
22963 as_lineno_2=$LINENO
22964 test "x$as_lineno_1" != "x$as_lineno_2" &&
22965 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22966
22967 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22968 # uniformly replaced by the line number. The first 'sed' inserts a
22969 # line-number line after each line using $LINENO; the second 'sed'
22970 # does the real work. The second script uses 'N' to pair each
22971 # line-number line with the line containing $LINENO, and appends
22972 # trailing '-' during substitution so that $LINENO is not a special
22973 # case at line end.
22974 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22975 # scripts with optimization help from Paolo Bonzini. Blame Lee
22976 # E. McMahon (1931-1989) for sed's syntax. :-)
22977 sed -n '
22978 p
22979 /[$]LINENO/=
22980 ' <$as_myself |
22981 sed '
22982 s/[$]LINENO.*/&-/
22983 t lineno
22984 b
22985 :lineno
22986 N
22987 :loop
22988 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22989 t loop
22990 s/-\n.*//
22991 ' >$as_me.lineno &&
22992 chmod +x "$as_me.lineno" ||
22993 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22994 { (exit 1); exit 1; }; }
22995
22996 # Don't try to exec as it changes $[0], causing all sort of problems
22997 # (the dirname of $[0] is not the place where we might find the
22998 # original and so on. Autoconf is especially sensitive to this).
22999 . "./$as_me.lineno"
23000 # Exit status is that of the last command.
23001 exit
23002 }
23003
23004
23005 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23006 as_dirname=dirname
23007 else
23008 as_dirname=false
23009 fi
23010
23011 ECHO_C= ECHO_N= ECHO_T=
23012 case `echo -n x` in
23013 -n*)
23014 case `echo 'x\c'` in
23015 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23016 *) ECHO_C='\c';;
23017 esac;;
23018 *)
23019 ECHO_N='-n';;
23020 esac
23021
23022 if expr a : '\(a\)' >/dev/null 2>&1 &&
23023 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23024 as_expr=expr
23025 else
23026 as_expr=false
23027 fi
23028
23029 rm -f conf$$ conf$$.exe conf$$.file
23030 if test -d conf$$.dir; then
23031 rm -f conf$$.dir/conf$$.file
23032 else
23033 rm -f conf$$.dir
23034 mkdir conf$$.dir
23035 fi
23036 echo >conf$$.file
23037 if ln -s conf$$.file conf$$ 2>/dev/null; then
23038 as_ln_s='ln -s'
23039 # ... but there are two gotchas:
23040 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23041 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23042 # In both cases, we have to default to `cp -p'.
23043 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23044 as_ln_s='cp -p'
23045 elif ln conf$$.file conf$$ 2>/dev/null; then
23046 as_ln_s=ln
23047 else
23048 as_ln_s='cp -p'
23049 fi
23050 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23051 rmdir conf$$.dir 2>/dev/null
23052
23053 if mkdir -p . 2>/dev/null; then
23054 as_mkdir_p=:
23055 else
23056 test -d ./-p && rmdir ./-p
23057 as_mkdir_p=false
23058 fi
23059
23060 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
23061 # systems may use methods other than mode bits to determine executability.
23062 cat >conf$$.file <<_ASEOF
23063 #! /bin/sh
23064 exit 0
23065 _ASEOF
23066 chmod +x conf$$.file
23067 if test -x conf$$.file >/dev/null 2>&1; then
23068 as_executable_p="test -x"
23069 else
23070 as_executable_p=:
23071 fi
23072 rm -f conf$$.file
23073
23074 # Sed expression to map a string onto a valid CPP name.
23075 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23076
23077 # Sed expression to map a string onto a valid variable name.
23078 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23079
23080
23081 exec 6>&1
23082
23083 # Save the log message, to keep $[0] and so on meaningful, and to
23084 # report actual input values of CONFIG_FILES etc. instead of their
23085 # values after options handling.
23086 ac_log="
23087 This file was extended by $as_me, which was
23088 generated by GNU Autoconf 2.60. Invocation command line was
23089
23090 CONFIG_FILES = $CONFIG_FILES
23091 CONFIG_HEADERS = $CONFIG_HEADERS
23092 CONFIG_LINKS = $CONFIG_LINKS
23093 CONFIG_COMMANDS = $CONFIG_COMMANDS
23094 $ $0 $@
23095
23096 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23097 "
23098
23099 _ACEOF
23100
23101 cat >>$CONFIG_STATUS <<_ACEOF
23102 # Files that config.status was made for.
23103 config_files="$ac_config_files"
23104 config_headers="$ac_config_headers"
23105 config_commands="$ac_config_commands"
23106
23107 _ACEOF
23108
23109 cat >>$CONFIG_STATUS <<\_ACEOF
23110 ac_cs_usage="\
23111 \`$as_me' instantiates files from templates according to the
23112 current configuration.
23113
23114 Usage: $0 [OPTIONS] [FILE]...
23115
23116 -h, --help print this help, then exit
23117 -V, --version print version number, then exit
23118 -q, --quiet do not print progress messages
23119 -d, --debug don't remove temporary files
23120 --recheck update $as_me by reconfiguring in the same conditions
23121 --file=FILE[:TEMPLATE]
23122 instantiate the configuration file FILE
23123 --header=FILE[:TEMPLATE]
23124 instantiate the configuration header FILE
23125
23126 Configuration files:
23127 $config_files
23128
23129 Configuration headers:
23130 $config_headers
23131
23132 Configuration commands:
23133 $config_commands
23134
23135 Report bugs to <[email protected]>."
23136
23137 _ACEOF
23138 cat >>$CONFIG_STATUS <<_ACEOF
23139 ac_cs_version="\\
23140 config.status
23141 configured by $0, generated by GNU Autoconf 2.60,
23142 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23143
23144 Copyright (C) 2006 Free Software Foundation, Inc.
23145 This config.status script is free software; the Free Software Foundation
23146 gives unlimited permission to copy, distribute and modify it."
23147
23148 ac_pwd='$ac_pwd'
23149 srcdir='$srcdir'
23150 INSTALL='$INSTALL'
23151 _ACEOF
23152
23153 cat >>$CONFIG_STATUS <<\_ACEOF
23154 # If no file are specified by the user, then we need to provide default
23155 # value. By we need to know if files were specified by the user.
23156 ac_need_defaults=:
23157 while test $# != 0
23158 do
23159 case $1 in
23160 --*=*)
23161 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23162 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23163 ac_shift=:
23164 ;;
23165 *)
23166 ac_option=$1
23167 ac_optarg=$2
23168 ac_shift=shift
23169 ;;
23170 esac
23171
23172 case $ac_option in
23173 # Handling of the options.
23174 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23175 ac_cs_recheck=: ;;
23176 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23177 echo "$ac_cs_version"; exit ;;
23178 --debug | --debu | --deb | --de | --d | -d )
23179 debug=: ;;
23180 --file | --fil | --fi | --f )
23181 $ac_shift
23182 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23183 ac_need_defaults=false;;
23184 --header | --heade | --head | --hea )
23185 $ac_shift
23186 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23187 ac_need_defaults=false;;
23188 --he | --h)
23189 # Conflict between --help and --header
23190 { echo "$as_me: error: ambiguous option: $1
23191 Try \`$0 --help' for more information." >&2
23192 { (exit 1); exit 1; }; };;
23193 --help | --hel | -h )
23194 echo "$ac_cs_usage"; exit ;;
23195 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23196 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23197 ac_cs_silent=: ;;
23198
23199 # This is an error.
23200 -*) { echo "$as_me: error: unrecognized option: $1
23201 Try \`$0 --help' for more information." >&2
23202 { (exit 1); exit 1; }; } ;;
23203
23204 *) ac_config_targets="$ac_config_targets $1"
23205 ac_need_defaults=false ;;
23206
23207 esac
23208 shift
23209 done
23210
23211 ac_configure_extra_args=
23212
23213 if $ac_cs_silent; then
23214 exec 6>/dev/null
23215 ac_configure_extra_args="$ac_configure_extra_args --silent"
23216 fi
23217
23218 _ACEOF
23219 cat >>$CONFIG_STATUS <<_ACEOF
23220 if \$ac_cs_recheck; then
23221 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23222 CONFIG_SHELL=$SHELL
23223 export CONFIG_SHELL
23224 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23225 fi
23226
23227 _ACEOF
23228 cat >>$CONFIG_STATUS <<\_ACEOF
23229 exec 5>>config.log
23230 {
23231 echo
23232 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23233 ## Running $as_me. ##
23234 _ASBOX
23235 echo "$ac_log"
23236 } >&5
23237
23238 _ACEOF
23239 cat >>$CONFIG_STATUS <<_ACEOF
23240 #
23241 # INIT-COMMANDS
23242 #
23243 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23244
23245 _ACEOF
23246
23247 cat >>$CONFIG_STATUS <<\_ACEOF
23248
23249 # Handling of arguments.
23250 for ac_config_target in $ac_config_targets
23251 do
23252 case $ac_config_target in
23253 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23254 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23255 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23256 "libdv.spec") CONFIG_FILES="$CONFIG_FILES libdv.spec" ;;
23257 "libdv.pc") CONFIG_FILES="$CONFIG_FILES libdv.pc" ;;
23258 "libdv/Makefile") CONFIG_FILES="$CONFIG_FILES libdv/Makefile" ;;
23259 "playdv/Makefile") CONFIG_FILES="$CONFIG_FILES playdv/Makefile" ;;
23260 "encodedv/Makefile") CONFIG_FILES="$CONFIG_FILES encodedv/Makefile" ;;
23261
23262 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23263 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23264 { (exit 1); exit 1; }; };;
23265 esac
23266 done
23267
23268
23269 # If the user did not use the arguments to specify the items to instantiate,
23270 # then the envvar interface is used. Set only those that are not.
23271 # We use the long form for the default assignment because of an extremely
23272 # bizarre bug on SunOS 4.1.3.
23273 if $ac_need_defaults; then
23274 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23275 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23276 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23277 fi
23278
23279 # Have a temporary directory for convenience. Make it in the build tree
23280 # simply because there is no reason against having it here, and in addition,
23281 # creating and moving files from /tmp can sometimes cause problems.
23282 # Hook for its removal unless debugging.
23283 # Note that there is a small window in which the directory will not be cleaned:
23284 # after its creation but before its name has been assigned to `$tmp'.
23285 $debug ||
23286 {
23287 tmp=
23288 trap 'exit_status=$?
23289 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23290 ' 0
23291 trap '{ (exit 1); exit 1; }' 1 2 13 15
23292 }
23293 # Create a (secure) tmp directory for tmp files.
23294
23295 {
23296 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23297 test -n "$tmp" && test -d "$tmp"
23298 } ||
23299 {
23300 tmp=./conf$$-$RANDOM
23301 (umask 077 && mkdir "$tmp")
23302 } ||
23303 {
23304 echo "$me: cannot create a temporary directory in ." >&2
23305 { (exit 1); exit 1; }
23306 }
23307
23308 #
23309 # Set up the sed scripts for CONFIG_FILES section.
23310 #
23311
23312 # No need to generate the scripts if there are no CONFIG_FILES.
23313 # This happens for instance when ./config.status config.h
23314 if test -n "$CONFIG_FILES"; then
23315
23316 _ACEOF
23317
23318
23319
23320 ac_delim='%!_!# '
23321 for ac_last_try in false false false false false :; do
23322 cat >conf$$subs.sed <<_ACEOF
23323 SHELL!$SHELL$ac_delim
23324 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23325 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23326 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23327 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23328 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23329 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23330 exec_prefix!$exec_prefix$ac_delim
23331 prefix!$prefix$ac_delim
23332 program_transform_name!$program_transform_name$ac_delim
23333 bindir!$bindir$ac_delim
23334 sbindir!$sbindir$ac_delim
23335 libexecdir!$libexecdir$ac_delim
23336 datarootdir!$datarootdir$ac_delim
23337 datadir!$datadir$ac_delim
23338 sysconfdir!$sysconfdir$ac_delim
23339 sharedstatedir!$sharedstatedir$ac_delim
23340 localstatedir!$localstatedir$ac_delim
23341 includedir!$includedir$ac_delim
23342 oldincludedir!$oldincludedir$ac_delim
23343 docdir!$docdir$ac_delim
23344 infodir!$infodir$ac_delim
23345 htmldir!$htmldir$ac_delim
23346 dvidir!$dvidir$ac_delim
23347 pdfdir!$pdfdir$ac_delim
23348 psdir!$psdir$ac_delim
23349 libdir!$libdir$ac_delim
23350 localedir!$localedir$ac_delim
23351 mandir!$mandir$ac_delim
23352 DEFS!$DEFS$ac_delim
23353 ECHO_C!$ECHO_C$ac_delim
23354 ECHO_N!$ECHO_N$ac_delim
23355 ECHO_T!$ECHO_T$ac_delim
23356 LIBS!$LIBS$ac_delim
23357 build_alias!$build_alias$ac_delim
23358 host_alias!$host_alias$ac_delim
23359 target_alias!$target_alias$ac_delim
23360 build!$build$ac_delim
23361 build_cpu!$build_cpu$ac_delim
23362 build_vendor!$build_vendor$ac_delim
23363 build_os!$build_os$ac_delim
23364 host!$host$ac_delim
23365 host_cpu!$host_cpu$ac_delim
23366 host_vendor!$host_vendor$ac_delim
23367 host_os!$host_os$ac_delim
23368 target!$target$ac_delim
23369 target_cpu!$target_cpu$ac_delim
23370 target_vendor!$target_vendor$ac_delim
23371 target_os!$target_os$ac_delim
23372 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23373 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23374 INSTALL_DATA!$INSTALL_DATA$ac_delim
23375 CYGPATH_W!$CYGPATH_W$ac_delim
23376 PACKAGE!$PACKAGE$ac_delim
23377 VERSION!$VERSION$ac_delim
23378 ACLOCAL!$ACLOCAL$ac_delim
23379 AUTOCONF!$AUTOCONF$ac_delim
23380 AUTOMAKE!$AUTOMAKE$ac_delim
23381 AUTOHEADER!$AUTOHEADER$ac_delim
23382 MAKEINFO!$MAKEINFO$ac_delim
23383 install_sh!$install_sh$ac_delim
23384 STRIP!$STRIP$ac_delim
23385 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
23386 mkdir_p!$mkdir_p$ac_delim
23387 AWK!$AWK$ac_delim
23388 SET_MAKE!$SET_MAKE$ac_delim
23389 am__leading_dot!$am__leading_dot$ac_delim
23390 AMTAR!$AMTAR$ac_delim
23391 am__tar!$am__tar$ac_delim
23392 am__untar!$am__untar$ac_delim
23393 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
23394 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
23395 MAINT!$MAINT$ac_delim
23396 CFLAGS!$CFLAGS$ac_delim
23397 CC!$CC$ac_delim
23398 LDFLAGS!$LDFLAGS$ac_delim
23399 CPPFLAGS!$CPPFLAGS$ac_delim
23400 ac_ct_CC!$ac_ct_CC$ac_delim
23401 EXEEXT!$EXEEXT$ac_delim
23402 OBJEXT!$OBJEXT$ac_delim
23403 DEPDIR!$DEPDIR$ac_delim
23404 am__include!$am__include$ac_delim
23405 am__quote!$am__quote$ac_delim
23406 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
23407 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
23408 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
23409 CCDEPMODE!$CCDEPMODE$ac_delim
23410 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
23411 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
23412 CCAS!$CCAS$ac_delim
23413 CCASFLAGS!$CCASFLAGS$ac_delim
23414 GREP!$GREP$ac_delim
23415 EGREP!$EGREP$ac_delim
23416 LN_S!$LN_S$ac_delim
23417 ECHO!$ECHO$ac_delim
23418 AR!$AR$ac_delim
23419 RANLIB!$RANLIB$ac_delim
23420 _ACEOF
23421
23422 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23423 break
23424 elif $ac_last_try; then
23425 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23426 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23427 { (exit 1); exit 1; }; }
23428 else
23429 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23430 fi
23431 done
23432
23433 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23434 if test -n "$ac_eof"; then
23435 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23436 ac_eof=`expr $ac_eof + 1`
23437 fi
23438
23439 cat >>$CONFIG_STATUS <<_ACEOF
23440 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23441 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23442 _ACEOF
23443 sed '
23444 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23445 s/^/s,@/; s/!/@,|#_!!_#|/
23446 :n
23447 t n
23448 s/'"$ac_delim"'$/,g/; t
23449 s/$/\\/; p
23450 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23451 ' >>$CONFIG_STATUS <conf$$subs.sed
23452 rm -f conf$$subs.sed
23453 cat >>$CONFIG_STATUS <<_ACEOF
23454 CEOF$ac_eof
23455 _ACEOF
23456
23457
23458 ac_delim='%!_!# '
23459 for ac_last_try in false false false false false :; do
23460 cat >conf$$subs.sed <<_ACEOF
23461 CPP!$CPP$ac_delim
23462 CXX!$CXX$ac_delim
23463 CXXFLAGS!$CXXFLAGS$ac_delim
23464 ac_ct_CXX!$ac_ct_CXX$ac_delim
23465 CXXDEPMODE!$CXXDEPMODE$ac_delim
23466 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
23467 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
23468 CXXCPP!$CXXCPP$ac_delim
23469 F77!$F77$ac_delim
23470 FFLAGS!$FFLAGS$ac_delim
23471 ac_ct_F77!$ac_ct_F77$ac_delim
23472 LIBTOOL!$LIBTOOL$ac_delim
23473 HOST_X86_TRUE!$HOST_X86_TRUE$ac_delim
23474 HOST_X86_FALSE!$HOST_X86_FALSE$ac_delim
23475 HOST_X86_64_TRUE!$HOST_X86_64_TRUE$ac_delim
23476 HOST_X86_64_FALSE!$HOST_X86_64_FALSE$ac_delim
23477 PKG_CONFIG!$PKG_CONFIG$ac_delim
23478 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
23479 GTK_LIBS!$GTK_LIBS$ac_delim
23480 HAVE_GTK_TRUE!$HAVE_GTK_TRUE$ac_delim
23481 HAVE_GTK_FALSE!$HAVE_GTK_FALSE$ac_delim
23482 SDL_CONFIG!$SDL_CONFIG$ac_delim
23483 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
23484 SDL_LIBS!$SDL_LIBS$ac_delim
23485 XV_LIB!$XV_LIB$ac_delim
23486 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
23487 POPT_LIB!$POPT_LIB$ac_delim
23488 REQUIRES_NOPKGCONFIG!$REQUIRES_NOPKGCONFIG$ac_delim
23489 XMKMF!$XMKMF$ac_delim
23490 ac_aux_dir!$ac_aux_dir$ac_delim
23491 RPM_RELEASE!$RPM_RELEASE$ac_delim
23492 LIBOBJS!$LIBOBJS$ac_delim
23493 LTLIBOBJS!$LTLIBOBJS$ac_delim
23494 _ACEOF
23495
23496 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 33; then
23497 break
23498 elif $ac_last_try; then
23499 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23500 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23501 { (exit 1); exit 1; }; }
23502 else
23503 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23504 fi
23505 done
23506
23507 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23508 if test -n "$ac_eof"; then
23509 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23510 ac_eof=`expr $ac_eof + 1`
23511 fi
23512
23513 cat >>$CONFIG_STATUS <<_ACEOF
23514 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23515 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23516 _ACEOF
23517 sed '
23518 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23519 s/^/s,@/; s/!/@,|#_!!_#|/
23520 :n
23521 t n
23522 s/'"$ac_delim"'$/,g/; t
23523 s/$/\\/; p
23524 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23525 ' >>$CONFIG_STATUS <conf$$subs.sed
23526 rm -f conf$$subs.sed
23527 cat >>$CONFIG_STATUS <<_ACEOF
23528 :end
23529 s/|#_!!_#|//g
23530 CEOF$ac_eof
23531 _ACEOF
23532
23533
23534 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23535 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23536 # trailing colons and then remove the whole line if VPATH becomes empty
23537 # (actually we leave an empty line to preserve line numbers).
23538 if test "x$srcdir" = x.; then
23539 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23540 s/:*\$(srcdir):*/:/
23541 s/:*\${srcdir}:*/:/
23542 s/:*@srcdir@:*/:/
23543 s/^\([^=]*=[ ]*\):*/\1/
23544 s/:*$//
23545 s/^[^=]*=[ ]*$//
23546 }'
23547 fi
23548
23549 cat >>$CONFIG_STATUS <<\_ACEOF
23550 fi # test -n "$CONFIG_FILES"
23551
23552
23553 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23554 do
23555 case $ac_tag in
23556 :[FHLC]) ac_mode=$ac_tag; continue;;
23557 esac
23558 case $ac_mode$ac_tag in
23559 :[FHL]*:*);;
23560 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23561 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23562 { (exit 1); exit 1; }; };;
23563 :[FH]-) ac_tag=-:-;;
23564 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23565 esac
23566 ac_save_IFS=$IFS
23567 IFS=:
23568 set x $ac_tag
23569 IFS=$ac_save_IFS
23570 shift
23571 ac_file=$1
23572 shift
23573
23574 case $ac_mode in
23575 :L) ac_source=$1;;
23576 :[FH])
23577 ac_file_inputs=
23578 for ac_f
23579 do
23580 case $ac_f in
23581 -) ac_f="$tmp/stdin";;
23582 *) # Look for the file first in the build tree, then in the source tree
23583 # (if the path is not absolute). The absolute path cannot be DOS-style,
23584 # because $ac_f cannot contain `:'.
23585 test -f "$ac_f" ||
23586 case $ac_f in
23587 [\\/$]*) false;;
23588 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23589 esac ||
23590 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23591 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23592 { (exit 1); exit 1; }; };;
23593 esac
23594 ac_file_inputs="$ac_file_inputs $ac_f"
23595 done
23596
23597 # Let's still pretend it is `configure' which instantiates (i.e., don't
23598 # use $as_me), people would be surprised to read:
23599 # /* config.h. Generated by config.status. */
23600 configure_input="Generated from "`IFS=:
23601 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23602 if test x"$ac_file" != x-; then
23603 configure_input="$ac_file. $configure_input"
23604 { echo "$as_me:$LINENO: creating $ac_file" >&5
23605 echo "$as_me: creating $ac_file" >&6;}
23606 fi
23607
23608 case $ac_tag in
23609 *:-:* | *:-) cat >"$tmp/stdin";;
23610 esac
23611 ;;
23612 esac
23613
23614 ac_dir=`$as_dirname -- "$ac_file" ||
23615 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23616 X"$ac_file" : 'X\(//\)[^/]' \| \
23617 X"$ac_file" : 'X\(//\)$' \| \
23618 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23619 echo X"$ac_file" |
23620 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23621 s//\1/
23622 q
23623 }
23624 /^X\(\/\/\)[^/].*/{
23625 s//\1/
23626 q
23627 }
23628 /^X\(\/\/\)$/{
23629 s//\1/
23630 q
23631 }
23632 /^X\(\/\).*/{
23633 s//\1/
23634 q
23635 }
23636 s/.*/./; q'`
23637 { as_dir="$ac_dir"
23638 case $as_dir in #(
23639 -*) as_dir=./$as_dir;;
23640 esac
23641 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23642 as_dirs=
23643 while :; do
23644 case $as_dir in #(
23645 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23646 *) as_qdir=$as_dir;;
23647 esac
23648 as_dirs="'$as_qdir' $as_dirs"
23649 as_dir=`$as_dirname -- "$as_dir" ||
23650 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23651 X"$as_dir" : 'X\(//\)[^/]' \| \
23652 X"$as_dir" : 'X\(//\)$' \| \
23653 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23654 echo X"$as_dir" |
23655 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23656 s//\1/
23657 q
23658 }
23659 /^X\(\/\/\)[^/].*/{
23660 s//\1/
23661 q
23662 }
23663 /^X\(\/\/\)$/{
23664 s//\1/
23665 q
23666 }
23667 /^X\(\/\).*/{
23668 s//\1/
23669 q
23670 }
23671 s/.*/./; q'`
23672 test -d "$as_dir" && break
23673 done
23674 test -z "$as_dirs" || eval "mkdir $as_dirs"
23675 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23676 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23677 { (exit 1); exit 1; }; }; }
23678 ac_builddir=.
23679
23680 case "$ac_dir" in
23681 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23682 *)
23683 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23684 # A ".." for each directory in $ac_dir_suffix.
23685 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23686 case $ac_top_builddir_sub in
23687 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23688 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23689 esac ;;
23690 esac
23691 ac_abs_top_builddir=$ac_pwd
23692 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23693 # for backward compatibility:
23694 ac_top_builddir=$ac_top_build_prefix
23695
23696 case $srcdir in
23697 .) # We are building in place.
23698 ac_srcdir=.
23699 ac_top_srcdir=$ac_top_builddir_sub
23700 ac_abs_top_srcdir=$ac_pwd ;;
23701 [\\/]* | ?:[\\/]* ) # Absolute name.
23702 ac_srcdir=$srcdir$ac_dir_suffix;
23703 ac_top_srcdir=$srcdir
23704 ac_abs_top_srcdir=$srcdir ;;
23705 *) # Relative name.
23706 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23707 ac_top_srcdir=$ac_top_build_prefix$srcdir
23708 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23709 esac
23710 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23711
23712
23713 case $ac_mode in
23714 :F)
23715 #
23716 # CONFIG_FILE
23717 #
23718
23719 case $INSTALL in
23720 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23721 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23722 esac
23723 _ACEOF
23724
23725 cat >>$CONFIG_STATUS <<\_ACEOF
23726 # If the template does not know about datarootdir, expand it.
23727 # FIXME: This hack should be removed a few years after 2.60.
23728 ac_datarootdir_hack=; ac_datarootdir_seen=
23729
23730 case `sed -n '/datarootdir/ {
23731 p
23732 q
23733 }
23734 /@datadir@/p
23735 /@docdir@/p
23736 /@infodir@/p
23737 /@localedir@/p
23738 /@mandir@/p
23739 ' $ac_file_inputs` in
23740 *datarootdir*) ac_datarootdir_seen=yes;;
23741 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23742 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23743 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23744 _ACEOF
23745 cat >>$CONFIG_STATUS <<_ACEOF
23746 ac_datarootdir_hack='
23747 s&@datadir@&$datadir&g
23748 s&@docdir@&$docdir&g
23749 s&@infodir@&$infodir&g
23750 s&@localedir@&$localedir&g
23751 s&@mandir@&$mandir&g
23752 s&\\\${datarootdir}&$datarootdir&g' ;;
23753 esac
23754 _ACEOF
23755
23756 # Neutralize VPATH when `$srcdir' = `.'.
23757 # Shell code in configure.ac might set extrasub.
23758 # FIXME: do we really want to maintain this feature?
23759 cat >>$CONFIG_STATUS <<_ACEOF
23760 sed "$ac_vpsub
23761 $extrasub
23762 _ACEOF
23763 cat >>$CONFIG_STATUS <<\_ACEOF
23764 :t
23765 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23766 s&@configure_input@&$configure_input&;t t
23767 s&@top_builddir@&$ac_top_builddir_sub&;t t
23768 s&@srcdir@&$ac_srcdir&;t t
23769 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23770 s&@top_srcdir@&$ac_top_srcdir&;t t
23771 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23772 s&@builddir@&$ac_builddir&;t t
23773 s&@abs_builddir@&$ac_abs_builddir&;t t
23774 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23775 s&@INSTALL@&$ac_INSTALL&;t t
23776 $ac_datarootdir_hack
23777 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
23778
23779 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23780 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23781 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23782 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23783 which seems to be undefined. Please make sure it is defined." >&5
23784 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23785 which seems to be undefined. Please make sure it is defined." >&2;}
23786
23787 rm -f "$tmp/stdin"
23788 case $ac_file in
23789 -) cat "$tmp/out"; rm -f "$tmp/out";;
23790 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23791 esac
23792 ;;
23793 :H)
23794 #
23795 # CONFIG_HEADER
23796 #
23797 _ACEOF
23798
23799 # Transform confdefs.h into a sed script `conftest.defines', that
23800 # substitutes the proper values into config.h.in to produce config.h.
23801 rm -f conftest.defines conftest.tail
23802 # First, append a space to every undef/define line, to ease matching.
23803 echo 's/$/ /' >conftest.defines
23804 # Then, protect against being on the right side of a sed subst, or in
23805 # an unquoted here document, in config.status. If some macros were
23806 # called several times there might be several #defines for the same
23807 # symbol, which is useless. But do not sort them, since the last
23808 # AC_DEFINE must be honored.
23809 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23810 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23811 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23812 # PARAMS is the parameter list in the macro definition--in most cases, it's
23813 # just an empty string.
23814 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23815 ac_dB='\\)[ (].*,\\1define\\2'
23816 ac_dC=' '
23817 ac_dD=' ,'
23818
23819 uniq confdefs.h |
23820 sed -n '
23821 t rset
23822 :rset
23823 s/^[ ]*#[ ]*define[ ][ ]*//
23824 t ok
23825 d
23826 :ok
23827 s/[\\&,]/\\&/g
23828 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23829 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23830 ' >>conftest.defines
23831
23832 # Remove the space that was appended to ease matching.
23833 # Then replace #undef with comments. This is necessary, for
23834 # example, in the case of _POSIX_SOURCE, which is predefined and required
23835 # on some systems where configure will not decide to define it.
23836 # (The regexp can be short, since the line contains either #define or #undef.)
23837 echo 's/ $//
23838 s,^[ #]*u.*,/* & */,' >>conftest.defines
23839
23840 # Break up conftest.defines:
23841 ac_max_sed_lines=50
23842
23843 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23844 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23845 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23846 # et cetera.
23847 ac_in='$ac_file_inputs'
23848 ac_out='"$tmp/out1"'
23849 ac_nxt='"$tmp/out2"'
23850
23851 while :
23852 do
23853 # Write a here document:
23854 cat >>$CONFIG_STATUS <<_ACEOF
23855 # First, check the format of the line:
23856 cat >"\$tmp/defines.sed" <<\\CEOF
23857 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23858 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23859 b
23860 :def
23861 _ACEOF
23862 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23863 echo 'CEOF
23864 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23865 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23866 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23867 grep . conftest.tail >/dev/null || break
23868 rm -f conftest.defines
23869 mv conftest.tail conftest.defines
23870 done
23871 rm -f conftest.defines conftest.tail
23872
23873 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23874 cat >>$CONFIG_STATUS <<\_ACEOF
23875 if test x"$ac_file" != x-; then
23876 echo "/* $configure_input */" >"$tmp/config.h"
23877 cat "$ac_result" >>"$tmp/config.h"
23878 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23879 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23880 echo "$as_me: $ac_file is unchanged" >&6;}
23881 else
23882 rm -f $ac_file
23883 mv "$tmp/config.h" $ac_file
23884 fi
23885 else
23886 echo "/* $configure_input */"
23887 cat "$ac_result"
23888 fi
23889 rm -f "$tmp/out12"
23890 # Compute $ac_file's index in $config_headers.
23891 _am_stamp_count=1
23892 for _am_header in $config_headers :; do
23893 case $_am_header in
23894 $ac_file | $ac_file:* )
23895 break ;;
23896 * )
23897 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23898 esac
23899 done
23900 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
23901 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23902 X$ac_file : 'X\(//\)[^/]' \| \
23903 X$ac_file : 'X\(//\)$' \| \
23904 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
23905 echo X$ac_file |
23906 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23907 s//\1/
23908 q
23909 }
23910 /^X\(\/\/\)[^/].*/{
23911 s//\1/
23912 q
23913 }
23914 /^X\(\/\/\)$/{
23915 s//\1/
23916 q
23917 }
23918 /^X\(\/\).*/{
23919 s//\1/
23920 q
23921 }
23922 s/.*/./; q'`/stamp-h$_am_stamp_count
23923 ;;
23924
23925 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23926 echo "$as_me: executing $ac_file commands" >&6;}
23927 ;;
23928 esac
23929
23930
23931 case $ac_file$ac_mode in
23932 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23933 # Strip MF so we end up with the name of the file.
23934 mf=`echo "$mf" | sed -e 's/:.*$//'`
23935 # Check whether this is an Automake generated Makefile or not.
23936 # We used to match only the files named `Makefile.in', but
23937 # some people rename them; so instead we look at the file content.
23938 # Grep'ing the first line is not enough: some people post-process
23939 # each Makefile.in and add a new line on top of each file to say so.
23940 # So let's grep whole file.
23941 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23942 dirpart=`$as_dirname -- "$mf" ||
23943 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23944 X"$mf" : 'X\(//\)[^/]' \| \
23945 X"$mf" : 'X\(//\)$' \| \
23946 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23947 echo X"$mf" |
23948 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23949 s//\1/
23950 q
23951 }
23952 /^X\(\/\/\)[^/].*/{
23953 s//\1/
23954 q
23955 }
23956 /^X\(\/\/\)$/{
23957 s//\1/
23958 q
23959 }
23960 /^X\(\/\).*/{
23961 s//\1/
23962 q
23963 }
23964 s/.*/./; q'`
23965 else
23966 continue
23967 fi
23968 # Extract the definition of DEPDIR, am__include, and am__quote
23969 # from the Makefile without running `make'.
23970 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23971 test -z "$DEPDIR" && continue
23972 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23973 test -z "am__include" && continue
23974 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23975 # When using ansi2knr, U may be empty or an underscore; expand it
23976 U=`sed -n 's/^U = //p' < "$mf"`
23977 # Find all dependency output files, they are included files with
23978 # $(DEPDIR) in their names. We invoke sed twice because it is the
23979 # simplest approach to changing $(DEPDIR) to its actual value in the
23980 # expansion.
23981 for file in `sed -n "
23982 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23983 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23984 # Make sure the directory exists.
23985 test -f "$dirpart/$file" && continue
23986 fdir=`$as_dirname -- "$file" ||
23987 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23988 X"$file" : 'X\(//\)[^/]' \| \
23989 X"$file" : 'X\(//\)$' \| \
23990 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23991 echo X"$file" |
23992 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23993 s//\1/
23994 q
23995 }
23996 /^X\(\/\/\)[^/].*/{
23997 s//\1/
23998 q
23999 }
24000 /^X\(\/\/\)$/{
24001 s//\1/
24002 q
24003 }
24004 /^X\(\/\).*/{
24005 s//\1/
24006 q
24007 }
24008 s/.*/./; q'`
24009 { as_dir=$dirpart/$fdir
24010 case $as_dir in #(
24011 -*) as_dir=./$as_dir;;
24012 esac
24013 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24014 as_dirs=
24015 while :; do
24016 case $as_dir in #(
24017 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24018 *) as_qdir=$as_dir;;
24019 esac
24020 as_dirs="'$as_qdir' $as_dirs"
24021 as_dir=`$as_dirname -- "$as_dir" ||
24022 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24023 X"$as_dir" : 'X\(//\)[^/]' \| \
24024 X"$as_dir" : 'X\(//\)$' \| \
24025 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24026 echo X"$as_dir" |
24027 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24028 s//\1/
24029 q
24030 }
24031 /^X\(\/\/\)[^/].*/{
24032 s//\1/
24033 q
24034 }
24035 /^X\(\/\/\)$/{
24036 s//\1/
24037 q
24038 }
24039 /^X\(\/\).*/{
24040 s//\1/
24041 q
24042 }
24043 s/.*/./; q'`
24044 test -d "$as_dir" && break
24045 done
24046 test -z "$as_dirs" || eval "mkdir $as_dirs"
24047 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24048 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24049 { (exit 1); exit 1; }; }; }
24050 # echo "creating $dirpart/$file"
24051 echo '# dummy' > "$dirpart/$file"
24052 done
24053 done
24054 ;;
24055
24056 esac
24057 done # for ac_tag
24058
24059
24060 { (exit 0); exit 0; }
24061 _ACEOF
24062 chmod +x $CONFIG_STATUS
24063 ac_clean_files=$ac_clean_files_save
24064
24065
24066 # configure is writing to config.log, and then calls config.status.
24067 # config.status does its own redirection, appending to config.log.
24068 # Unfortunately, on DOS this fails, as config.log is still kept open
24069 # by configure, so config.status won't be able to write to it; its
24070 # output is simply discarded. So we exec the FD to /dev/null,
24071 # effectively closing config.log, so it can be properly (re)opened and
24072 # appended to by config.status. When coming back to configure, we
24073 # need to make the FD available again.
24074 if test "$no_create" != yes; then
24075 ac_cs_success=:
24076 ac_config_status_args=
24077 test "$silent" = yes &&
24078 ac_config_status_args="$ac_config_status_args --quiet"
24079 exec 5>/dev/null
24080 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24081 exec 5>>config.log
24082 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24083 # would make configure fail if this is the last instruction.
24084 $ac_cs_success || { (exit 1); exit 1; }
24085 fi
24086