blob: 5e57dd841b2ffb309451896de2892da0665b0fb8 [file] [log] [blame]
Adam Tkacfc4cd712009-03-11 11:14:37 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.63 for librfb 0.0.90.
4#
5# Report bugs to <http://www.tigervnc.org>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42as_nl='
43'
44export as_nl
45# Printing a long string crashes Solaris 7 /usr/bin/printf.
46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
83# Support unset when possible.
84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85 as_unset=unset
86else
87 as_unset=false
88fi
89
90
91# IFS
92# We need space, tab and new line, in precisely that order. Quoting is
93# there to prevent editors from complaining about space-tab.
94# (If _AS_PATH_WALK were called with IFS unset, it would disable word
95# splitting by setting IFS to empty value.)
96IFS=" "" $as_nl"
97
98# Find who we are. Look in the path if we contain no directory separator.
99case $0 in
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102for as_dir in $PATH
103do
104 IFS=$as_save_IFS
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107done
108IFS=$as_save_IFS
109
110 ;;
111esac
112# We did not find ourselves, most probably we were run as `sh COMMAND'
113# in which case we are not to be found in the path.
114if test "x$as_myself" = x; then
115 as_myself=$0
116fi
117if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
120fi
121
122# Work around bugs in pre-3.0 UWIN ksh.
123for as_var in ENV MAIL MAILPATH
124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# Required to use basename.
137if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
139 as_expr=expr
140else
141 as_expr=false
142fi
143
144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145 as_basename=basename
146else
147 as_basename=false
148fi
149
150
151# Name of the executable.
152as_me=`$as_basename -- "$0" ||
153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156$as_echo X/"$0" |
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 s//\1/
159 q
160 }
161 /^X\/\(\/\/\)$/{
162 s//\1/
163 q
164 }
165 /^X\/\(\/\).*/{
166 s//\1/
167 q
168 }
169 s/.*/./; q'`
170
171# CDPATH.
172$as_unset CDPATH
173
174
175if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
177 as_have_required=yes
178else
179 as_have_required=no
180fi
181
182 if test $as_have_required = yes && (eval ":
183(as_func_return () {
184 (exit \$1)
185}
186as_func_success () {
187 as_func_return 0
188}
189as_func_failure () {
190 as_func_return 1
191}
192as_func_ret_success () {
193 return 0
194}
195as_func_ret_failure () {
196 return 1
197}
198
199exitcode=0
200if as_func_success; then
201 :
202else
203 exitcode=1
204 echo as_func_success failed.
205fi
206
207if as_func_failure; then
208 exitcode=1
209 echo as_func_failure succeeded.
210fi
211
212if as_func_ret_success; then
213 :
214else
215 exitcode=1
216 echo as_func_ret_success failed.
217fi
218
219if as_func_ret_failure; then
220 exitcode=1
221 echo as_func_ret_failure succeeded.
222fi
223
224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225 :
226else
227 exitcode=1
228 echo positional parameters were not saved.
229fi
230
231test \$exitcode = 0) || { (exit 1); exit 1; }
232
233(
234 as_lineno_1=\$LINENO
235 as_lineno_2=\$LINENO
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238") 2> /dev/null; then
239 :
240else
241 as_candidate_shells=
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244do
245 IFS=$as_save_IFS
246 test -z "$as_dir" && as_dir=.
247 case $as_dir in
248 /*)
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251 done;;
252 esac
253done
254IFS=$as_save_IFS
255
256
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277_ASEOF
278}; then
279 CONFIG_SHELL=$as_shell
280 as_have_required=yes
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 emulate sh
284 NULLCMD=:
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
288 setopt NO_GLOB_SUBST
289else
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
292esac
293
294fi
295
296
297:
298(as_func_return () {
299 (exit $1)
300}
301as_func_success () {
302 as_func_return 0
303}
304as_func_failure () {
305 as_func_return 1
306}
307as_func_ret_success () {
308 return 0
309}
310as_func_ret_failure () {
311 return 1
312}
313
314exitcode=0
315if as_func_success; then
316 :
317else
318 exitcode=1
319 echo as_func_success failed.
320fi
321
322if as_func_failure; then
323 exitcode=1
324 echo as_func_failure succeeded.
325fi
326
327if as_func_ret_success; then
328 :
329else
330 exitcode=1
331 echo as_func_ret_success failed.
332fi
333
334if as_func_ret_failure; then
335 exitcode=1
336 echo as_func_ret_failure succeeded.
337fi
338
339if ( set x; as_func_ret_success y && test x = "$1" ); then
340 :
341else
342 exitcode=1
343 echo positional parameters were not saved.
344fi
345
346test $exitcode = 0) || { (exit 1); exit 1; }
347
348(
349 as_lineno_1=$LINENO
350 as_lineno_2=$LINENO
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354_ASEOF
355}; then
356 break
357fi
358
359fi
360
361 done
362
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 done
367 export CONFIG_SHELL
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369fi
370
371
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
378fi
379
380
381fi
382
383fi
384
385
386
387(eval "as_func_return () {
388 (exit \$1)
389}
390as_func_success () {
391 as_func_return 0
392}
393as_func_failure () {
394 as_func_return 1
395}
396as_func_ret_success () {
397 return 0
398}
399as_func_ret_failure () {
400 return 1
401}
402
403exitcode=0
404if as_func_success; then
405 :
406else
407 exitcode=1
408 echo as_func_success failed.
409fi
410
411if as_func_failure; then
412 exitcode=1
413 echo as_func_failure succeeded.
414fi
415
416if as_func_ret_success; then
417 :
418else
419 exitcode=1
420 echo as_func_ret_success failed.
421fi
422
423if as_func_ret_failure; then
424 exitcode=1
425 echo as_func_ret_failure succeeded.
426fi
427
428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429 :
430else
431 exitcode=1
432 echo positional parameters were not saved.
433fi
434
435test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
441}
442
443
444
445 as_lineno_1=$LINENO
446 as_lineno_2=$LINENO
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
456 # case at line end.
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
460 sed -n '
461 p
462 /[$]LINENO/=
463 ' <$as_myself |
464 sed '
465 s/[$]LINENO.*/&-/
466 t lineno
467 b
468 :lineno
469 N
470 :loop
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472 t loop
473 s/-\n.*//
474 ' >$as_me.lineno &&
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
478
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
482 . "./$as_me.lineno"
483 # Exit status is that of the last command.
484 exit
485}
486
487
488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489 as_dirname=dirname
490else
491 as_dirname=false
492fi
493
494ECHO_C= ECHO_N= ECHO_T=
495case `echo -n x` in
496-n*)
497 case `echo 'x\c'` in
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
499 *) ECHO_C='\c';;
500 esac;;
501*)
502 ECHO_N='-n';;
503esac
504if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
506 as_expr=expr
507else
508 as_expr=false
509fi
510
511rm -f conf$$ conf$$.exe conf$$.file
512if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
514else
515 rm -f conf$$.dir
516 mkdir conf$$.dir 2>/dev/null
517fi
518if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
520 as_ln_s='ln -s'
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526 as_ln_s='cp -p'
527 elif ln conf$$.file conf$$ 2>/dev/null; then
528 as_ln_s=ln
529 else
530 as_ln_s='cp -p'
531 fi
532else
533 as_ln_s='cp -p'
534fi
535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536rmdir conf$$.dir 2>/dev/null
537
538if mkdir -p . 2>/dev/null; then
539 as_mkdir_p=:
540else
541 test -d ./-p && rmdir ./-p
542 as_mkdir_p=false
543fi
544
545if test -x / >/dev/null 2>&1; then
546 as_test_x='test -x'
547else
548 if ls -dL / >/dev/null 2>&1; then
549 as_ls_L_option=L
550 else
551 as_ls_L_option=
552 fi
553 as_test_x='
554 eval sh -c '\''
555 if test -d "$1"; then
556 test -d "$1/.";
557 else
558 case $1 in
559 -*)set "./$1";;
560 esac;
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
563 '\'' sh
564 '
565fi
566as_executable_p=$as_test_x
567
568# Sed expression to map a string onto a valid CPP name.
569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571# Sed expression to map a string onto a valid variable name.
572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576
577# Check that we are running under the correct shell.
578SHELL=${CONFIG_SHELL-/bin/sh}
579
580case X$lt_ECHO in
581X*--fallback-echo)
582 # Remove one level of quotation (which was required for Make).
583 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
584 ;;
585esac
586
587ECHO=${lt_ECHO-echo}
588if test "X$1" = X--no-reexec; then
589 # Discard the --no-reexec flag, and continue.
590 shift
591elif test "X$1" = X--fallback-echo; then
592 # Avoid inline document here, it may be left over
593 :
594elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
595 # Yippee, $ECHO works!
596 :
597else
598 # Restart under the correct shell.
599 exec $SHELL "$0" --no-reexec ${1+"$@"}
600fi
601
602if test "X$1" = X--fallback-echo; then
603 # used as fallback echo
604 shift
605 cat <<_LT_EOF
606$*
607_LT_EOF
608 exit 0
609fi
610
611# The HP-UX ksh and POSIX shell print the target directory to stdout
612# if CDPATH is set.
613(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
615if test -z "$lt_ECHO"; then
616 if test "X${echo_test_string+set}" != Xset; then
617 # find a string as large as possible, as long as the shell can cope with it
618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
621 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
622 then
623 break
624 fi
625 done
626 fi
627
628 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
629 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
630 test "X$echo_testing_string" = "X$echo_test_string"; then
631 :
632 else
633 # The Solaris, AIX, and Digital Unix default echo programs unquote
634 # backslashes. This makes it impossible to quote backslashes using
635 # echo "$something" | sed 's/\\/\\\\/g'
636 #
637 # So, first we look for a working echo in the user's PATH.
638
639 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
640 for dir in $PATH /usr/ucb; do
641 IFS="$lt_save_ifs"
642 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
643 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
644 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
645 test "X$echo_testing_string" = "X$echo_test_string"; then
646 ECHO="$dir/echo"
647 break
648 fi
649 done
650 IFS="$lt_save_ifs"
651
652 if test "X$ECHO" = Xecho; then
653 # We didn't find a better echo, so look for alternatives.
654 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
655 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
656 test "X$echo_testing_string" = "X$echo_test_string"; then
657 # This shell has a builtin print -r that does the trick.
658 ECHO='print -r'
659 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
660 test "X$CONFIG_SHELL" != X/bin/ksh; then
661 # If we have ksh, try running configure again with it.
662 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
663 export ORIGINAL_CONFIG_SHELL
664 CONFIG_SHELL=/bin/ksh
665 export CONFIG_SHELL
666 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
667 else
668 # Try using printf.
669 ECHO='printf %s\n'
670 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
671 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
672 test "X$echo_testing_string" = "X$echo_test_string"; then
673 # Cool, printf works
674 :
675 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
676 test "X$echo_testing_string" = 'X\t' &&
677 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
678 test "X$echo_testing_string" = "X$echo_test_string"; then
679 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
680 export CONFIG_SHELL
681 SHELL="$CONFIG_SHELL"
682 export SHELL
683 ECHO="$CONFIG_SHELL $0 --fallback-echo"
684 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
685 test "X$echo_testing_string" = 'X\t' &&
686 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
687 test "X$echo_testing_string" = "X$echo_test_string"; then
688 ECHO="$CONFIG_SHELL $0 --fallback-echo"
689 else
690 # maybe with a smaller string...
691 prev=:
692
693 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
694 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
695 then
696 break
697 fi
698 prev="$cmd"
699 done
700
701 if test "$prev" != 'sed 50q "$0"'; then
702 echo_test_string=`eval $prev`
703 export echo_test_string
704 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
705 else
706 # Oops. We lost completely, so just stick with echo.
707 ECHO=echo
708 fi
709 fi
710 fi
711 fi
712 fi
713fi
714
715# Copy echo and quote the copy suitably for passing to libtool from
716# the Makefile, instead of quoting the original, which is used later.
717lt_ECHO=$ECHO
718if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
720fi
721
722
723
724
725exec 7<&0 </dev/null 6>&1
726
727# Name of the host.
728# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
729# so uname gets run too.
730ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
731
732#
733# Initializations.
734#
735ac_default_prefix=/usr/local
736ac_clean_files=
737ac_config_libobj_dir=.
738LIBOBJS=
739cross_compiling=no
740subdirs=
741MFLAGS=
742MAKEFLAGS=
743SHELL=${CONFIG_SHELL-/bin/sh}
744
745# Identity of this package.
746PACKAGE_NAME='librfb'
747PACKAGE_TARNAME='librfb'
748PACKAGE_VERSION='0.0.90'
749PACKAGE_STRING='librfb 0.0.90'
750PACKAGE_BUGREPORT='http://www.tigervnc.org'
751
752# Factoring default headers for most tests.
753ac_includes_default="\
754#include <stdio.h>
755#ifdef HAVE_SYS_TYPES_H
756# include <sys/types.h>
757#endif
758#ifdef HAVE_SYS_STAT_H
759# include <sys/stat.h>
760#endif
761#ifdef STDC_HEADERS
762# include <stdlib.h>
763# include <stddef.h>
764#else
765# ifdef HAVE_STDLIB_H
766# include <stdlib.h>
767# endif
768#endif
769#ifdef HAVE_STRING_H
770# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
771# include <memory.h>
772# endif
773# include <string.h>
774#endif
775#ifdef HAVE_STRINGS_H
776# include <strings.h>
777#endif
778#ifdef HAVE_INTTYPES_H
779# include <inttypes.h>
780#endif
781#ifdef HAVE_STDINT_H
782# include <stdint.h>
783#endif
784#ifdef HAVE_UNISTD_H
785# include <unistd.h>
786#endif"
787
788enable_option_checking=no
789ac_func_list=
790ac_subst_vars='LTLIBOBJS
791LIBOBJS
792INCLUDED_JPEG_FALSE
793INCLUDED_JPEG_TRUE
794subdirs
795INCLUDED_ZLIB_FALSE
796INCLUDED_ZLIB_TRUE
Adam Tkacfc4cd712009-03-11 11:14:37 +0000797CXXCPP
798CPP
799OTOOL64
800OTOOL
801LIPO
802NMEDIT
803DSYMUTIL
804lt_ECHO
805RANLIB
806AR
807OBJDUMP
808LN_S
809NM
810ac_ct_DUMPBIN
811DUMPBIN
812LD
813FGREP
814EGREP
815GREP
816SED
817host_os
818host_vendor
819host_cpu
820host
821build_os
822build_vendor
823build_cpu
824build
825LIBTOOL
826am__fastdepCXX_FALSE
827am__fastdepCXX_TRUE
828CXXDEPMODE
829ac_ct_CXX
830CXXFLAGS
831CXX
832am__fastdepCC_FALSE
833am__fastdepCC_TRUE
834CCDEPMODE
835AMDEPBACKSLASH
836AMDEP_FALSE
837AMDEP_TRUE
838am__quote
839am__include
840DEPDIR
841OBJEXT
842EXEEXT
843ac_ct_CC
844CPPFLAGS
845LDFLAGS
846CFLAGS
847CC
848am__untar
849am__tar
850AMTAR
851am__leading_dot
852SET_MAKE
853AWK
854mkdir_p
855MKDIR_P
856INSTALL_STRIP_PROGRAM
857STRIP
858install_sh
859MAKEINFO
860AUTOHEADER
861AUTOMAKE
862AUTOCONF
863ACLOCAL
864VERSION
865PACKAGE
866CYGPATH_W
867am__isrc
868INSTALL_DATA
869INSTALL_SCRIPT
870INSTALL_PROGRAM
871target_alias
872host_alias
873build_alias
874LIBS
875ECHO_T
876ECHO_N
877ECHO_C
878DEFS
879mandir
880localedir
881libdir
882psdir
883pdfdir
884dvidir
885htmldir
886infodir
887docdir
888oldincludedir
889includedir
890localstatedir
891sharedstatedir
892sysconfdir
893datadir
894datarootdir
895libexecdir
896sbindir
897bindir
898program_transform_name
899prefix
900exec_prefix
901PACKAGE_BUGREPORT
902PACKAGE_STRING
903PACKAGE_VERSION
904PACKAGE_TARNAME
905PACKAGE_NAME
906PATH_SEPARATOR
907SHELL'
908ac_subst_files=''
909ac_user_opts='
910enable_option_checking
911enable_dependency_tracking
912enable_shared
913enable_static
914with_pic
915enable_fast_install
916with_gnu_ld
917enable_libtool_lock
918with_included_zlib
919with_included_jpeg
920'
921 ac_precious_vars='build_alias
922host_alias
923target_alias
924CC
925CFLAGS
926LDFLAGS
927LIBS
928CPPFLAGS
929CXX
930CXXFLAGS
931CCC
932CPP
933CXXCPP'
934ac_subdirs_all='zlib
935jpeg'
936
937# Initialize some variables set by options.
938ac_init_help=
939ac_init_version=false
940ac_unrecognized_opts=
941ac_unrecognized_sep=
942# The variables have the same names as the options, with
943# dashes changed to underlines.
944cache_file=/dev/null
945exec_prefix=NONE
946no_create=
947no_recursion=
948prefix=NONE
949program_prefix=NONE
950program_suffix=NONE
951program_transform_name=s,x,x,
952silent=
953site=
954srcdir=
955verbose=
956x_includes=NONE
957x_libraries=NONE
958
959# Installation directory options.
960# These are left unexpanded so users can "make install exec_prefix=/foo"
961# and all the variables that are supposed to be based on exec_prefix
962# by default will actually change.
963# Use braces instead of parens because sh, perl, etc. also accept them.
964# (The list follows the same order as the GNU Coding Standards.)
965bindir='${exec_prefix}/bin'
966sbindir='${exec_prefix}/sbin'
967libexecdir='${exec_prefix}/libexec'
968datarootdir='${prefix}/share'
969datadir='${datarootdir}'
970sysconfdir='${prefix}/etc'
971sharedstatedir='${prefix}/com'
972localstatedir='${prefix}/var'
973includedir='${prefix}/include'
974oldincludedir='/usr/include'
975docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
976infodir='${datarootdir}/info'
977htmldir='${docdir}'
978dvidir='${docdir}'
979pdfdir='${docdir}'
980psdir='${docdir}'
981libdir='${exec_prefix}/lib'
982localedir='${datarootdir}/locale'
983mandir='${datarootdir}/man'
984
985ac_prev=
986ac_dashdash=
987for ac_option
988do
989 # If the previous option needs an argument, assign it.
990 if test -n "$ac_prev"; then
991 eval $ac_prev=\$ac_option
992 ac_prev=
993 continue
994 fi
995
996 case $ac_option in
997 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
998 *) ac_optarg=yes ;;
999 esac
1000
1001 # Accept the important Cygnus configure options, so we can diagnose typos.
1002
1003 case $ac_dashdash$ac_option in
1004 --)
1005 ac_dashdash=yes ;;
1006
1007 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1008 ac_prev=bindir ;;
1009 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1010 bindir=$ac_optarg ;;
1011
1012 -build | --build | --buil | --bui | --bu)
1013 ac_prev=build_alias ;;
1014 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1015 build_alias=$ac_optarg ;;
1016
1017 -cache-file | --cache-file | --cache-fil | --cache-fi \
1018 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1019 ac_prev=cache_file ;;
1020 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1021 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1022 cache_file=$ac_optarg ;;
1023
1024 --config-cache | -C)
1025 cache_file=config.cache ;;
1026
1027 -datadir | --datadir | --datadi | --datad)
1028 ac_prev=datadir ;;
1029 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1030 datadir=$ac_optarg ;;
1031
1032 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1033 | --dataroo | --dataro | --datar)
1034 ac_prev=datarootdir ;;
1035 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1036 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1037 datarootdir=$ac_optarg ;;
1038
1039 -disable-* | --disable-*)
1040 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1041 # Reject names that are not valid shell variable names.
1042 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1043 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1044 { (exit 1); exit 1; }; }
1045 ac_useropt_orig=$ac_useropt
1046 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1047 case $ac_user_opts in
1048 *"
1049"enable_$ac_useropt"
1050"*) ;;
1051 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1052 ac_unrecognized_sep=', ';;
1053 esac
1054 eval enable_$ac_useropt=no ;;
1055
1056 -docdir | --docdir | --docdi | --doc | --do)
1057 ac_prev=docdir ;;
1058 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1059 docdir=$ac_optarg ;;
1060
1061 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1062 ac_prev=dvidir ;;
1063 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1064 dvidir=$ac_optarg ;;
1065
1066 -enable-* | --enable-*)
1067 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1068 # Reject names that are not valid shell variable names.
1069 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1070 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1071 { (exit 1); exit 1; }; }
1072 ac_useropt_orig=$ac_useropt
1073 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1074 case $ac_user_opts in
1075 *"
1076"enable_$ac_useropt"
1077"*) ;;
1078 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1079 ac_unrecognized_sep=', ';;
1080 esac
1081 eval enable_$ac_useropt=\$ac_optarg ;;
1082
1083 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1084 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1085 | --exec | --exe | --ex)
1086 ac_prev=exec_prefix ;;
1087 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1088 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1089 | --exec=* | --exe=* | --ex=*)
1090 exec_prefix=$ac_optarg ;;
1091
1092 -gas | --gas | --ga | --g)
1093 # Obsolete; use --with-gas.
1094 with_gas=yes ;;
1095
1096 -help | --help | --hel | --he | -h)
1097 ac_init_help=long ;;
1098 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1099 ac_init_help=recursive ;;
1100 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1101 ac_init_help=short ;;
1102
1103 -host | --host | --hos | --ho)
1104 ac_prev=host_alias ;;
1105 -host=* | --host=* | --hos=* | --ho=*)
1106 host_alias=$ac_optarg ;;
1107
1108 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1109 ac_prev=htmldir ;;
1110 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1111 | --ht=*)
1112 htmldir=$ac_optarg ;;
1113
1114 -includedir | --includedir | --includedi | --included | --include \
1115 | --includ | --inclu | --incl | --inc)
1116 ac_prev=includedir ;;
1117 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1118 | --includ=* | --inclu=* | --incl=* | --inc=*)
1119 includedir=$ac_optarg ;;
1120
1121 -infodir | --infodir | --infodi | --infod | --info | --inf)
1122 ac_prev=infodir ;;
1123 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1124 infodir=$ac_optarg ;;
1125
1126 -libdir | --libdir | --libdi | --libd)
1127 ac_prev=libdir ;;
1128 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1129 libdir=$ac_optarg ;;
1130
1131 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1132 | --libexe | --libex | --libe)
1133 ac_prev=libexecdir ;;
1134 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1135 | --libexe=* | --libex=* | --libe=*)
1136 libexecdir=$ac_optarg ;;
1137
1138 -localedir | --localedir | --localedi | --localed | --locale)
1139 ac_prev=localedir ;;
1140 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1141 localedir=$ac_optarg ;;
1142
1143 -localstatedir | --localstatedir | --localstatedi | --localstated \
1144 | --localstate | --localstat | --localsta | --localst | --locals)
1145 ac_prev=localstatedir ;;
1146 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1147 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1148 localstatedir=$ac_optarg ;;
1149
1150 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1151 ac_prev=mandir ;;
1152 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1153 mandir=$ac_optarg ;;
1154
1155 -nfp | --nfp | --nf)
1156 # Obsolete; use --without-fp.
1157 with_fp=no ;;
1158
1159 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1160 | --no-cr | --no-c | -n)
1161 no_create=yes ;;
1162
1163 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1164 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1165 no_recursion=yes ;;
1166
1167 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1168 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1169 | --oldin | --oldi | --old | --ol | --o)
1170 ac_prev=oldincludedir ;;
1171 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1172 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1173 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1174 oldincludedir=$ac_optarg ;;
1175
1176 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1177 ac_prev=prefix ;;
1178 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1179 prefix=$ac_optarg ;;
1180
1181 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1182 | --program-pre | --program-pr | --program-p)
1183 ac_prev=program_prefix ;;
1184 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1185 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1186 program_prefix=$ac_optarg ;;
1187
1188 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1189 | --program-suf | --program-su | --program-s)
1190 ac_prev=program_suffix ;;
1191 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1192 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1193 program_suffix=$ac_optarg ;;
1194
1195 -program-transform-name | --program-transform-name \
1196 | --program-transform-nam | --program-transform-na \
1197 | --program-transform-n | --program-transform- \
1198 | --program-transform | --program-transfor \
1199 | --program-transfo | --program-transf \
1200 | --program-trans | --program-tran \
1201 | --progr-tra | --program-tr | --program-t)
1202 ac_prev=program_transform_name ;;
1203 -program-transform-name=* | --program-transform-name=* \
1204 | --program-transform-nam=* | --program-transform-na=* \
1205 | --program-transform-n=* | --program-transform-=* \
1206 | --program-transform=* | --program-transfor=* \
1207 | --program-transfo=* | --program-transf=* \
1208 | --program-trans=* | --program-tran=* \
1209 | --progr-tra=* | --program-tr=* | --program-t=*)
1210 program_transform_name=$ac_optarg ;;
1211
1212 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1213 ac_prev=pdfdir ;;
1214 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1215 pdfdir=$ac_optarg ;;
1216
1217 -psdir | --psdir | --psdi | --psd | --ps)
1218 ac_prev=psdir ;;
1219 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1220 psdir=$ac_optarg ;;
1221
1222 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1223 | -silent | --silent | --silen | --sile | --sil)
1224 silent=yes ;;
1225
1226 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1227 ac_prev=sbindir ;;
1228 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1229 | --sbi=* | --sb=*)
1230 sbindir=$ac_optarg ;;
1231
1232 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1233 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1234 | --sharedst | --shareds | --shared | --share | --shar \
1235 | --sha | --sh)
1236 ac_prev=sharedstatedir ;;
1237 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1238 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1239 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1240 | --sha=* | --sh=*)
1241 sharedstatedir=$ac_optarg ;;
1242
1243 -site | --site | --sit)
1244 ac_prev=site ;;
1245 -site=* | --site=* | --sit=*)
1246 site=$ac_optarg ;;
1247
1248 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1249 ac_prev=srcdir ;;
1250 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1251 srcdir=$ac_optarg ;;
1252
1253 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1254 | --syscon | --sysco | --sysc | --sys | --sy)
1255 ac_prev=sysconfdir ;;
1256 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1257 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1258 sysconfdir=$ac_optarg ;;
1259
1260 -target | --target | --targe | --targ | --tar | --ta | --t)
1261 ac_prev=target_alias ;;
1262 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1263 target_alias=$ac_optarg ;;
1264
1265 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1266 verbose=yes ;;
1267
1268 -version | --version | --versio | --versi | --vers | -V)
1269 ac_init_version=: ;;
1270
1271 -with-* | --with-*)
1272 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1273 # Reject names that are not valid shell variable names.
1274 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1275 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1276 { (exit 1); exit 1; }; }
1277 ac_useropt_orig=$ac_useropt
1278 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1279 case $ac_user_opts in
1280 *"
1281"with_$ac_useropt"
1282"*) ;;
1283 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1284 ac_unrecognized_sep=', ';;
1285 esac
1286 eval with_$ac_useropt=\$ac_optarg ;;
1287
1288 -without-* | --without-*)
1289 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1290 # Reject names that are not valid shell variable names.
1291 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1292 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1293 { (exit 1); exit 1; }; }
1294 ac_useropt_orig=$ac_useropt
1295 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1296 case $ac_user_opts in
1297 *"
1298"with_$ac_useropt"
1299"*) ;;
1300 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1301 ac_unrecognized_sep=', ';;
1302 esac
1303 eval with_$ac_useropt=no ;;
1304
1305 --x)
1306 # Obsolete; use --with-x.
1307 with_x=yes ;;
1308
1309 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1310 | --x-incl | --x-inc | --x-in | --x-i)
1311 ac_prev=x_includes ;;
1312 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1313 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1314 x_includes=$ac_optarg ;;
1315
1316 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1317 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1318 ac_prev=x_libraries ;;
1319 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1320 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1321 x_libraries=$ac_optarg ;;
1322
1323 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1324Try \`$0 --help' for more information." >&2
1325 { (exit 1); exit 1; }; }
1326 ;;
1327
1328 *=*)
1329 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1330 # Reject names that are not valid shell variable names.
1331 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1332 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1333 { (exit 1); exit 1; }; }
1334 eval $ac_envvar=\$ac_optarg
1335 export $ac_envvar ;;
1336
1337 *)
1338 # FIXME: should be removed in autoconf 3.0.
1339 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1340 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1341 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1342 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1343 ;;
1344
1345 esac
1346done
1347
1348if test -n "$ac_prev"; then
1349 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1350 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1351 { (exit 1); exit 1; }; }
1352fi
1353
1354if test -n "$ac_unrecognized_opts"; then
1355 case $enable_option_checking in
1356 no) ;;
1357 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1358 { (exit 1); exit 1; }; } ;;
1359 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1360 esac
1361fi
1362
1363# Check all directory arguments for consistency.
1364for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1365 datadir sysconfdir sharedstatedir localstatedir includedir \
1366 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1367 libdir localedir mandir
1368do
1369 eval ac_val=\$$ac_var
1370 # Remove trailing slashes.
1371 case $ac_val in
1372 */ )
1373 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1374 eval $ac_var=\$ac_val;;
1375 esac
1376 # Be sure to have absolute directory names.
1377 case $ac_val in
1378 [\\/$]* | ?:[\\/]* ) continue;;
1379 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1380 esac
1381 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1382 { (exit 1); exit 1; }; }
1383done
1384
1385# There might be people who depend on the old broken behavior: `$host'
1386# used to hold the argument of --host etc.
1387# FIXME: To remove some day.
1388build=$build_alias
1389host=$host_alias
1390target=$target_alias
1391
1392# FIXME: To remove some day.
1393if test "x$host_alias" != x; then
1394 if test "x$build_alias" = x; then
1395 cross_compiling=maybe
1396 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1397 If a cross compiler is detected then cross compile mode will be used." >&2
1398 elif test "x$build_alias" != "x$host_alias"; then
1399 cross_compiling=yes
1400 fi
1401fi
1402
1403ac_tool_prefix=
1404test -n "$host_alias" && ac_tool_prefix=$host_alias-
1405
1406test "$silent" = yes && exec 6>/dev/null
1407
1408
1409ac_pwd=`pwd` && test -n "$ac_pwd" &&
1410ac_ls_di=`ls -di .` &&
1411ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1412 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1413 { (exit 1); exit 1; }; }
1414test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1415 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1416 { (exit 1); exit 1; }; }
1417
1418
1419# Find the source files, if location was not specified.
1420if test -z "$srcdir"; then
1421 ac_srcdir_defaulted=yes
1422 # Try the directory containing this script, then the parent directory.
1423 ac_confdir=`$as_dirname -- "$as_myself" ||
1424$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1425 X"$as_myself" : 'X\(//\)[^/]' \| \
1426 X"$as_myself" : 'X\(//\)$' \| \
1427 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1428$as_echo X"$as_myself" |
1429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1430 s//\1/
1431 q
1432 }
1433 /^X\(\/\/\)[^/].*/{
1434 s//\1/
1435 q
1436 }
1437 /^X\(\/\/\)$/{
1438 s//\1/
1439 q
1440 }
1441 /^X\(\/\).*/{
1442 s//\1/
1443 q
1444 }
1445 s/.*/./; q'`
1446 srcdir=$ac_confdir
1447 if test ! -r "$srcdir/$ac_unique_file"; then
1448 srcdir=..
1449 fi
1450else
1451 ac_srcdir_defaulted=no
1452fi
1453if test ! -r "$srcdir/$ac_unique_file"; then
1454 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1455 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1456 { (exit 1); exit 1; }; }
1457fi
1458ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1459ac_abs_confdir=`(
1460 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1461 { (exit 1); exit 1; }; }
1462 pwd)`
1463# When building in place, set srcdir=.
1464if test "$ac_abs_confdir" = "$ac_pwd"; then
1465 srcdir=.
1466fi
1467# Remove unnecessary trailing slashes from srcdir.
1468# Double slashes in file names in object file debugging info
1469# mess up M-x gdb in Emacs.
1470case $srcdir in
1471*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1472esac
1473for ac_var in $ac_precious_vars; do
1474 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1475 eval ac_env_${ac_var}_value=\$${ac_var}
1476 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1477 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1478done
1479
1480#
1481# Report the --help message.
1482#
1483if test "$ac_init_help" = "long"; then
1484 # Omit some internal or obsolete options to make the list less imposing.
1485 # This message is too long to be a string in the A/UX 3.1 sh.
1486 cat <<_ACEOF
1487\`configure' configures librfb 0.0.90 to adapt to many kinds of systems.
1488
1489Usage: $0 [OPTION]... [VAR=VALUE]...
1490
1491To assign environment variables (e.g., CC, CFLAGS...), specify them as
1492VAR=VALUE. See below for descriptions of some of the useful variables.
1493
1494Defaults for the options are specified in brackets.
1495
1496Configuration:
1497 -h, --help display this help and exit
1498 --help=short display options specific to this package
1499 --help=recursive display the short help of all the included packages
1500 -V, --version display version information and exit
1501 -q, --quiet, --silent do not print \`checking...' messages
1502 --cache-file=FILE cache test results in FILE [disabled]
1503 -C, --config-cache alias for \`--cache-file=config.cache'
1504 -n, --no-create do not create output files
1505 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1506
1507Installation directories:
1508 --prefix=PREFIX install architecture-independent files in PREFIX
1509 [$ac_default_prefix]
1510 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1511 [PREFIX]
1512
1513By default, \`make install' will install all the files in
1514\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1515an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1516for instance \`--prefix=\$HOME'.
1517
1518For better control, use the options below.
1519
1520Fine tuning of the installation directories:
1521 --bindir=DIR user executables [EPREFIX/bin]
1522 --sbindir=DIR system admin executables [EPREFIX/sbin]
1523 --libexecdir=DIR program executables [EPREFIX/libexec]
1524 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1525 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1526 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1527 --libdir=DIR object code libraries [EPREFIX/lib]
1528 --includedir=DIR C header files [PREFIX/include]
1529 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1530 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1531 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1532 --infodir=DIR info documentation [DATAROOTDIR/info]
1533 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1534 --mandir=DIR man documentation [DATAROOTDIR/man]
1535 --docdir=DIR documentation root [DATAROOTDIR/doc/librfb]
1536 --htmldir=DIR html documentation [DOCDIR]
1537 --dvidir=DIR dvi documentation [DOCDIR]
1538 --pdfdir=DIR pdf documentation [DOCDIR]
1539 --psdir=DIR ps documentation [DOCDIR]
1540_ACEOF
1541
1542 cat <<\_ACEOF
1543
1544Program names:
1545 --program-prefix=PREFIX prepend PREFIX to installed program names
1546 --program-suffix=SUFFIX append SUFFIX to installed program names
1547 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1548
1549System types:
1550 --build=BUILD configure for building on BUILD [guessed]
1551 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1552_ACEOF
1553fi
1554
1555if test -n "$ac_init_help"; then
1556 case $ac_init_help in
1557 short | recursive ) echo "Configuration of librfb 0.0.90:";;
1558 esac
1559 cat <<\_ACEOF
1560
1561Optional Features:
1562 --disable-option-checking ignore unrecognized --enable/--with options
1563 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1564 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1565 --disable-dependency-tracking speeds up one-time build
1566 --enable-dependency-tracking do not reject slow dependency extractors
1567 --enable-shared[=PKGS] build shared libraries [default=yes]
1568 --enable-static[=PKGS] build static libraries [default=yes]
1569 --enable-fast-install[=PKGS]
1570 optimize for fast installation [default=yes]
1571 --disable-libtool-lock avoid locking (might break parallel builds)
1572
1573Optional Packages:
1574 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1575 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1576 --with-pic try to use only PIC/non-PIC objects [default=use
1577 both]
1578 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1579 --with-included-zlib use libz which is distributed with VNC
1580 --with-included-jpeg use libjpeg which is distributed with VNC
1581
1582Some influential environment variables:
1583 CC C compiler command
1584 CFLAGS C compiler flags
1585 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1586 nonstandard directory <lib dir>
1587 LIBS libraries to pass to the linker, e.g. -l<library>
1588 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1589 you have headers in a nonstandard directory <include dir>
1590 CXX C++ compiler command
1591 CXXFLAGS C++ compiler flags
1592 CPP C preprocessor
1593 CXXCPP C++ preprocessor
1594
1595Use these variables to override the choices made by `configure' or to help
1596it to find libraries and programs with nonstandard names/locations.
1597
1598Report bugs to <http://www.tigervnc.org>.
1599_ACEOF
1600ac_status=$?
1601fi
1602
1603if test "$ac_init_help" = "recursive"; then
1604 # If there are subdirs, report their specific --help.
1605 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1606 test -d "$ac_dir" ||
1607 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1608 continue
1609 ac_builddir=.
1610
1611case "$ac_dir" in
1612.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1613*)
1614 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1615 # A ".." for each directory in $ac_dir_suffix.
1616 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1617 case $ac_top_builddir_sub in
1618 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1619 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1620 esac ;;
1621esac
1622ac_abs_top_builddir=$ac_pwd
1623ac_abs_builddir=$ac_pwd$ac_dir_suffix
1624# for backward compatibility:
1625ac_top_builddir=$ac_top_build_prefix
1626
1627case $srcdir in
1628 .) # We are building in place.
1629 ac_srcdir=.
1630 ac_top_srcdir=$ac_top_builddir_sub
1631 ac_abs_top_srcdir=$ac_pwd ;;
1632 [\\/]* | ?:[\\/]* ) # Absolute name.
1633 ac_srcdir=$srcdir$ac_dir_suffix;
1634 ac_top_srcdir=$srcdir
1635 ac_abs_top_srcdir=$srcdir ;;
1636 *) # Relative name.
1637 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1638 ac_top_srcdir=$ac_top_build_prefix$srcdir
1639 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1640esac
1641ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1642
1643 cd "$ac_dir" || { ac_status=$?; continue; }
1644 # Check for guested configure.
1645 if test -f "$ac_srcdir/configure.gnu"; then
1646 echo &&
1647 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1648 elif test -f "$ac_srcdir/configure"; then
1649 echo &&
1650 $SHELL "$ac_srcdir/configure" --help=recursive
1651 else
1652 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1653 fi || ac_status=$?
1654 cd "$ac_pwd" || { ac_status=$?; break; }
1655 done
1656fi
1657
1658test -n "$ac_init_help" && exit $ac_status
1659if $ac_init_version; then
1660 cat <<\_ACEOF
1661librfb configure 0.0.90
1662generated by GNU Autoconf 2.63
1663
1664Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16652002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1666This configure script is free software; the Free Software Foundation
1667gives unlimited permission to copy, distribute and modify it.
1668_ACEOF
1669 exit
1670fi
1671cat >config.log <<_ACEOF
1672This file contains any messages produced by compilers while
1673running configure, to aid debugging if configure makes a mistake.
1674
1675It was created by librfb $as_me 0.0.90, which was
1676generated by GNU Autoconf 2.63. Invocation command line was
1677
1678 $ $0 $@
1679
1680_ACEOF
1681exec 5>>config.log
1682{
1683cat <<_ASUNAME
1684## --------- ##
1685## Platform. ##
1686## --------- ##
1687
1688hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1689uname -m = `(uname -m) 2>/dev/null || echo unknown`
1690uname -r = `(uname -r) 2>/dev/null || echo unknown`
1691uname -s = `(uname -s) 2>/dev/null || echo unknown`
1692uname -v = `(uname -v) 2>/dev/null || echo unknown`
1693
1694/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1695/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1696
1697/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1698/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1699/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1700/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1701/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1702/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1703/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1704
1705_ASUNAME
1706
1707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1708for as_dir in $PATH
1709do
1710 IFS=$as_save_IFS
1711 test -z "$as_dir" && as_dir=.
1712 $as_echo "PATH: $as_dir"
1713done
1714IFS=$as_save_IFS
1715
1716} >&5
1717
1718cat >&5 <<_ACEOF
1719
1720
1721## ----------- ##
1722## Core tests. ##
1723## ----------- ##
1724
1725_ACEOF
1726
1727
1728# Keep a trace of the command line.
1729# Strip out --no-create and --no-recursion so they do not pile up.
1730# Strip out --silent because we don't want to record it for future runs.
1731# Also quote any args containing shell meta-characters.
1732# Make two passes to allow for proper duplicate-argument suppression.
1733ac_configure_args=
1734ac_configure_args0=
1735ac_configure_args1=
1736ac_must_keep_next=false
1737for ac_pass in 1 2
1738do
1739 for ac_arg
1740 do
1741 case $ac_arg in
1742 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1743 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1744 | -silent | --silent | --silen | --sile | --sil)
1745 continue ;;
1746 *\'*)
1747 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1748 esac
1749 case $ac_pass in
1750 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1751 2)
1752 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1753 if test $ac_must_keep_next = true; then
1754 ac_must_keep_next=false # Got value, back to normal.
1755 else
1756 case $ac_arg in
1757 *=* | --config-cache | -C | -disable-* | --disable-* \
1758 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1759 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1760 | -with-* | --with-* | -without-* | --without-* | --x)
1761 case "$ac_configure_args0 " in
1762 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1763 esac
1764 ;;
1765 -* ) ac_must_keep_next=true ;;
1766 esac
1767 fi
1768 ac_configure_args="$ac_configure_args '$ac_arg'"
1769 ;;
1770 esac
1771 done
1772done
1773$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1774$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1775
1776# When interrupted or exit'd, cleanup temporary files, and complete
1777# config.log. We remove comments because anyway the quotes in there
1778# would cause problems or look ugly.
1779# WARNING: Use '\'' to represent an apostrophe within the trap.
1780# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1781trap 'exit_status=$?
1782 # Save into config.log some information that might help in debugging.
1783 {
1784 echo
1785
1786 cat <<\_ASBOX
1787## ---------------- ##
1788## Cache variables. ##
1789## ---------------- ##
1790_ASBOX
1791 echo
1792 # The following way of writing the cache mishandles newlines in values,
1793(
1794 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1795 eval ac_val=\$$ac_var
1796 case $ac_val in #(
1797 *${as_nl}*)
1798 case $ac_var in #(
1799 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1800$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1801 esac
1802 case $ac_var in #(
1803 _ | IFS | as_nl) ;; #(
1804 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1805 *) $as_unset $ac_var ;;
1806 esac ;;
1807 esac
1808 done
1809 (set) 2>&1 |
1810 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1811 *${as_nl}ac_space=\ *)
1812 sed -n \
1813 "s/'\''/'\''\\\\'\'''\''/g;
1814 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1815 ;; #(
1816 *)
1817 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1818 ;;
1819 esac |
1820 sort
1821)
1822 echo
1823
1824 cat <<\_ASBOX
1825## ----------------- ##
1826## Output variables. ##
1827## ----------------- ##
1828_ASBOX
1829 echo
1830 for ac_var in $ac_subst_vars
1831 do
1832 eval ac_val=\$$ac_var
1833 case $ac_val in
1834 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1835 esac
1836 $as_echo "$ac_var='\''$ac_val'\''"
1837 done | sort
1838 echo
1839
1840 if test -n "$ac_subst_files"; then
1841 cat <<\_ASBOX
1842## ------------------- ##
1843## File substitutions. ##
1844## ------------------- ##
1845_ASBOX
1846 echo
1847 for ac_var in $ac_subst_files
1848 do
1849 eval ac_val=\$$ac_var
1850 case $ac_val in
1851 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1852 esac
1853 $as_echo "$ac_var='\''$ac_val'\''"
1854 done | sort
1855 echo
1856 fi
1857
1858 if test -s confdefs.h; then
1859 cat <<\_ASBOX
1860## ----------- ##
1861## confdefs.h. ##
1862## ----------- ##
1863_ASBOX
1864 echo
1865 cat confdefs.h
1866 echo
1867 fi
1868 test "$ac_signal" != 0 &&
1869 $as_echo "$as_me: caught signal $ac_signal"
1870 $as_echo "$as_me: exit $exit_status"
1871 } >&5
1872 rm -f core *.core core.conftest.* &&
1873 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1874 exit $exit_status
1875' 0
1876for ac_signal in 1 2 13 15; do
1877 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1878done
1879ac_signal=0
1880
1881# confdefs.h avoids OS command line length limits that DEFS can exceed.
1882rm -f -r conftest* confdefs.h
1883
1884# Predefined preprocessor variables.
1885
1886cat >>confdefs.h <<_ACEOF
1887#define PACKAGE_NAME "$PACKAGE_NAME"
1888_ACEOF
1889
1890
1891cat >>confdefs.h <<_ACEOF
1892#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1893_ACEOF
1894
1895
1896cat >>confdefs.h <<_ACEOF
1897#define PACKAGE_VERSION "$PACKAGE_VERSION"
1898_ACEOF
1899
1900
1901cat >>confdefs.h <<_ACEOF
1902#define PACKAGE_STRING "$PACKAGE_STRING"
1903_ACEOF
1904
1905
1906cat >>confdefs.h <<_ACEOF
1907#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1908_ACEOF
1909
1910
1911# Let the site file select an alternate cache file if it wants to.
1912# Prefer an explicitly selected file to automatically selected ones.
1913ac_site_file1=NONE
1914ac_site_file2=NONE
1915if test -n "$CONFIG_SITE"; then
1916 ac_site_file1=$CONFIG_SITE
1917elif test "x$prefix" != xNONE; then
1918 ac_site_file1=$prefix/share/config.site
1919 ac_site_file2=$prefix/etc/config.site
1920else
1921 ac_site_file1=$ac_default_prefix/share/config.site
1922 ac_site_file2=$ac_default_prefix/etc/config.site
1923fi
1924for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1925do
1926 test "x$ac_site_file" = xNONE && continue
1927 if test -r "$ac_site_file"; then
1928 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1929$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1930 sed 's/^/| /' "$ac_site_file" >&5
1931 . "$ac_site_file"
1932 fi
1933done
1934
1935if test -r "$cache_file"; then
1936 # Some versions of bash will fail to source /dev/null (special
1937 # files actually), so we avoid doing that.
1938 if test -f "$cache_file"; then
1939 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1940$as_echo "$as_me: loading cache $cache_file" >&6;}
1941 case $cache_file in
1942 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1943 *) . "./$cache_file";;
1944 esac
1945 fi
1946else
1947 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1948$as_echo "$as_me: creating cache $cache_file" >&6;}
1949 >$cache_file
1950fi
1951
1952ac_func_list="$ac_func_list vsnprintf"
1953ac_func_list="$ac_func_list snprintf"
1954ac_func_list="$ac_func_list strcasecmp"
1955ac_func_list="$ac_func_list strncasecmp"
1956ac_func_list="$ac_func_list inet_ntop"
1957ac_func_list="$ac_func_list getaddrinfo"
1958# Check that the precious variables saved in the cache have kept the same
1959# value.
1960ac_cache_corrupted=false
1961for ac_var in $ac_precious_vars; do
1962 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1963 eval ac_new_set=\$ac_env_${ac_var}_set
1964 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1965 eval ac_new_val=\$ac_env_${ac_var}_value
1966 case $ac_old_set,$ac_new_set in
1967 set,)
1968 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1969$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1970 ac_cache_corrupted=: ;;
1971 ,set)
1972 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1973$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1974 ac_cache_corrupted=: ;;
1975 ,);;
1976 *)
1977 if test "x$ac_old_val" != "x$ac_new_val"; then
1978 # differences in whitespace do not lead to failure.
1979 ac_old_val_w=`echo x $ac_old_val`
1980 ac_new_val_w=`echo x $ac_new_val`
1981 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1982 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1983$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1984 ac_cache_corrupted=:
1985 else
1986 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1987$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1988 eval $ac_var=\$ac_old_val
1989 fi
1990 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1991$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1992 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1993$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1994 fi;;
1995 esac
1996 # Pass precious variables to config.status.
1997 if test "$ac_new_set" = set; then
1998 case $ac_new_val in
1999 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2000 *) ac_arg=$ac_var=$ac_new_val ;;
2001 esac
2002 case " $ac_configure_args " in
2003 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2004 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2005 esac
2006 fi
2007done
2008if $ac_cache_corrupted; then
2009 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2010$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2011 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2012$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2013 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2014$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2015 { (exit 1); exit 1; }; }
2016fi
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042ac_ext=c
2043ac_cpp='$CPP $CPPFLAGS'
2044ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2045ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2046ac_compiler_gnu=$ac_cv_c_compiler_gnu
2047
2048
2049
2050am__api_version='1.10'
2051
2052ac_aux_dir=
2053for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2054 if test -f "$ac_dir/install-sh"; then
2055 ac_aux_dir=$ac_dir
2056 ac_install_sh="$ac_aux_dir/install-sh -c"
2057 break
2058 elif test -f "$ac_dir/install.sh"; then
2059 ac_aux_dir=$ac_dir
2060 ac_install_sh="$ac_aux_dir/install.sh -c"
2061 break
2062 elif test -f "$ac_dir/shtool"; then
2063 ac_aux_dir=$ac_dir
2064 ac_install_sh="$ac_aux_dir/shtool install -c"
2065 break
2066 fi
2067done
2068if test -z "$ac_aux_dir"; then
2069 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2070$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2071 { (exit 1); exit 1; }; }
2072fi
2073
2074# These three variables are undocumented and unsupported,
2075# and are intended to be withdrawn in a future Autoconf release.
2076# They can cause serious problems if a builder's source tree is in a directory
2077# whose full name contains unusual characters.
2078ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2079ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2080ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2081
2082
2083# Find a good install program. We prefer a C program (faster),
2084# so one script is as good as another. But avoid the broken or
2085# incompatible versions:
2086# SysV /etc/install, /usr/sbin/install
2087# SunOS /usr/etc/install
2088# IRIX /sbin/install
2089# AIX /bin/install
2090# AmigaOS /C/install, which installs bootblocks on floppy discs
2091# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2092# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2093# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2094# OS/2's system install, which has a completely different semantic
2095# ./install, which can be erroneously created by make from ./install.sh.
2096# Reject install programs that cannot install multiple files.
2097{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2098$as_echo_n "checking for a BSD-compatible install... " >&6; }
2099if test -z "$INSTALL"; then
2100if test "${ac_cv_path_install+set}" = set; then
2101 $as_echo_n "(cached) " >&6
2102else
2103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2104for as_dir in $PATH
2105do
2106 IFS=$as_save_IFS
2107 test -z "$as_dir" && as_dir=.
2108 # Account for people who put trailing slashes in PATH elements.
2109case $as_dir/ in
2110 ./ | .// | /cC/* | \
2111 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2112 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2113 /usr/ucb/* ) ;;
2114 *)
2115 # OSF1 and SCO ODT 3.0 have their own names for install.
2116 # Don't use installbsd from OSF since it installs stuff as root
2117 # by default.
2118 for ac_prog in ginstall scoinst install; do
2119 for ac_exec_ext in '' $ac_executable_extensions; do
2120 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2121 if test $ac_prog = install &&
2122 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2123 # AIX install. It has an incompatible calling convention.
2124 :
2125 elif test $ac_prog = install &&
2126 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2127 # program-specific install script used by HP pwplus--don't use.
2128 :
2129 else
2130 rm -rf conftest.one conftest.two conftest.dir
2131 echo one > conftest.one
2132 echo two > conftest.two
2133 mkdir conftest.dir
2134 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2135 test -s conftest.one && test -s conftest.two &&
2136 test -s conftest.dir/conftest.one &&
2137 test -s conftest.dir/conftest.two
2138 then
2139 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2140 break 3
2141 fi
2142 fi
2143 fi
2144 done
2145 done
2146 ;;
2147esac
2148
2149done
2150IFS=$as_save_IFS
2151
2152rm -rf conftest.one conftest.two conftest.dir
2153
2154fi
2155 if test "${ac_cv_path_install+set}" = set; then
2156 INSTALL=$ac_cv_path_install
2157 else
2158 # As a last resort, use the slow shell script. Don't cache a
2159 # value for INSTALL within a source directory, because that will
2160 # break other packages using the cache if that directory is
2161 # removed, or if the value is a relative name.
2162 INSTALL=$ac_install_sh
2163 fi
2164fi
2165{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2166$as_echo "$INSTALL" >&6; }
2167
2168# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2169# It thinks the first close brace ends the variable substitution.
2170test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2171
2172test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2173
2174test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2175
2176{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2177$as_echo_n "checking whether build environment is sane... " >&6; }
2178# Just in case
2179sleep 1
2180echo timestamp > conftest.file
2181# Do `set' in a subshell so we don't clobber the current shell's
2182# arguments. Must try -L first in case configure is actually a
2183# symlink; some systems play weird games with the mod time of symlinks
2184# (eg FreeBSD returns the mod time of the symlink's containing
2185# directory).
2186if (
2187 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2188 if test "$*" = "X"; then
2189 # -L didn't work.
2190 set X `ls -t $srcdir/configure conftest.file`
2191 fi
2192 rm -f conftest.file
2193 if test "$*" != "X $srcdir/configure conftest.file" \
2194 && test "$*" != "X conftest.file $srcdir/configure"; then
2195
2196 # If neither matched, then we have a broken ls. This can happen
2197 # if, for instance, CONFIG_SHELL is bash and it inherits a
2198 # broken ls alias from the environment. This has actually
2199 # happened. Such a system could not be considered "sane".
2200 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2201alias in your environment" >&5
2202$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2203alias in your environment" >&2;}
2204 { (exit 1); exit 1; }; }
2205 fi
2206
2207 test "$2" = conftest.file
2208 )
2209then
2210 # Ok.
2211 :
2212else
2213 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2214Check your system clock" >&5
2215$as_echo "$as_me: error: newly created file is older than distributed files!
2216Check your system clock" >&2;}
2217 { (exit 1); exit 1; }; }
2218fi
2219{ $as_echo "$as_me:$LINENO: result: yes" >&5
2220$as_echo "yes" >&6; }
2221test "$program_prefix" != NONE &&
2222 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2223# Use a double $ so make ignores it.
2224test "$program_suffix" != NONE &&
2225 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2226# Double any \ or $.
2227# By default was `s,x,x', remove it if useless.
2228ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2229program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2230
2231# expand $ac_aux_dir to an absolute path
2232am_aux_dir=`cd $ac_aux_dir && pwd`
2233
2234test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2235# Use eval to expand $SHELL
2236if eval "$MISSING --run true"; then
2237 am_missing_run="$MISSING --run "
2238else
2239 am_missing_run=
2240 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2241$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2242fi
2243
2244{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2245$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2246if test -z "$MKDIR_P"; then
2247 if test "${ac_cv_path_mkdir+set}" = set; then
2248 $as_echo_n "(cached) " >&6
2249else
2250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2251for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2252do
2253 IFS=$as_save_IFS
2254 test -z "$as_dir" && as_dir=.
2255 for ac_prog in mkdir gmkdir; do
2256 for ac_exec_ext in '' $ac_executable_extensions; do
2257 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2258 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2259 'mkdir (GNU coreutils) '* | \
2260 'mkdir (coreutils) '* | \
2261 'mkdir (fileutils) '4.1*)
2262 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2263 break 3;;
2264 esac
2265 done
2266 done
2267done
2268IFS=$as_save_IFS
2269
2270fi
2271
2272 if test "${ac_cv_path_mkdir+set}" = set; then
2273 MKDIR_P="$ac_cv_path_mkdir -p"
2274 else
2275 # As a last resort, use the slow shell script. Don't cache a
2276 # value for MKDIR_P within a source directory, because that will
2277 # break other packages using the cache if that directory is
2278 # removed, or if the value is a relative name.
2279 test -d ./--version && rmdir ./--version
2280 MKDIR_P="$ac_install_sh -d"
2281 fi
2282fi
2283{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2284$as_echo "$MKDIR_P" >&6; }
2285
2286mkdir_p="$MKDIR_P"
2287case $mkdir_p in
2288 [\\/$]* | ?:[\\/]*) ;;
2289 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2290esac
2291
2292for ac_prog in gawk mawk nawk awk
2293do
2294 # Extract the first word of "$ac_prog", so it can be a program name with args.
2295set dummy $ac_prog; ac_word=$2
2296{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2297$as_echo_n "checking for $ac_word... " >&6; }
2298if test "${ac_cv_prog_AWK+set}" = set; then
2299 $as_echo_n "(cached) " >&6
2300else
2301 if test -n "$AWK"; then
2302 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2303else
2304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2305for as_dir in $PATH
2306do
2307 IFS=$as_save_IFS
2308 test -z "$as_dir" && as_dir=.
2309 for ac_exec_ext in '' $ac_executable_extensions; do
2310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2311 ac_cv_prog_AWK="$ac_prog"
2312 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2313 break 2
2314 fi
2315done
2316done
2317IFS=$as_save_IFS
2318
2319fi
2320fi
2321AWK=$ac_cv_prog_AWK
2322if test -n "$AWK"; then
2323 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2324$as_echo "$AWK" >&6; }
2325else
2326 { $as_echo "$as_me:$LINENO: result: no" >&5
2327$as_echo "no" >&6; }
2328fi
2329
2330
2331 test -n "$AWK" && break
2332done
2333
2334{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2335$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2336set x ${MAKE-make}
2337ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2338if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2339 $as_echo_n "(cached) " >&6
2340else
2341 cat >conftest.make <<\_ACEOF
2342SHELL = /bin/sh
2343all:
2344 @echo '@@@%%%=$(MAKE)=@@@%%%'
2345_ACEOF
2346# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2347case `${MAKE-make} -f conftest.make 2>/dev/null` in
2348 *@@@%%%=?*=@@@%%%*)
2349 eval ac_cv_prog_make_${ac_make}_set=yes;;
2350 *)
2351 eval ac_cv_prog_make_${ac_make}_set=no;;
2352esac
2353rm -f conftest.make
2354fi
2355if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2356 { $as_echo "$as_me:$LINENO: result: yes" >&5
2357$as_echo "yes" >&6; }
2358 SET_MAKE=
2359else
2360 { $as_echo "$as_me:$LINENO: result: no" >&5
2361$as_echo "no" >&6; }
2362 SET_MAKE="MAKE=${MAKE-make}"
2363fi
2364
2365rm -rf .tst 2>/dev/null
2366mkdir .tst 2>/dev/null
2367if test -d .tst; then
2368 am__leading_dot=.
2369else
2370 am__leading_dot=_
2371fi
2372rmdir .tst 2>/dev/null
2373
2374if test "`cd $srcdir && pwd`" != "`pwd`"; then
2375 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2376 # is not polluted with repeated "-I."
2377 am__isrc=' -I$(srcdir)'
2378 # test to see if srcdir already configured
2379 if test -f $srcdir/config.status; then
2380 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2381$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2382 { (exit 1); exit 1; }; }
2383 fi
2384fi
2385
2386# test whether we have cygpath
2387if test -z "$CYGPATH_W"; then
2388 if (cygpath --version) >/dev/null 2>/dev/null; then
2389 CYGPATH_W='cygpath -w'
2390 else
2391 CYGPATH_W=echo
2392 fi
2393fi
2394
2395
2396# Define the identity of the package.
2397 PACKAGE='librfb'
2398 VERSION='0.0.90'
2399
2400
2401cat >>confdefs.h <<_ACEOF
2402#define PACKAGE "$PACKAGE"
2403_ACEOF
2404
2405
2406cat >>confdefs.h <<_ACEOF
2407#define VERSION "$VERSION"
2408_ACEOF
2409
2410# Some tools Automake needs.
2411
2412ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2413
2414
2415AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2416
2417
2418AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2419
2420
2421AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2422
2423
2424MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2425
2426install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2427
2428# Installed binaries are usually stripped using `strip' when the user
2429# run `make install-strip'. However `strip' might not be the right
2430# tool to use in cross-compilation environments, therefore Automake
2431# will honor the `STRIP' environment variable to overrule this program.
2432if test "$cross_compiling" != no; then
2433 if test -n "$ac_tool_prefix"; then
2434 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2435set dummy ${ac_tool_prefix}strip; ac_word=$2
2436{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2437$as_echo_n "checking for $ac_word... " >&6; }
2438if test "${ac_cv_prog_STRIP+set}" = set; then
2439 $as_echo_n "(cached) " >&6
2440else
2441 if test -n "$STRIP"; then
2442 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2443else
2444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2445for as_dir in $PATH
2446do
2447 IFS=$as_save_IFS
2448 test -z "$as_dir" && as_dir=.
2449 for ac_exec_ext in '' $ac_executable_extensions; do
2450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2451 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2452 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2453 break 2
2454 fi
2455done
2456done
2457IFS=$as_save_IFS
2458
2459fi
2460fi
2461STRIP=$ac_cv_prog_STRIP
2462if test -n "$STRIP"; then
2463 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2464$as_echo "$STRIP" >&6; }
2465else
2466 { $as_echo "$as_me:$LINENO: result: no" >&5
2467$as_echo "no" >&6; }
2468fi
2469
2470
2471fi
2472if test -z "$ac_cv_prog_STRIP"; then
2473 ac_ct_STRIP=$STRIP
2474 # Extract the first word of "strip", so it can be a program name with args.
2475set dummy strip; ac_word=$2
2476{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2477$as_echo_n "checking for $ac_word... " >&6; }
2478if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2479 $as_echo_n "(cached) " >&6
2480else
2481 if test -n "$ac_ct_STRIP"; then
2482 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2483else
2484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2485for as_dir in $PATH
2486do
2487 IFS=$as_save_IFS
2488 test -z "$as_dir" && as_dir=.
2489 for ac_exec_ext in '' $ac_executable_extensions; do
2490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2491 ac_cv_prog_ac_ct_STRIP="strip"
2492 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2493 break 2
2494 fi
2495done
2496done
2497IFS=$as_save_IFS
2498
2499fi
2500fi
2501ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2502if test -n "$ac_ct_STRIP"; then
2503 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2504$as_echo "$ac_ct_STRIP" >&6; }
2505else
2506 { $as_echo "$as_me:$LINENO: result: no" >&5
2507$as_echo "no" >&6; }
2508fi
2509
2510 if test "x$ac_ct_STRIP" = x; then
2511 STRIP=":"
2512 else
2513 case $cross_compiling:$ac_tool_warned in
2514yes:)
2515{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2516$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2517ac_tool_warned=yes ;;
2518esac
2519 STRIP=$ac_ct_STRIP
2520 fi
2521else
2522 STRIP="$ac_cv_prog_STRIP"
2523fi
2524
2525fi
2526INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2527
2528# We need awk for the "check" target. The system "awk" is bad on
2529# some platforms.
2530# Always define AMTAR for backward compatibility.
2531
2532AMTAR=${AMTAR-"${am_missing_run}tar"}
2533
2534am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2535
2536
2537
2538
2539
2540
2541ac_ext=c
2542ac_cpp='$CPP $CPPFLAGS'
2543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2545ac_compiler_gnu=$ac_cv_c_compiler_gnu
2546if test -n "$ac_tool_prefix"; then
2547 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2548set dummy ${ac_tool_prefix}gcc; ac_word=$2
2549{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2550$as_echo_n "checking for $ac_word... " >&6; }
2551if test "${ac_cv_prog_CC+set}" = set; then
2552 $as_echo_n "(cached) " >&6
2553else
2554 if test -n "$CC"; then
2555 ac_cv_prog_CC="$CC" # Let the user override the test.
2556else
2557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2558for as_dir in $PATH
2559do
2560 IFS=$as_save_IFS
2561 test -z "$as_dir" && as_dir=.
2562 for ac_exec_ext in '' $ac_executable_extensions; do
2563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2564 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2565 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2566 break 2
2567 fi
2568done
2569done
2570IFS=$as_save_IFS
2571
2572fi
2573fi
2574CC=$ac_cv_prog_CC
2575if test -n "$CC"; then
2576 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2577$as_echo "$CC" >&6; }
2578else
2579 { $as_echo "$as_me:$LINENO: result: no" >&5
2580$as_echo "no" >&6; }
2581fi
2582
2583
2584fi
2585if test -z "$ac_cv_prog_CC"; then
2586 ac_ct_CC=$CC
2587 # Extract the first word of "gcc", so it can be a program name with args.
2588set dummy gcc; ac_word=$2
2589{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2590$as_echo_n "checking for $ac_word... " >&6; }
2591if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2592 $as_echo_n "(cached) " >&6
2593else
2594 if test -n "$ac_ct_CC"; then
2595 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2596else
2597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598for as_dir in $PATH
2599do
2600 IFS=$as_save_IFS
2601 test -z "$as_dir" && as_dir=.
2602 for ac_exec_ext in '' $ac_executable_extensions; do
2603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2604 ac_cv_prog_ac_ct_CC="gcc"
2605 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2606 break 2
2607 fi
2608done
2609done
2610IFS=$as_save_IFS
2611
2612fi
2613fi
2614ac_ct_CC=$ac_cv_prog_ac_ct_CC
2615if test -n "$ac_ct_CC"; then
2616 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2617$as_echo "$ac_ct_CC" >&6; }
2618else
2619 { $as_echo "$as_me:$LINENO: result: no" >&5
2620$as_echo "no" >&6; }
2621fi
2622
2623 if test "x$ac_ct_CC" = x; then
2624 CC=""
2625 else
2626 case $cross_compiling:$ac_tool_warned in
2627yes:)
2628{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2629$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2630ac_tool_warned=yes ;;
2631esac
2632 CC=$ac_ct_CC
2633 fi
2634else
2635 CC="$ac_cv_prog_CC"
2636fi
2637
2638if test -z "$CC"; then
2639 if test -n "$ac_tool_prefix"; then
2640 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2641set dummy ${ac_tool_prefix}cc; ac_word=$2
2642{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2643$as_echo_n "checking for $ac_word... " >&6; }
2644if test "${ac_cv_prog_CC+set}" = set; then
2645 $as_echo_n "(cached) " >&6
2646else
2647 if test -n "$CC"; then
2648 ac_cv_prog_CC="$CC" # Let the user override the test.
2649else
2650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651for as_dir in $PATH
2652do
2653 IFS=$as_save_IFS
2654 test -z "$as_dir" && as_dir=.
2655 for ac_exec_ext in '' $ac_executable_extensions; do
2656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2657 ac_cv_prog_CC="${ac_tool_prefix}cc"
2658 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2659 break 2
2660 fi
2661done
2662done
2663IFS=$as_save_IFS
2664
2665fi
2666fi
2667CC=$ac_cv_prog_CC
2668if test -n "$CC"; then
2669 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2670$as_echo "$CC" >&6; }
2671else
2672 { $as_echo "$as_me:$LINENO: result: no" >&5
2673$as_echo "no" >&6; }
2674fi
2675
2676
2677 fi
2678fi
2679if test -z "$CC"; then
2680 # Extract the first word of "cc", so it can be a program name with args.
2681set dummy cc; ac_word=$2
2682{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2683$as_echo_n "checking for $ac_word... " >&6; }
2684if test "${ac_cv_prog_CC+set}" = set; then
2685 $as_echo_n "(cached) " >&6
2686else
2687 if test -n "$CC"; then
2688 ac_cv_prog_CC="$CC" # Let the user override the test.
2689else
2690 ac_prog_rejected=no
2691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692for as_dir in $PATH
2693do
2694 IFS=$as_save_IFS
2695 test -z "$as_dir" && as_dir=.
2696 for ac_exec_ext in '' $ac_executable_extensions; do
2697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2698 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2699 ac_prog_rejected=yes
2700 continue
2701 fi
2702 ac_cv_prog_CC="cc"
2703 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2704 break 2
2705 fi
2706done
2707done
2708IFS=$as_save_IFS
2709
2710if test $ac_prog_rejected = yes; then
2711 # We found a bogon in the path, so make sure we never use it.
2712 set dummy $ac_cv_prog_CC
2713 shift
2714 if test $# != 0; then
2715 # We chose a different compiler from the bogus one.
2716 # However, it has the same basename, so the bogon will be chosen
2717 # first if we set CC to just the basename; use the full file name.
2718 shift
2719 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2720 fi
2721fi
2722fi
2723fi
2724CC=$ac_cv_prog_CC
2725if test -n "$CC"; then
2726 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2727$as_echo "$CC" >&6; }
2728else
2729 { $as_echo "$as_me:$LINENO: result: no" >&5
2730$as_echo "no" >&6; }
2731fi
2732
2733
2734fi
2735if test -z "$CC"; then
2736 if test -n "$ac_tool_prefix"; then
2737 for ac_prog in cl.exe
2738 do
2739 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2740set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2741{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2742$as_echo_n "checking for $ac_word... " >&6; }
2743if test "${ac_cv_prog_CC+set}" = set; then
2744 $as_echo_n "(cached) " >&6
2745else
2746 if test -n "$CC"; then
2747 ac_cv_prog_CC="$CC" # Let the user override the test.
2748else
2749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2750for as_dir in $PATH
2751do
2752 IFS=$as_save_IFS
2753 test -z "$as_dir" && as_dir=.
2754 for ac_exec_ext in '' $ac_executable_extensions; do
2755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2756 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2757 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2758 break 2
2759 fi
2760done
2761done
2762IFS=$as_save_IFS
2763
2764fi
2765fi
2766CC=$ac_cv_prog_CC
2767if test -n "$CC"; then
2768 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2769$as_echo "$CC" >&6; }
2770else
2771 { $as_echo "$as_me:$LINENO: result: no" >&5
2772$as_echo "no" >&6; }
2773fi
2774
2775
2776 test -n "$CC" && break
2777 done
2778fi
2779if test -z "$CC"; then
2780 ac_ct_CC=$CC
2781 for ac_prog in cl.exe
2782do
2783 # Extract the first word of "$ac_prog", so it can be a program name with args.
2784set dummy $ac_prog; ac_word=$2
2785{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2786$as_echo_n "checking for $ac_word... " >&6; }
2787if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2788 $as_echo_n "(cached) " >&6
2789else
2790 if test -n "$ac_ct_CC"; then
2791 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2792else
2793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2794for as_dir in $PATH
2795do
2796 IFS=$as_save_IFS
2797 test -z "$as_dir" && as_dir=.
2798 for ac_exec_ext in '' $ac_executable_extensions; do
2799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2800 ac_cv_prog_ac_ct_CC="$ac_prog"
2801 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2802 break 2
2803 fi
2804done
2805done
2806IFS=$as_save_IFS
2807
2808fi
2809fi
2810ac_ct_CC=$ac_cv_prog_ac_ct_CC
2811if test -n "$ac_ct_CC"; then
2812 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2813$as_echo "$ac_ct_CC" >&6; }
2814else
2815 { $as_echo "$as_me:$LINENO: result: no" >&5
2816$as_echo "no" >&6; }
2817fi
2818
2819
2820 test -n "$ac_ct_CC" && break
2821done
2822
2823 if test "x$ac_ct_CC" = x; then
2824 CC=""
2825 else
2826 case $cross_compiling:$ac_tool_warned in
2827yes:)
2828{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2829$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2830ac_tool_warned=yes ;;
2831esac
2832 CC=$ac_ct_CC
2833 fi
2834fi
2835
2836fi
2837
2838
2839test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2840$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2841{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2842See \`config.log' for more details." >&5
2843$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2844See \`config.log' for more details." >&2;}
2845 { (exit 1); exit 1; }; }; }
2846
2847# Provide some information about the compiler.
2848$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2849set X $ac_compile
2850ac_compiler=$2
2851{ (ac_try="$ac_compiler --version >&5"
2852case "(($ac_try" in
2853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2854 *) ac_try_echo=$ac_try;;
2855esac
2856eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2857$as_echo "$ac_try_echo") >&5
2858 (eval "$ac_compiler --version >&5") 2>&5
2859 ac_status=$?
2860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861 (exit $ac_status); }
2862{ (ac_try="$ac_compiler -v >&5"
2863case "(($ac_try" in
2864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2865 *) ac_try_echo=$ac_try;;
2866esac
2867eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2868$as_echo "$ac_try_echo") >&5
2869 (eval "$ac_compiler -v >&5") 2>&5
2870 ac_status=$?
2871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872 (exit $ac_status); }
2873{ (ac_try="$ac_compiler -V >&5"
2874case "(($ac_try" in
2875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2876 *) ac_try_echo=$ac_try;;
2877esac
2878eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2879$as_echo "$ac_try_echo") >&5
2880 (eval "$ac_compiler -V >&5") 2>&5
2881 ac_status=$?
2882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883 (exit $ac_status); }
2884
2885cat >conftest.$ac_ext <<_ACEOF
2886/* confdefs.h. */
2887_ACEOF
2888cat confdefs.h >>conftest.$ac_ext
2889cat >>conftest.$ac_ext <<_ACEOF
2890/* end confdefs.h. */
2891
2892int
2893main ()
2894{
2895
2896 ;
2897 return 0;
2898}
2899_ACEOF
2900ac_clean_files_save=$ac_clean_files
2901ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2902# Try to create an executable without -o first, disregard a.out.
2903# It will help us diagnose broken compilers, and finding out an intuition
2904# of exeext.
2905{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2906$as_echo_n "checking for C compiler default output file name... " >&6; }
2907ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2908
2909# The possible output files:
2910ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2911
2912ac_rmfiles=
2913for ac_file in $ac_files
2914do
2915 case $ac_file in
2916 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2917 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2918 esac
2919done
2920rm -f $ac_rmfiles
2921
2922if { (ac_try="$ac_link_default"
2923case "(($ac_try" in
2924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2925 *) ac_try_echo=$ac_try;;
2926esac
2927eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2928$as_echo "$ac_try_echo") >&5
2929 (eval "$ac_link_default") 2>&5
2930 ac_status=$?
2931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); }; then
2933 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2934# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2935# in a Makefile. We should not override ac_cv_exeext if it was cached,
2936# so that the user can short-circuit this test for compilers unknown to
2937# Autoconf.
2938for ac_file in $ac_files ''
2939do
2940 test -f "$ac_file" || continue
2941 case $ac_file in
2942 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2943 ;;
2944 [ab].out )
2945 # We found the default executable, but exeext='' is most
2946 # certainly right.
2947 break;;
2948 *.* )
2949 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2950 then :; else
2951 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2952 fi
2953 # We set ac_cv_exeext here because the later test for it is not
2954 # safe: cross compilers may not add the suffix if given an `-o'
2955 # argument, so we may need to know it at that point already.
2956 # Even if this section looks crufty: it has the advantage of
2957 # actually working.
2958 break;;
2959 * )
2960 break;;
2961 esac
2962done
2963test "$ac_cv_exeext" = no && ac_cv_exeext=
2964
2965else
2966 ac_file=''
2967fi
2968
2969{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2970$as_echo "$ac_file" >&6; }
2971if test -z "$ac_file"; then
2972 $as_echo "$as_me: failed program was:" >&5
2973sed 's/^/| /' conftest.$ac_ext >&5
2974
2975{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2976$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2977{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2978See \`config.log' for more details." >&5
2979$as_echo "$as_me: error: C compiler cannot create executables
2980See \`config.log' for more details." >&2;}
2981 { (exit 77); exit 77; }; }; }
2982fi
2983
2984ac_exeext=$ac_cv_exeext
2985
2986# Check that the compiler produces executables we can run. If not, either
2987# the compiler is broken, or we cross compile.
2988{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2989$as_echo_n "checking whether the C compiler works... " >&6; }
2990# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2991# If not cross compiling, check that we can run a simple program.
2992if test "$cross_compiling" != yes; then
2993 if { ac_try='./$ac_file'
2994 { (case "(($ac_try" in
2995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2996 *) ac_try_echo=$ac_try;;
2997esac
2998eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2999$as_echo "$ac_try_echo") >&5
3000 (eval "$ac_try") 2>&5
3001 ac_status=$?
3002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003 (exit $ac_status); }; }; then
3004 cross_compiling=no
3005 else
3006 if test "$cross_compiling" = maybe; then
3007 cross_compiling=yes
3008 else
3009 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3010$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3011{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3012If you meant to cross compile, use \`--host'.
3013See \`config.log' for more details." >&5
3014$as_echo "$as_me: error: cannot run C compiled programs.
3015If you meant to cross compile, use \`--host'.
3016See \`config.log' for more details." >&2;}
3017 { (exit 1); exit 1; }; }; }
3018 fi
3019 fi
3020fi
3021{ $as_echo "$as_me:$LINENO: result: yes" >&5
3022$as_echo "yes" >&6; }
3023
3024rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3025ac_clean_files=$ac_clean_files_save
3026# Check that the compiler produces executables we can run. If not, either
3027# the compiler is broken, or we cross compile.
3028{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3029$as_echo_n "checking whether we are cross compiling... " >&6; }
3030{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3031$as_echo "$cross_compiling" >&6; }
3032
3033{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3034$as_echo_n "checking for suffix of executables... " >&6; }
3035if { (ac_try="$ac_link"
3036case "(($ac_try" in
3037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038 *) ac_try_echo=$ac_try;;
3039esac
3040eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3041$as_echo "$ac_try_echo") >&5
3042 (eval "$ac_link") 2>&5
3043 ac_status=$?
3044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045 (exit $ac_status); }; then
3046 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3047# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3048# work properly (i.e., refer to `conftest.exe'), while it won't with
3049# `rm'.
3050for ac_file in conftest.exe conftest conftest.*; do
3051 test -f "$ac_file" || continue
3052 case $ac_file in
3053 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3054 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3055 break;;
3056 * ) break;;
3057 esac
3058done
3059else
3060 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3061$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3062{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3063See \`config.log' for more details." >&5
3064$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3065See \`config.log' for more details." >&2;}
3066 { (exit 1); exit 1; }; }; }
3067fi
3068
3069rm -f conftest$ac_cv_exeext
3070{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3071$as_echo "$ac_cv_exeext" >&6; }
3072
3073rm -f conftest.$ac_ext
3074EXEEXT=$ac_cv_exeext
3075ac_exeext=$EXEEXT
3076{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3077$as_echo_n "checking for suffix of object files... " >&6; }
3078if test "${ac_cv_objext+set}" = set; then
3079 $as_echo_n "(cached) " >&6
3080else
3081 cat >conftest.$ac_ext <<_ACEOF
3082/* confdefs.h. */
3083_ACEOF
3084cat confdefs.h >>conftest.$ac_ext
3085cat >>conftest.$ac_ext <<_ACEOF
3086/* end confdefs.h. */
3087
3088int
3089main ()
3090{
3091
3092 ;
3093 return 0;
3094}
3095_ACEOF
3096rm -f conftest.o conftest.obj
3097if { (ac_try="$ac_compile"
3098case "(($ac_try" in
3099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100 *) ac_try_echo=$ac_try;;
3101esac
3102eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3103$as_echo "$ac_try_echo") >&5
3104 (eval "$ac_compile") 2>&5
3105 ac_status=$?
3106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); }; then
3108 for ac_file in conftest.o conftest.obj conftest.*; do
3109 test -f "$ac_file" || continue;
3110 case $ac_file in
3111 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3112 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3113 break;;
3114 esac
3115done
3116else
3117 $as_echo "$as_me: failed program was:" >&5
3118sed 's/^/| /' conftest.$ac_ext >&5
3119
3120{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3121$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3122{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3123See \`config.log' for more details." >&5
3124$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3125See \`config.log' for more details." >&2;}
3126 { (exit 1); exit 1; }; }; }
3127fi
3128
3129rm -f conftest.$ac_cv_objext conftest.$ac_ext
3130fi
3131{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3132$as_echo "$ac_cv_objext" >&6; }
3133OBJEXT=$ac_cv_objext
3134ac_objext=$OBJEXT
3135{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3136$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3137if test "${ac_cv_c_compiler_gnu+set}" = set; then
3138 $as_echo_n "(cached) " >&6
3139else
3140 cat >conftest.$ac_ext <<_ACEOF
3141/* confdefs.h. */
3142_ACEOF
3143cat confdefs.h >>conftest.$ac_ext
3144cat >>conftest.$ac_ext <<_ACEOF
3145/* end confdefs.h. */
3146
3147int
3148main ()
3149{
3150#ifndef __GNUC__
3151 choke me
3152#endif
3153
3154 ;
3155 return 0;
3156}
3157_ACEOF
3158rm -f conftest.$ac_objext
3159if { (ac_try="$ac_compile"
3160case "(($ac_try" in
3161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162 *) ac_try_echo=$ac_try;;
3163esac
3164eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3165$as_echo "$ac_try_echo") >&5
3166 (eval "$ac_compile") 2>conftest.er1
3167 ac_status=$?
3168 grep -v '^ *+' conftest.er1 >conftest.err
3169 rm -f conftest.er1
3170 cat conftest.err >&5
3171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172 (exit $ac_status); } && {
3173 test -z "$ac_c_werror_flag" ||
3174 test ! -s conftest.err
3175 } && test -s conftest.$ac_objext; then
3176 ac_compiler_gnu=yes
3177else
3178 $as_echo "$as_me: failed program was:" >&5
3179sed 's/^/| /' conftest.$ac_ext >&5
3180
3181 ac_compiler_gnu=no
3182fi
3183
3184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3185ac_cv_c_compiler_gnu=$ac_compiler_gnu
3186
3187fi
3188{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3189$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3190if test $ac_compiler_gnu = yes; then
3191 GCC=yes
3192else
3193 GCC=
3194fi
3195ac_test_CFLAGS=${CFLAGS+set}
3196ac_save_CFLAGS=$CFLAGS
3197{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3198$as_echo_n "checking whether $CC accepts -g... " >&6; }
3199if test "${ac_cv_prog_cc_g+set}" = set; then
3200 $as_echo_n "(cached) " >&6
3201else
3202 ac_save_c_werror_flag=$ac_c_werror_flag
3203 ac_c_werror_flag=yes
3204 ac_cv_prog_cc_g=no
3205 CFLAGS="-g"
3206 cat >conftest.$ac_ext <<_ACEOF
3207/* confdefs.h. */
3208_ACEOF
3209cat confdefs.h >>conftest.$ac_ext
3210cat >>conftest.$ac_ext <<_ACEOF
3211/* end confdefs.h. */
3212
3213int
3214main ()
3215{
3216
3217 ;
3218 return 0;
3219}
3220_ACEOF
3221rm -f conftest.$ac_objext
3222if { (ac_try="$ac_compile"
3223case "(($ac_try" in
3224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3225 *) ac_try_echo=$ac_try;;
3226esac
3227eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3228$as_echo "$ac_try_echo") >&5
3229 (eval "$ac_compile") 2>conftest.er1
3230 ac_status=$?
3231 grep -v '^ *+' conftest.er1 >conftest.err
3232 rm -f conftest.er1
3233 cat conftest.err >&5
3234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235 (exit $ac_status); } && {
3236 test -z "$ac_c_werror_flag" ||
3237 test ! -s conftest.err
3238 } && test -s conftest.$ac_objext; then
3239 ac_cv_prog_cc_g=yes
3240else
3241 $as_echo "$as_me: failed program was:" >&5
3242sed 's/^/| /' conftest.$ac_ext >&5
3243
3244 CFLAGS=""
3245 cat >conftest.$ac_ext <<_ACEOF
3246/* confdefs.h. */
3247_ACEOF
3248cat confdefs.h >>conftest.$ac_ext
3249cat >>conftest.$ac_ext <<_ACEOF
3250/* end confdefs.h. */
3251
3252int
3253main ()
3254{
3255
3256 ;
3257 return 0;
3258}
3259_ACEOF
3260rm -f conftest.$ac_objext
3261if { (ac_try="$ac_compile"
3262case "(($ac_try" in
3263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3264 *) ac_try_echo=$ac_try;;
3265esac
3266eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3267$as_echo "$ac_try_echo") >&5
3268 (eval "$ac_compile") 2>conftest.er1
3269 ac_status=$?
3270 grep -v '^ *+' conftest.er1 >conftest.err
3271 rm -f conftest.er1
3272 cat conftest.err >&5
3273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); } && {
3275 test -z "$ac_c_werror_flag" ||
3276 test ! -s conftest.err
3277 } && test -s conftest.$ac_objext; then
3278 :
3279else
3280 $as_echo "$as_me: failed program was:" >&5
3281sed 's/^/| /' conftest.$ac_ext >&5
3282
3283 ac_c_werror_flag=$ac_save_c_werror_flag
3284 CFLAGS="-g"
3285 cat >conftest.$ac_ext <<_ACEOF
3286/* confdefs.h. */
3287_ACEOF
3288cat confdefs.h >>conftest.$ac_ext
3289cat >>conftest.$ac_ext <<_ACEOF
3290/* end confdefs.h. */
3291
3292int
3293main ()
3294{
3295
3296 ;
3297 return 0;
3298}
3299_ACEOF
3300rm -f conftest.$ac_objext
3301if { (ac_try="$ac_compile"
3302case "(($ac_try" in
3303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3304 *) ac_try_echo=$ac_try;;
3305esac
3306eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3307$as_echo "$ac_try_echo") >&5
3308 (eval "$ac_compile") 2>conftest.er1
3309 ac_status=$?
3310 grep -v '^ *+' conftest.er1 >conftest.err
3311 rm -f conftest.er1
3312 cat conftest.err >&5
3313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); } && {
3315 test -z "$ac_c_werror_flag" ||
3316 test ! -s conftest.err
3317 } && test -s conftest.$ac_objext; then
3318 ac_cv_prog_cc_g=yes
3319else
3320 $as_echo "$as_me: failed program was:" >&5
3321sed 's/^/| /' conftest.$ac_ext >&5
3322
3323
3324fi
3325
3326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3327fi
3328
3329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3330fi
3331
3332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3333 ac_c_werror_flag=$ac_save_c_werror_flag
3334fi
3335{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3336$as_echo "$ac_cv_prog_cc_g" >&6; }
3337if test "$ac_test_CFLAGS" = set; then
3338 CFLAGS=$ac_save_CFLAGS
3339elif test $ac_cv_prog_cc_g = yes; then
3340 if test "$GCC" = yes; then
3341 CFLAGS="-g -O2"
3342 else
3343 CFLAGS="-g"
3344 fi
3345else
3346 if test "$GCC" = yes; then
3347 CFLAGS="-O2"
3348 else
3349 CFLAGS=
3350 fi
3351fi
3352{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3353$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3354if test "${ac_cv_prog_cc_c89+set}" = set; then
3355 $as_echo_n "(cached) " >&6
3356else
3357 ac_cv_prog_cc_c89=no
3358ac_save_CC=$CC
3359cat >conftest.$ac_ext <<_ACEOF
3360/* confdefs.h. */
3361_ACEOF
3362cat confdefs.h >>conftest.$ac_ext
3363cat >>conftest.$ac_ext <<_ACEOF
3364/* end confdefs.h. */
3365#include <stdarg.h>
3366#include <stdio.h>
3367#include <sys/types.h>
3368#include <sys/stat.h>
3369/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3370struct buf { int x; };
3371FILE * (*rcsopen) (struct buf *, struct stat *, int);
3372static char *e (p, i)
3373 char **p;
3374 int i;
3375{
3376 return p[i];
3377}
3378static char *f (char * (*g) (char **, int), char **p, ...)
3379{
3380 char *s;
3381 va_list v;
3382 va_start (v,p);
3383 s = g (p, va_arg (v,int));
3384 va_end (v);
3385 return s;
3386}
3387
3388/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3389 function prototypes and stuff, but not '\xHH' hex character constants.
3390 These don't provoke an error unfortunately, instead are silently treated
3391 as 'x'. The following induces an error, until -std is added to get
3392 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3393 array size at least. It's necessary to write '\x00'==0 to get something
3394 that's true only with -std. */
3395int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3396
3397/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3398 inside strings and character constants. */
3399#define FOO(x) 'x'
3400int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3401
3402int test (int i, double x);
3403struct s1 {int (*f) (int a);};
3404struct s2 {int (*f) (double a);};
3405int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3406int argc;
3407char **argv;
3408int
3409main ()
3410{
3411return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3412 ;
3413 return 0;
3414}
3415_ACEOF
3416for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3417 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3418do
3419 CC="$ac_save_CC $ac_arg"
3420 rm -f conftest.$ac_objext
3421if { (ac_try="$ac_compile"
3422case "(($ac_try" in
3423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424 *) ac_try_echo=$ac_try;;
3425esac
3426eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3427$as_echo "$ac_try_echo") >&5
3428 (eval "$ac_compile") 2>conftest.er1
3429 ac_status=$?
3430 grep -v '^ *+' conftest.er1 >conftest.err
3431 rm -f conftest.er1
3432 cat conftest.err >&5
3433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434 (exit $ac_status); } && {
3435 test -z "$ac_c_werror_flag" ||
3436 test ! -s conftest.err
3437 } && test -s conftest.$ac_objext; then
3438 ac_cv_prog_cc_c89=$ac_arg
3439else
3440 $as_echo "$as_me: failed program was:" >&5
3441sed 's/^/| /' conftest.$ac_ext >&5
3442
3443
3444fi
3445
3446rm -f core conftest.err conftest.$ac_objext
3447 test "x$ac_cv_prog_cc_c89" != "xno" && break
3448done
3449rm -f conftest.$ac_ext
3450CC=$ac_save_CC
3451
3452fi
3453# AC_CACHE_VAL
3454case "x$ac_cv_prog_cc_c89" in
3455 x)
3456 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3457$as_echo "none needed" >&6; } ;;
3458 xno)
3459 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3460$as_echo "unsupported" >&6; } ;;
3461 *)
3462 CC="$CC $ac_cv_prog_cc_c89"
3463 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3464$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3465esac
3466
3467
3468ac_ext=c
3469ac_cpp='$CPP $CPPFLAGS'
3470ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3471ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3472ac_compiler_gnu=$ac_cv_c_compiler_gnu
3473DEPDIR="${am__leading_dot}deps"
3474
3475ac_config_commands="$ac_config_commands depfiles"
3476
3477
3478am_make=${MAKE-make}
3479cat > confinc << 'END'
3480am__doit:
3481 @echo done
3482.PHONY: am__doit
3483END
3484# If we don't find an include directive, just comment out the code.
3485{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3486$as_echo_n "checking for style of include used by $am_make... " >&6; }
3487am__include="#"
3488am__quote=
3489_am_result=none
3490# First try GNU make style include.
3491echo "include confinc" > confmf
3492# We grep out `Entering directory' and `Leaving directory'
3493# messages which can occur if `w' ends up in MAKEFLAGS.
3494# In particular we don't look at `^make:' because GNU make might
3495# be invoked under some other name (usually "gmake"), in which
3496# case it prints its new name instead of `make'.
3497if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3498 am__include=include
3499 am__quote=
3500 _am_result=GNU
3501fi
3502# Now try BSD make style include.
3503if test "$am__include" = "#"; then
3504 echo '.include "confinc"' > confmf
3505 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3506 am__include=.include
3507 am__quote="\""
3508 _am_result=BSD
3509 fi
3510fi
3511
3512
3513{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3514$as_echo "$_am_result" >&6; }
3515rm -f confinc confmf
3516
3517# Check whether --enable-dependency-tracking was given.
3518if test "${enable_dependency_tracking+set}" = set; then
3519 enableval=$enable_dependency_tracking;
3520fi
3521
3522if test "x$enable_dependency_tracking" != xno; then
3523 am_depcomp="$ac_aux_dir/depcomp"
3524 AMDEPBACKSLASH='\'
3525fi
3526 if test "x$enable_dependency_tracking" != xno; then
3527 AMDEP_TRUE=
3528 AMDEP_FALSE='#'
3529else
3530 AMDEP_TRUE='#'
3531 AMDEP_FALSE=
3532fi
3533
3534
3535
3536depcc="$CC" am_compiler_list=
3537
3538{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3539$as_echo_n "checking dependency style of $depcc... " >&6; }
3540if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3541 $as_echo_n "(cached) " >&6
3542else
3543 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3544 # We make a subdir and do the tests there. Otherwise we can end up
3545 # making bogus files that we don't know about and never remove. For
3546 # instance it was reported that on HP-UX the gcc test will end up
3547 # making a dummy file named `D' -- because `-MD' means `put the output
3548 # in D'.
3549 mkdir conftest.dir
3550 # Copy depcomp to subdir because otherwise we won't find it if we're
3551 # using a relative directory.
3552 cp "$am_depcomp" conftest.dir
3553 cd conftest.dir
3554 # We will build objects and dependencies in a subdirectory because
3555 # it helps to detect inapplicable dependency modes. For instance
3556 # both Tru64's cc and ICC support -MD to output dependencies as a
3557 # side effect of compilation, but ICC will put the dependencies in
3558 # the current directory while Tru64 will put them in the object
3559 # directory.
3560 mkdir sub
3561
3562 am_cv_CC_dependencies_compiler_type=none
3563 if test "$am_compiler_list" = ""; then
3564 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3565 fi
3566 for depmode in $am_compiler_list; do
3567 # Setup a source with many dependencies, because some compilers
3568 # like to wrap large dependency lists on column 80 (with \), and
3569 # we should not choose a depcomp mode which is confused by this.
3570 #
3571 # We need to recreate these files for each test, as the compiler may
3572 # overwrite some of them when testing with obscure command lines.
3573 # This happens at least with the AIX C compiler.
3574 : > sub/conftest.c
3575 for i in 1 2 3 4 5 6; do
3576 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3577 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3578 # Solaris 8's {/usr,}/bin/sh.
3579 touch sub/conftst$i.h
3580 done
3581 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3582
3583 case $depmode in
3584 nosideeffect)
3585 # after this tag, mechanisms are not by side-effect, so they'll
3586 # only be used when explicitly requested
3587 if test "x$enable_dependency_tracking" = xyes; then
3588 continue
3589 else
3590 break
3591 fi
3592 ;;
3593 none) break ;;
3594 esac
3595 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3596 # mode. It turns out that the SunPro C++ compiler does not properly
3597 # handle `-M -o', and we need to detect this.
3598 if depmode=$depmode \
3599 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3600 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3601 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3602 >/dev/null 2>conftest.err &&
3603 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3604 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3605 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3606 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3607 # icc doesn't choke on unknown options, it will just issue warnings
3608 # or remarks (even with -Werror). So we grep stderr for any message
3609 # that says an option was ignored or not supported.
3610 # When given -MP, icc 7.0 and 7.1 complain thusly:
3611 # icc: Command line warning: ignoring option '-M'; no argument required
3612 # The diagnosis changed in icc 8.0:
3613 # icc: Command line remark: option '-MP' not supported
3614 if (grep 'ignoring option' conftest.err ||
3615 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3616 am_cv_CC_dependencies_compiler_type=$depmode
3617 break
3618 fi
3619 fi
3620 done
3621
3622 cd ..
3623 rm -rf conftest.dir
3624else
3625 am_cv_CC_dependencies_compiler_type=none
3626fi
3627
3628fi
3629{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3630$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3631CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3632
3633 if
3634 test "x$enable_dependency_tracking" != xno \
3635 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3636 am__fastdepCC_TRUE=
3637 am__fastdepCC_FALSE='#'
3638else
3639 am__fastdepCC_TRUE='#'
3640 am__fastdepCC_FALSE=
3641fi
3642
3643
3644ac_ext=cpp
3645ac_cpp='$CXXCPP $CPPFLAGS'
3646ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3647ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3648ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3649if test -z "$CXX"; then
3650 if test -n "$CCC"; then
3651 CXX=$CCC
3652 else
3653 if test -n "$ac_tool_prefix"; then
3654 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3655 do
3656 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3657set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3658{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3659$as_echo_n "checking for $ac_word... " >&6; }
3660if test "${ac_cv_prog_CXX+set}" = set; then
3661 $as_echo_n "(cached) " >&6
3662else
3663 if test -n "$CXX"; then
3664 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3665else
3666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667for as_dir in $PATH
3668do
3669 IFS=$as_save_IFS
3670 test -z "$as_dir" && as_dir=.
3671 for ac_exec_ext in '' $ac_executable_extensions; do
3672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3673 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3674 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3675 break 2
3676 fi
3677done
3678done
3679IFS=$as_save_IFS
3680
3681fi
3682fi
3683CXX=$ac_cv_prog_CXX
3684if test -n "$CXX"; then
3685 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
3686$as_echo "$CXX" >&6; }
3687else
3688 { $as_echo "$as_me:$LINENO: result: no" >&5
3689$as_echo "no" >&6; }
3690fi
3691
3692
3693 test -n "$CXX" && break
3694 done
3695fi
3696if test -z "$CXX"; then
3697 ac_ct_CXX=$CXX
3698 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3699do
3700 # Extract the first word of "$ac_prog", so it can be a program name with args.
3701set dummy $ac_prog; ac_word=$2
3702{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3703$as_echo_n "checking for $ac_word... " >&6; }
3704if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3705 $as_echo_n "(cached) " >&6
3706else
3707 if test -n "$ac_ct_CXX"; then
3708 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3709else
3710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711for as_dir in $PATH
3712do
3713 IFS=$as_save_IFS
3714 test -z "$as_dir" && as_dir=.
3715 for ac_exec_ext in '' $ac_executable_extensions; do
3716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3717 ac_cv_prog_ac_ct_CXX="$ac_prog"
3718 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3719 break 2
3720 fi
3721done
3722done
3723IFS=$as_save_IFS
3724
3725fi
3726fi
3727ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3728if test -n "$ac_ct_CXX"; then
3729 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3730$as_echo "$ac_ct_CXX" >&6; }
3731else
3732 { $as_echo "$as_me:$LINENO: result: no" >&5
3733$as_echo "no" >&6; }
3734fi
3735
3736
3737 test -n "$ac_ct_CXX" && break
3738done
3739
3740 if test "x$ac_ct_CXX" = x; then
3741 CXX="g++"
3742 else
3743 case $cross_compiling:$ac_tool_warned in
3744yes:)
3745{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3746$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3747ac_tool_warned=yes ;;
3748esac
3749 CXX=$ac_ct_CXX
3750 fi
3751fi
3752
3753 fi
3754fi
3755# Provide some information about the compiler.
3756$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3757set X $ac_compile
3758ac_compiler=$2
3759{ (ac_try="$ac_compiler --version >&5"
3760case "(($ac_try" in
3761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3762 *) ac_try_echo=$ac_try;;
3763esac
3764eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3765$as_echo "$ac_try_echo") >&5
3766 (eval "$ac_compiler --version >&5") 2>&5
3767 ac_status=$?
3768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769 (exit $ac_status); }
3770{ (ac_try="$ac_compiler -v >&5"
3771case "(($ac_try" in
3772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3773 *) ac_try_echo=$ac_try;;
3774esac
3775eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3776$as_echo "$ac_try_echo") >&5
3777 (eval "$ac_compiler -v >&5") 2>&5
3778 ac_status=$?
3779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780 (exit $ac_status); }
3781{ (ac_try="$ac_compiler -V >&5"
3782case "(($ac_try" in
3783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3784 *) ac_try_echo=$ac_try;;
3785esac
3786eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3787$as_echo "$ac_try_echo") >&5
3788 (eval "$ac_compiler -V >&5") 2>&5
3789 ac_status=$?
3790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); }
3792
3793{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3794$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3795if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3796 $as_echo_n "(cached) " >&6
3797else
3798 cat >conftest.$ac_ext <<_ACEOF
3799/* confdefs.h. */
3800_ACEOF
3801cat confdefs.h >>conftest.$ac_ext
3802cat >>conftest.$ac_ext <<_ACEOF
3803/* end confdefs.h. */
3804
3805int
3806main ()
3807{
3808#ifndef __GNUC__
3809 choke me
3810#endif
3811
3812 ;
3813 return 0;
3814}
3815_ACEOF
3816rm -f conftest.$ac_objext
3817if { (ac_try="$ac_compile"
3818case "(($ac_try" in
3819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3820 *) ac_try_echo=$ac_try;;
3821esac
3822eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3823$as_echo "$ac_try_echo") >&5
3824 (eval "$ac_compile") 2>conftest.er1
3825 ac_status=$?
3826 grep -v '^ *+' conftest.er1 >conftest.err
3827 rm -f conftest.er1
3828 cat conftest.err >&5
3829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830 (exit $ac_status); } && {
3831 test -z "$ac_cxx_werror_flag" ||
3832 test ! -s conftest.err
3833 } && test -s conftest.$ac_objext; then
3834 ac_compiler_gnu=yes
3835else
3836 $as_echo "$as_me: failed program was:" >&5
3837sed 's/^/| /' conftest.$ac_ext >&5
3838
3839 ac_compiler_gnu=no
3840fi
3841
3842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3843ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3844
3845fi
3846{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3847$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3848if test $ac_compiler_gnu = yes; then
3849 GXX=yes
3850else
3851 GXX=
3852fi
3853ac_test_CXXFLAGS=${CXXFLAGS+set}
3854ac_save_CXXFLAGS=$CXXFLAGS
3855{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3856$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3857if test "${ac_cv_prog_cxx_g+set}" = set; then
3858 $as_echo_n "(cached) " >&6
3859else
3860 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3861 ac_cxx_werror_flag=yes
3862 ac_cv_prog_cxx_g=no
3863 CXXFLAGS="-g"
3864 cat >conftest.$ac_ext <<_ACEOF
3865/* confdefs.h. */
3866_ACEOF
3867cat confdefs.h >>conftest.$ac_ext
3868cat >>conftest.$ac_ext <<_ACEOF
3869/* end confdefs.h. */
3870
3871int
3872main ()
3873{
3874
3875 ;
3876 return 0;
3877}
3878_ACEOF
3879rm -f conftest.$ac_objext
3880if { (ac_try="$ac_compile"
3881case "(($ac_try" in
3882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3883 *) ac_try_echo=$ac_try;;
3884esac
3885eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3886$as_echo "$ac_try_echo") >&5
3887 (eval "$ac_compile") 2>conftest.er1
3888 ac_status=$?
3889 grep -v '^ *+' conftest.er1 >conftest.err
3890 rm -f conftest.er1
3891 cat conftest.err >&5
3892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893 (exit $ac_status); } && {
3894 test -z "$ac_cxx_werror_flag" ||
3895 test ! -s conftest.err
3896 } && test -s conftest.$ac_objext; then
3897 ac_cv_prog_cxx_g=yes
3898else
3899 $as_echo "$as_me: failed program was:" >&5
3900sed 's/^/| /' conftest.$ac_ext >&5
3901
3902 CXXFLAGS=""
3903 cat >conftest.$ac_ext <<_ACEOF
3904/* confdefs.h. */
3905_ACEOF
3906cat confdefs.h >>conftest.$ac_ext
3907cat >>conftest.$ac_ext <<_ACEOF
3908/* end confdefs.h. */
3909
3910int
3911main ()
3912{
3913
3914 ;
3915 return 0;
3916}
3917_ACEOF
3918rm -f conftest.$ac_objext
3919if { (ac_try="$ac_compile"
3920case "(($ac_try" in
3921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3922 *) ac_try_echo=$ac_try;;
3923esac
3924eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3925$as_echo "$ac_try_echo") >&5
3926 (eval "$ac_compile") 2>conftest.er1
3927 ac_status=$?
3928 grep -v '^ *+' conftest.er1 >conftest.err
3929 rm -f conftest.er1
3930 cat conftest.err >&5
3931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932 (exit $ac_status); } && {
3933 test -z "$ac_cxx_werror_flag" ||
3934 test ! -s conftest.err
3935 } && test -s conftest.$ac_objext; then
3936 :
3937else
3938 $as_echo "$as_me: failed program was:" >&5
3939sed 's/^/| /' conftest.$ac_ext >&5
3940
3941 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3942 CXXFLAGS="-g"
3943 cat >conftest.$ac_ext <<_ACEOF
3944/* confdefs.h. */
3945_ACEOF
3946cat confdefs.h >>conftest.$ac_ext
3947cat >>conftest.$ac_ext <<_ACEOF
3948/* end confdefs.h. */
3949
3950int
3951main ()
3952{
3953
3954 ;
3955 return 0;
3956}
3957_ACEOF
3958rm -f conftest.$ac_objext
3959if { (ac_try="$ac_compile"
3960case "(($ac_try" in
3961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3962 *) ac_try_echo=$ac_try;;
3963esac
3964eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3965$as_echo "$ac_try_echo") >&5
3966 (eval "$ac_compile") 2>conftest.er1
3967 ac_status=$?
3968 grep -v '^ *+' conftest.er1 >conftest.err
3969 rm -f conftest.er1
3970 cat conftest.err >&5
3971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972 (exit $ac_status); } && {
3973 test -z "$ac_cxx_werror_flag" ||
3974 test ! -s conftest.err
3975 } && test -s conftest.$ac_objext; then
3976 ac_cv_prog_cxx_g=yes
3977else
3978 $as_echo "$as_me: failed program was:" >&5
3979sed 's/^/| /' conftest.$ac_ext >&5
3980
3981
3982fi
3983
3984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3985fi
3986
3987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3988fi
3989
3990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3991 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3992fi
3993{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3994$as_echo "$ac_cv_prog_cxx_g" >&6; }
3995if test "$ac_test_CXXFLAGS" = set; then
3996 CXXFLAGS=$ac_save_CXXFLAGS
3997elif test $ac_cv_prog_cxx_g = yes; then
3998 if test "$GXX" = yes; then
3999 CXXFLAGS="-g -O2"
4000 else
4001 CXXFLAGS="-g"
4002 fi
4003else
4004 if test "$GXX" = yes; then
4005 CXXFLAGS="-O2"
4006 else
4007 CXXFLAGS=
4008 fi
4009fi
4010ac_ext=c
4011ac_cpp='$CPP $CPPFLAGS'
4012ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4013ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4014ac_compiler_gnu=$ac_cv_c_compiler_gnu
4015
4016depcc="$CXX" am_compiler_list=
4017
4018{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4019$as_echo_n "checking dependency style of $depcc... " >&6; }
4020if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4021 $as_echo_n "(cached) " >&6
4022else
4023 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4024 # We make a subdir and do the tests there. Otherwise we can end up
4025 # making bogus files that we don't know about and never remove. For
4026 # instance it was reported that on HP-UX the gcc test will end up
4027 # making a dummy file named `D' -- because `-MD' means `put the output
4028 # in D'.
4029 mkdir conftest.dir
4030 # Copy depcomp to subdir because otherwise we won't find it if we're
4031 # using a relative directory.
4032 cp "$am_depcomp" conftest.dir
4033 cd conftest.dir
4034 # We will build objects and dependencies in a subdirectory because
4035 # it helps to detect inapplicable dependency modes. For instance
4036 # both Tru64's cc and ICC support -MD to output dependencies as a
4037 # side effect of compilation, but ICC will put the dependencies in
4038 # the current directory while Tru64 will put them in the object
4039 # directory.
4040 mkdir sub
4041
4042 am_cv_CXX_dependencies_compiler_type=none
4043 if test "$am_compiler_list" = ""; then
4044 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4045 fi
4046 for depmode in $am_compiler_list; do
4047 # Setup a source with many dependencies, because some compilers
4048 # like to wrap large dependency lists on column 80 (with \), and
4049 # we should not choose a depcomp mode which is confused by this.
4050 #
4051 # We need to recreate these files for each test, as the compiler may
4052 # overwrite some of them when testing with obscure command lines.
4053 # This happens at least with the AIX C compiler.
4054 : > sub/conftest.c
4055 for i in 1 2 3 4 5 6; do
4056 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4057 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4058 # Solaris 8's {/usr,}/bin/sh.
4059 touch sub/conftst$i.h
4060 done
4061 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4062
4063 case $depmode in
4064 nosideeffect)
4065 # after this tag, mechanisms are not by side-effect, so they'll
4066 # only be used when explicitly requested
4067 if test "x$enable_dependency_tracking" = xyes; then
4068 continue
4069 else
4070 break
4071 fi
4072 ;;
4073 none) break ;;
4074 esac
4075 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4076 # mode. It turns out that the SunPro C++ compiler does not properly
4077 # handle `-M -o', and we need to detect this.
4078 if depmode=$depmode \
4079 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4080 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4081 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4082 >/dev/null 2>conftest.err &&
4083 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4084 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4085 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4086 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4087 # icc doesn't choke on unknown options, it will just issue warnings
4088 # or remarks (even with -Werror). So we grep stderr for any message
4089 # that says an option was ignored or not supported.
4090 # When given -MP, icc 7.0 and 7.1 complain thusly:
4091 # icc: Command line warning: ignoring option '-M'; no argument required
4092 # The diagnosis changed in icc 8.0:
4093 # icc: Command line remark: option '-MP' not supported
4094 if (grep 'ignoring option' conftest.err ||
4095 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4096 am_cv_CXX_dependencies_compiler_type=$depmode
4097 break
4098 fi
4099 fi
4100 done
4101
4102 cd ..
4103 rm -rf conftest.dir
4104else
4105 am_cv_CXX_dependencies_compiler_type=none
4106fi
4107
4108fi
4109{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4110$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4111CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4112
4113 if
4114 test "x$enable_dependency_tracking" != xno \
4115 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4116 am__fastdepCXX_TRUE=
4117 am__fastdepCXX_FALSE='#'
4118else
4119 am__fastdepCXX_TRUE='#'
4120 am__fastdepCXX_FALSE=
4121fi
4122
4123
4124case `pwd` in
4125 *\ * | *\ *)
4126 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4127$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4128esac
4129
4130
4131
4132macro_version='2.2.6'
4133macro_revision='1.3012'
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147ltmain="$ac_aux_dir/ltmain.sh"
4148
4149# Make sure we can run config.sub.
4150$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4151 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4152$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4153 { (exit 1); exit 1; }; }
4154
4155{ $as_echo "$as_me:$LINENO: checking build system type" >&5
4156$as_echo_n "checking build system type... " >&6; }
4157if test "${ac_cv_build+set}" = set; then
4158 $as_echo_n "(cached) " >&6
4159else
4160 ac_build_alias=$build_alias
4161test "x$ac_build_alias" = x &&
4162 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4163test "x$ac_build_alias" = x &&
4164 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4165$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4166 { (exit 1); exit 1; }; }
4167ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4168 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4169$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4170 { (exit 1); exit 1; }; }
4171
4172fi
4173{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4174$as_echo "$ac_cv_build" >&6; }
4175case $ac_cv_build in
4176*-*-*) ;;
4177*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4178$as_echo "$as_me: error: invalid value of canonical build" >&2;}
4179 { (exit 1); exit 1; }; };;
4180esac
4181build=$ac_cv_build
4182ac_save_IFS=$IFS; IFS='-'
4183set x $ac_cv_build
4184shift
4185build_cpu=$1
4186build_vendor=$2
4187shift; shift
4188# Remember, the first character of IFS is used to create $*,
4189# except with old shells:
4190build_os=$*
4191IFS=$ac_save_IFS
4192case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4193
4194
4195{ $as_echo "$as_me:$LINENO: checking host system type" >&5
4196$as_echo_n "checking host system type... " >&6; }
4197if test "${ac_cv_host+set}" = set; then
4198 $as_echo_n "(cached) " >&6
4199else
4200 if test "x$host_alias" = x; then
4201 ac_cv_host=$ac_cv_build
4202else
4203 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4204 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4205$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4206 { (exit 1); exit 1; }; }
4207fi
4208
4209fi
4210{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4211$as_echo "$ac_cv_host" >&6; }
4212case $ac_cv_host in
4213*-*-*) ;;
4214*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4215$as_echo "$as_me: error: invalid value of canonical host" >&2;}
4216 { (exit 1); exit 1; }; };;
4217esac
4218host=$ac_cv_host
4219ac_save_IFS=$IFS; IFS='-'
4220set x $ac_cv_host
4221shift
4222host_cpu=$1
4223host_vendor=$2
4224shift; shift
4225# Remember, the first character of IFS is used to create $*,
4226# except with old shells:
4227host_os=$*
4228IFS=$ac_save_IFS
4229case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4230
4231
4232{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4233$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4234if test "${ac_cv_path_SED+set}" = set; then
4235 $as_echo_n "(cached) " >&6
4236else
4237 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4238 for ac_i in 1 2 3 4 5 6 7; do
4239 ac_script="$ac_script$as_nl$ac_script"
4240 done
4241 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4242 $as_unset ac_script || ac_script=
4243 if test -z "$SED"; then
4244 ac_path_SED_found=false
4245 # Loop through the user's path and test for each of PROGNAME-LIST
4246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4247for as_dir in $PATH
4248do
4249 IFS=$as_save_IFS
4250 test -z "$as_dir" && as_dir=.
4251 for ac_prog in sed gsed; do
4252 for ac_exec_ext in '' $ac_executable_extensions; do
4253 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4254 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4255# Check for GNU ac_path_SED and select it if it is found.
4256 # Check for GNU $ac_path_SED
4257case `"$ac_path_SED" --version 2>&1` in
4258*GNU*)
4259 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4260*)
4261 ac_count=0
4262 $as_echo_n 0123456789 >"conftest.in"
4263 while :
4264 do
4265 cat "conftest.in" "conftest.in" >"conftest.tmp"
4266 mv "conftest.tmp" "conftest.in"
4267 cp "conftest.in" "conftest.nl"
4268 $as_echo '' >> "conftest.nl"
4269 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4270 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4271 ac_count=`expr $ac_count + 1`
4272 if test $ac_count -gt ${ac_path_SED_max-0}; then
4273 # Best one so far, save it but keep looking for a better one
4274 ac_cv_path_SED="$ac_path_SED"
4275 ac_path_SED_max=$ac_count
4276 fi
4277 # 10*(2^10) chars as input seems more than enough
4278 test $ac_count -gt 10 && break
4279 done
4280 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4281esac
4282
4283 $ac_path_SED_found && break 3
4284 done
4285 done
4286done
4287IFS=$as_save_IFS
4288 if test -z "$ac_cv_path_SED"; then
4289 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4290$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4291 { (exit 1); exit 1; }; }
4292 fi
4293else
4294 ac_cv_path_SED=$SED
4295fi
4296
4297fi
4298{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4299$as_echo "$ac_cv_path_SED" >&6; }
4300 SED="$ac_cv_path_SED"
4301 rm -f conftest.sed
4302
4303test -z "$SED" && SED=sed
4304Xsed="$SED -e 1s/^X//"
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4317$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4318if test "${ac_cv_path_GREP+set}" = set; then
4319 $as_echo_n "(cached) " >&6
4320else
4321 if test -z "$GREP"; then
4322 ac_path_GREP_found=false
4323 # Loop through the user's path and test for each of PROGNAME-LIST
4324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4325for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4326do
4327 IFS=$as_save_IFS
4328 test -z "$as_dir" && as_dir=.
4329 for ac_prog in grep ggrep; do
4330 for ac_exec_ext in '' $ac_executable_extensions; do
4331 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4332 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4333# Check for GNU ac_path_GREP and select it if it is found.
4334 # Check for GNU $ac_path_GREP
4335case `"$ac_path_GREP" --version 2>&1` in
4336*GNU*)
4337 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4338*)
4339 ac_count=0
4340 $as_echo_n 0123456789 >"conftest.in"
4341 while :
4342 do
4343 cat "conftest.in" "conftest.in" >"conftest.tmp"
4344 mv "conftest.tmp" "conftest.in"
4345 cp "conftest.in" "conftest.nl"
4346 $as_echo 'GREP' >> "conftest.nl"
4347 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4348 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4349 ac_count=`expr $ac_count + 1`
4350 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4351 # Best one so far, save it but keep looking for a better one
4352 ac_cv_path_GREP="$ac_path_GREP"
4353 ac_path_GREP_max=$ac_count
4354 fi
4355 # 10*(2^10) chars as input seems more than enough
4356 test $ac_count -gt 10 && break
4357 done
4358 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4359esac
4360
4361 $ac_path_GREP_found && break 3
4362 done
4363 done
4364done
4365IFS=$as_save_IFS
4366 if test -z "$ac_cv_path_GREP"; then
4367 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4368$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4369 { (exit 1); exit 1; }; }
4370 fi
4371else
4372 ac_cv_path_GREP=$GREP
4373fi
4374
4375fi
4376{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4377$as_echo "$ac_cv_path_GREP" >&6; }
4378 GREP="$ac_cv_path_GREP"
4379
4380
4381{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4382$as_echo_n "checking for egrep... " >&6; }
4383if test "${ac_cv_path_EGREP+set}" = set; then
4384 $as_echo_n "(cached) " >&6
4385else
4386 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4387 then ac_cv_path_EGREP="$GREP -E"
4388 else
4389 if test -z "$EGREP"; then
4390 ac_path_EGREP_found=false
4391 # Loop through the user's path and test for each of PROGNAME-LIST
4392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4393for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4394do
4395 IFS=$as_save_IFS
4396 test -z "$as_dir" && as_dir=.
4397 for ac_prog in egrep; do
4398 for ac_exec_ext in '' $ac_executable_extensions; do
4399 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4400 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4401# Check for GNU ac_path_EGREP and select it if it is found.
4402 # Check for GNU $ac_path_EGREP
4403case `"$ac_path_EGREP" --version 2>&1` in
4404*GNU*)
4405 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4406*)
4407 ac_count=0
4408 $as_echo_n 0123456789 >"conftest.in"
4409 while :
4410 do
4411 cat "conftest.in" "conftest.in" >"conftest.tmp"
4412 mv "conftest.tmp" "conftest.in"
4413 cp "conftest.in" "conftest.nl"
4414 $as_echo 'EGREP' >> "conftest.nl"
4415 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4416 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4417 ac_count=`expr $ac_count + 1`
4418 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4419 # Best one so far, save it but keep looking for a better one
4420 ac_cv_path_EGREP="$ac_path_EGREP"
4421 ac_path_EGREP_max=$ac_count
4422 fi
4423 # 10*(2^10) chars as input seems more than enough
4424 test $ac_count -gt 10 && break
4425 done
4426 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4427esac
4428
4429 $ac_path_EGREP_found && break 3
4430 done
4431 done
4432done
4433IFS=$as_save_IFS
4434 if test -z "$ac_cv_path_EGREP"; then
4435 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4436$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4437 { (exit 1); exit 1; }; }
4438 fi
4439else
4440 ac_cv_path_EGREP=$EGREP
4441fi
4442
4443 fi
4444fi
4445{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4446$as_echo "$ac_cv_path_EGREP" >&6; }
4447 EGREP="$ac_cv_path_EGREP"
4448
4449
4450{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4451$as_echo_n "checking for fgrep... " >&6; }
4452if test "${ac_cv_path_FGREP+set}" = set; then
4453 $as_echo_n "(cached) " >&6
4454else
4455 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4456 then ac_cv_path_FGREP="$GREP -F"
4457 else
4458 if test -z "$FGREP"; then
4459 ac_path_FGREP_found=false
4460 # Loop through the user's path and test for each of PROGNAME-LIST
4461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4463do
4464 IFS=$as_save_IFS
4465 test -z "$as_dir" && as_dir=.
4466 for ac_prog in fgrep; do
4467 for ac_exec_ext in '' $ac_executable_extensions; do
4468 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4469 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4470# Check for GNU ac_path_FGREP and select it if it is found.
4471 # Check for GNU $ac_path_FGREP
4472case `"$ac_path_FGREP" --version 2>&1` in
4473*GNU*)
4474 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4475*)
4476 ac_count=0
4477 $as_echo_n 0123456789 >"conftest.in"
4478 while :
4479 do
4480 cat "conftest.in" "conftest.in" >"conftest.tmp"
4481 mv "conftest.tmp" "conftest.in"
4482 cp "conftest.in" "conftest.nl"
4483 $as_echo 'FGREP' >> "conftest.nl"
4484 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4485 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4486 ac_count=`expr $ac_count + 1`
4487 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4488 # Best one so far, save it but keep looking for a better one
4489 ac_cv_path_FGREP="$ac_path_FGREP"
4490 ac_path_FGREP_max=$ac_count
4491 fi
4492 # 10*(2^10) chars as input seems more than enough
4493 test $ac_count -gt 10 && break
4494 done
4495 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4496esac
4497
4498 $ac_path_FGREP_found && break 3
4499 done
4500 done
4501done
4502IFS=$as_save_IFS
4503 if test -z "$ac_cv_path_FGREP"; then
4504 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4505$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4506 { (exit 1); exit 1; }; }
4507 fi
4508else
4509 ac_cv_path_FGREP=$FGREP
4510fi
4511
4512 fi
4513fi
4514{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4515$as_echo "$ac_cv_path_FGREP" >&6; }
4516 FGREP="$ac_cv_path_FGREP"
4517
4518
4519test -z "$GREP" && GREP=grep
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539# Check whether --with-gnu-ld was given.
4540if test "${with_gnu_ld+set}" = set; then
4541 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4542else
4543 with_gnu_ld=no
4544fi
4545
4546ac_prog=ld
4547if test "$GCC" = yes; then
4548 # Check if gcc -print-prog-name=ld gives a path.
4549 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4550$as_echo_n "checking for ld used by $CC... " >&6; }
4551 case $host in
4552 *-*-mingw*)
4553 # gcc leaves a trailing carriage return which upsets mingw
4554 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4555 *)
4556 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4557 esac
4558 case $ac_prog in
4559 # Accept absolute paths.
4560 [\\/]* | ?:[\\/]*)
4561 re_direlt='/[^/][^/]*/\.\./'
4562 # Canonicalize the pathname of ld
4563 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4564 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4565 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4566 done
4567 test -z "$LD" && LD="$ac_prog"
4568 ;;
4569 "")
4570 # If it fails, then pretend we aren't using GCC.
4571 ac_prog=ld
4572 ;;
4573 *)
4574 # If it is relative, then search for the first ld in PATH.
4575 with_gnu_ld=unknown
4576 ;;
4577 esac
4578elif test "$with_gnu_ld" = yes; then
4579 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4580$as_echo_n "checking for GNU ld... " >&6; }
4581else
4582 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4583$as_echo_n "checking for non-GNU ld... " >&6; }
4584fi
4585if test "${lt_cv_path_LD+set}" = set; then
4586 $as_echo_n "(cached) " >&6
4587else
4588 if test -z "$LD"; then
4589 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4590 for ac_dir in $PATH; do
4591 IFS="$lt_save_ifs"
4592 test -z "$ac_dir" && ac_dir=.
4593 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4594 lt_cv_path_LD="$ac_dir/$ac_prog"
4595 # Check to see if the program is GNU ld. I'd rather use --version,
4596 # but apparently some variants of GNU ld only accept -v.
4597 # Break only if it was the GNU/non-GNU ld that we prefer.
4598 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4599 *GNU* | *'with BFD'*)
4600 test "$with_gnu_ld" != no && break
4601 ;;
4602 *)
4603 test "$with_gnu_ld" != yes && break
4604 ;;
4605 esac
4606 fi
4607 done
4608 IFS="$lt_save_ifs"
4609else
4610 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4611fi
4612fi
4613
4614LD="$lt_cv_path_LD"
4615if test -n "$LD"; then
4616 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4617$as_echo "$LD" >&6; }
4618else
4619 { $as_echo "$as_me:$LINENO: result: no" >&5
4620$as_echo "no" >&6; }
4621fi
4622test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4623$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4624 { (exit 1); exit 1; }; }
4625{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4626$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4627if test "${lt_cv_prog_gnu_ld+set}" = set; then
4628 $as_echo_n "(cached) " >&6
4629else
4630 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4631case `$LD -v 2>&1 </dev/null` in
4632*GNU* | *'with BFD'*)
4633 lt_cv_prog_gnu_ld=yes
4634 ;;
4635*)
4636 lt_cv_prog_gnu_ld=no
4637 ;;
4638esac
4639fi
4640{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4641$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4642with_gnu_ld=$lt_cv_prog_gnu_ld
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4653$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4654if test "${lt_cv_path_NM+set}" = set; then
4655 $as_echo_n "(cached) " >&6
4656else
4657 if test -n "$NM"; then
4658 # Let the user override the test.
4659 lt_cv_path_NM="$NM"
4660else
4661 lt_nm_to_check="${ac_tool_prefix}nm"
4662 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4663 lt_nm_to_check="$lt_nm_to_check nm"
4664 fi
4665 for lt_tmp_nm in $lt_nm_to_check; do
4666 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4667 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4668 IFS="$lt_save_ifs"
4669 test -z "$ac_dir" && ac_dir=.
4670 tmp_nm="$ac_dir/$lt_tmp_nm"
4671 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4672 # Check to see if the nm accepts a BSD-compat flag.
4673 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4674 # nm: unknown option "B" ignored
4675 # Tru64's nm complains that /dev/null is an invalid object file
4676 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4677 */dev/null* | *'Invalid file or object type'*)
4678 lt_cv_path_NM="$tmp_nm -B"
4679 break
4680 ;;
4681 *)
4682 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4683 */dev/null*)
4684 lt_cv_path_NM="$tmp_nm -p"
4685 break
4686 ;;
4687 *)
4688 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4689 continue # so that we can try to find one that supports BSD flags
4690 ;;
4691 esac
4692 ;;
4693 esac
4694 fi
4695 done
4696 IFS="$lt_save_ifs"
4697 done
4698 : ${lt_cv_path_NM=no}
4699fi
4700fi
4701{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4702$as_echo "$lt_cv_path_NM" >&6; }
4703if test "$lt_cv_path_NM" != "no"; then
4704 NM="$lt_cv_path_NM"
4705else
4706 # Didn't find any BSD compatible name lister, look for dumpbin.
4707 if test -n "$ac_tool_prefix"; then
4708 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4709 do
4710 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4711set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4712{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4713$as_echo_n "checking for $ac_word... " >&6; }
4714if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4715 $as_echo_n "(cached) " >&6
4716else
4717 if test -n "$DUMPBIN"; then
4718 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4719else
4720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4721for as_dir in $PATH
4722do
4723 IFS=$as_save_IFS
4724 test -z "$as_dir" && as_dir=.
4725 for ac_exec_ext in '' $ac_executable_extensions; do
4726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4727 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4728 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4729 break 2
4730 fi
4731done
4732done
4733IFS=$as_save_IFS
4734
4735fi
4736fi
4737DUMPBIN=$ac_cv_prog_DUMPBIN
4738if test -n "$DUMPBIN"; then
4739 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4740$as_echo "$DUMPBIN" >&6; }
4741else
4742 { $as_echo "$as_me:$LINENO: result: no" >&5
4743$as_echo "no" >&6; }
4744fi
4745
4746
4747 test -n "$DUMPBIN" && break
4748 done
4749fi
4750if test -z "$DUMPBIN"; then
4751 ac_ct_DUMPBIN=$DUMPBIN
4752 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4753do
4754 # Extract the first word of "$ac_prog", so it can be a program name with args.
4755set dummy $ac_prog; ac_word=$2
4756{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4757$as_echo_n "checking for $ac_word... " >&6; }
4758if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4759 $as_echo_n "(cached) " >&6
4760else
4761 if test -n "$ac_ct_DUMPBIN"; then
4762 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4763else
4764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4765for as_dir in $PATH
4766do
4767 IFS=$as_save_IFS
4768 test -z "$as_dir" && as_dir=.
4769 for ac_exec_ext in '' $ac_executable_extensions; do
4770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4771 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4772 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4773 break 2
4774 fi
4775done
4776done
4777IFS=$as_save_IFS
4778
4779fi
4780fi
4781ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4782if test -n "$ac_ct_DUMPBIN"; then
4783 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4784$as_echo "$ac_ct_DUMPBIN" >&6; }
4785else
4786 { $as_echo "$as_me:$LINENO: result: no" >&5
4787$as_echo "no" >&6; }
4788fi
4789
4790
4791 test -n "$ac_ct_DUMPBIN" && break
4792done
4793
4794 if test "x$ac_ct_DUMPBIN" = x; then
4795 DUMPBIN=":"
4796 else
4797 case $cross_compiling:$ac_tool_warned in
4798yes:)
4799{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4800$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4801ac_tool_warned=yes ;;
4802esac
4803 DUMPBIN=$ac_ct_DUMPBIN
4804 fi
4805fi
4806
4807
4808 if test "$DUMPBIN" != ":"; then
4809 NM="$DUMPBIN"
4810 fi
4811fi
4812test -z "$NM" && NM=nm
4813
4814
4815
4816
4817
4818
4819{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4820$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4821if test "${lt_cv_nm_interface+set}" = set; then
4822 $as_echo_n "(cached) " >&6
4823else
4824 lt_cv_nm_interface="BSD nm"
4825 echo "int some_variable = 0;" > conftest.$ac_ext
Adam Tkaca4c2fae2009-03-12 18:21:41 +00004826 (eval echo "\"\$as_me:4826: $ac_compile\"" >&5)
Adam Tkacfc4cd712009-03-11 11:14:37 +00004827 (eval "$ac_compile" 2>conftest.err)
4828 cat conftest.err >&5
Adam Tkaca4c2fae2009-03-12 18:21:41 +00004829 (eval echo "\"\$as_me:4829: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
Adam Tkacfc4cd712009-03-11 11:14:37 +00004830 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4831 cat conftest.err >&5
Adam Tkaca4c2fae2009-03-12 18:21:41 +00004832 (eval echo "\"\$as_me:4832: output\"" >&5)
Adam Tkacfc4cd712009-03-11 11:14:37 +00004833 cat conftest.out >&5
4834 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4835 lt_cv_nm_interface="MS dumpbin"
4836 fi
4837 rm -f conftest*
4838fi
4839{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4840$as_echo "$lt_cv_nm_interface" >&6; }
4841
4842{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4843$as_echo_n "checking whether ln -s works... " >&6; }
4844LN_S=$as_ln_s
4845if test "$LN_S" = "ln -s"; then
4846 { $as_echo "$as_me:$LINENO: result: yes" >&5
4847$as_echo "yes" >&6; }
4848else
4849 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4850$as_echo "no, using $LN_S" >&6; }
4851fi
4852
4853# find the maximum length of command line arguments
4854{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4855$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4856if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4857 $as_echo_n "(cached) " >&6
4858else
4859 i=0
4860 teststring="ABCD"
4861
4862 case $build_os in
4863 msdosdjgpp*)
4864 # On DJGPP, this test can blow up pretty badly due to problems in libc
4865 # (any single argument exceeding 2000 bytes causes a buffer overrun
4866 # during glob expansion). Even if it were fixed, the result of this
4867 # check would be larger than it should be.
4868 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4869 ;;
4870
4871 gnu*)
4872 # Under GNU Hurd, this test is not required because there is
4873 # no limit to the length of command line arguments.
4874 # Libtool will interpret -1 as no limit whatsoever
4875 lt_cv_sys_max_cmd_len=-1;
4876 ;;
4877
4878 cygwin* | mingw* | cegcc*)
4879 # On Win9x/ME, this test blows up -- it succeeds, but takes
4880 # about 5 minutes as the teststring grows exponentially.
4881 # Worse, since 9x/ME are not pre-emptively multitasking,
4882 # you end up with a "frozen" computer, even though with patience
4883 # the test eventually succeeds (with a max line length of 256k).
4884 # Instead, let's just punt: use the minimum linelength reported by
4885 # all of the supported platforms: 8192 (on NT/2K/XP).
4886 lt_cv_sys_max_cmd_len=8192;
4887 ;;
4888
4889 amigaos*)
4890 # On AmigaOS with pdksh, this test takes hours, literally.
4891 # So we just punt and use a minimum line length of 8192.
4892 lt_cv_sys_max_cmd_len=8192;
4893 ;;
4894
4895 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4896 # This has been around since 386BSD, at least. Likely further.
4897 if test -x /sbin/sysctl; then
4898 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4899 elif test -x /usr/sbin/sysctl; then
4900 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4901 else
4902 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4903 fi
4904 # And add a safety zone
4905 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4906 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4907 ;;
4908
4909 interix*)
4910 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4911 lt_cv_sys_max_cmd_len=196608
4912 ;;
4913
4914 osf*)
4915 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4916 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4917 # nice to cause kernel panics so lets avoid the loop below.
4918 # First set a reasonable default.
4919 lt_cv_sys_max_cmd_len=16384
4920 #
4921 if test -x /sbin/sysconfig; then
4922 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4923 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4924 esac
4925 fi
4926 ;;
4927 sco3.2v5*)
4928 lt_cv_sys_max_cmd_len=102400
4929 ;;
4930 sysv5* | sco5v6* | sysv4.2uw2*)
4931 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4932 if test -n "$kargmax"; then
4933 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4934 else
4935 lt_cv_sys_max_cmd_len=32768
4936 fi
4937 ;;
4938 *)
4939 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4940 if test -n "$lt_cv_sys_max_cmd_len"; then
4941 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4942 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4943 else
4944 # Make teststring a little bigger before we do anything with it.
4945 # a 1K string should be a reasonable start.
4946 for i in 1 2 3 4 5 6 7 8 ; do
4947 teststring=$teststring$teststring
4948 done
4949 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4950 # If test is not a shell built-in, we'll probably end up computing a
4951 # maximum length that is only half of the actual maximum length, but
4952 # we can't tell.
4953 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4954 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4955 test $i != 17 # 1/2 MB should be enough
4956 do
4957 i=`expr $i + 1`
4958 teststring=$teststring$teststring
4959 done
4960 # Only check the string length outside the loop.
4961 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4962 teststring=
4963 # Add a significant safety factor because C++ compilers can tack on
4964 # massive amounts of additional arguments before passing them to the
4965 # linker. It appears as though 1/2 is a usable value.
4966 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4967 fi
4968 ;;
4969 esac
4970
4971fi
4972
4973if test -n $lt_cv_sys_max_cmd_len ; then
4974 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4975$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4976else
4977 { $as_echo "$as_me:$LINENO: result: none" >&5
4978$as_echo "none" >&6; }
4979fi
4980max_cmd_len=$lt_cv_sys_max_cmd_len
4981
4982
4983
4984
4985
4986
4987: ${CP="cp -f"}
4988: ${MV="mv -f"}
4989: ${RM="rm -f"}
4990
4991{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4992$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4993# Try some XSI features
4994xsi_shell=no
4995( _lt_dummy="a/b/c"
4996 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4997 = c,a/b,, \
4998 && eval 'test $(( 1 + 1 )) -eq 2 \
4999 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5000 && xsi_shell=yes
5001{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
5002$as_echo "$xsi_shell" >&6; }
5003
5004
5005{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5006$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5007lt_shell_append=no
5008( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5009 >/dev/null 2>&1 \
5010 && lt_shell_append=yes
5011{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5012$as_echo "$lt_shell_append" >&6; }
5013
5014
5015if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5016 lt_unset=unset
5017else
5018 lt_unset=false
5019fi
5020
5021
5022
5023
5024
5025# test EBCDIC or ASCII
5026case `echo X|tr X '\101'` in
5027 A) # ASCII based system
5028 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5029 lt_SP2NL='tr \040 \012'
5030 lt_NL2SP='tr \015\012 \040\040'
5031 ;;
5032 *) # EBCDIC based system
5033 lt_SP2NL='tr \100 \n'
5034 lt_NL2SP='tr \r\n \100\100'
5035 ;;
5036esac
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5047$as_echo_n "checking for $LD option to reload object files... " >&6; }
5048if test "${lt_cv_ld_reload_flag+set}" = set; then
5049 $as_echo_n "(cached) " >&6
5050else
5051 lt_cv_ld_reload_flag='-r'
5052fi
5053{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5054$as_echo "$lt_cv_ld_reload_flag" >&6; }
5055reload_flag=$lt_cv_ld_reload_flag
5056case $reload_flag in
5057"" | " "*) ;;
5058*) reload_flag=" $reload_flag" ;;
5059esac
5060reload_cmds='$LD$reload_flag -o $output$reload_objs'
5061case $host_os in
5062 darwin*)
5063 if test "$GCC" = yes; then
5064 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5065 else
5066 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5067 fi
5068 ;;
5069esac
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079if test -n "$ac_tool_prefix"; then
5080 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5081set dummy ${ac_tool_prefix}objdump; ac_word=$2
5082{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5083$as_echo_n "checking for $ac_word... " >&6; }
5084if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5085 $as_echo_n "(cached) " >&6
5086else
5087 if test -n "$OBJDUMP"; then
5088 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5089else
5090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5091for as_dir in $PATH
5092do
5093 IFS=$as_save_IFS
5094 test -z "$as_dir" && as_dir=.
5095 for ac_exec_ext in '' $ac_executable_extensions; do
5096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5097 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5098 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5099 break 2
5100 fi
5101done
5102done
5103IFS=$as_save_IFS
5104
5105fi
5106fi
5107OBJDUMP=$ac_cv_prog_OBJDUMP
5108if test -n "$OBJDUMP"; then
5109 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5110$as_echo "$OBJDUMP" >&6; }
5111else
5112 { $as_echo "$as_me:$LINENO: result: no" >&5
5113$as_echo "no" >&6; }
5114fi
5115
5116
5117fi
5118if test -z "$ac_cv_prog_OBJDUMP"; then
5119 ac_ct_OBJDUMP=$OBJDUMP
5120 # Extract the first word of "objdump", so it can be a program name with args.
5121set dummy objdump; ac_word=$2
5122{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5123$as_echo_n "checking for $ac_word... " >&6; }
5124if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5125 $as_echo_n "(cached) " >&6
5126else
5127 if test -n "$ac_ct_OBJDUMP"; then
5128 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5129else
5130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5131for as_dir in $PATH
5132do
5133 IFS=$as_save_IFS
5134 test -z "$as_dir" && as_dir=.
5135 for ac_exec_ext in '' $ac_executable_extensions; do
5136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5137 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5138 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5139 break 2
5140 fi
5141done
5142done
5143IFS=$as_save_IFS
5144
5145fi
5146fi
5147ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5148if test -n "$ac_ct_OBJDUMP"; then
5149 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5150$as_echo "$ac_ct_OBJDUMP" >&6; }
5151else
5152 { $as_echo "$as_me:$LINENO: result: no" >&5
5153$as_echo "no" >&6; }
5154fi
5155
5156 if test "x$ac_ct_OBJDUMP" = x; then
5157 OBJDUMP="false"
5158 else
5159 case $cross_compiling:$ac_tool_warned in
5160yes:)
5161{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5162$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5163ac_tool_warned=yes ;;
5164esac
5165 OBJDUMP=$ac_ct_OBJDUMP
5166 fi
5167else
5168 OBJDUMP="$ac_cv_prog_OBJDUMP"
5169fi
5170
5171test -z "$OBJDUMP" && OBJDUMP=objdump
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5182$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5183if test "${lt_cv_deplibs_check_method+set}" = set; then
5184 $as_echo_n "(cached) " >&6
5185else
5186 lt_cv_file_magic_cmd='$MAGIC_CMD'
5187lt_cv_file_magic_test_file=
5188lt_cv_deplibs_check_method='unknown'
5189# Need to set the preceding variable on all platforms that support
5190# interlibrary dependencies.
5191# 'none' -- dependencies not supported.
5192# `unknown' -- same as none, but documents that we really don't know.
5193# 'pass_all' -- all dependencies passed with no checks.
5194# 'test_compile' -- check by making test program.
5195# 'file_magic [[regex]]' -- check by looking for files in library path
5196# which responds to the $file_magic_cmd with a given extended regex.
5197# If you have `file' or equivalent on your system and you're not sure
5198# whether `pass_all' will *always* work, you probably want this one.
5199
5200case $host_os in
5201aix[4-9]*)
5202 lt_cv_deplibs_check_method=pass_all
5203 ;;
5204
5205beos*)
5206 lt_cv_deplibs_check_method=pass_all
5207 ;;
5208
5209bsdi[45]*)
5210 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5211 lt_cv_file_magic_cmd='/usr/bin/file -L'
5212 lt_cv_file_magic_test_file=/shlib/libc.so
5213 ;;
5214
5215cygwin*)
5216 # func_win32_libid is a shell function defined in ltmain.sh
5217 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5218 lt_cv_file_magic_cmd='func_win32_libid'
5219 ;;
5220
5221mingw* | pw32*)
5222 # Base MSYS/MinGW do not provide the 'file' command needed by
5223 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5224 # unless we find 'file', for example because we are cross-compiling.
5225 if ( file / ) >/dev/null 2>&1; then
5226 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5227 lt_cv_file_magic_cmd='func_win32_libid'
5228 else
5229 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5230 lt_cv_file_magic_cmd='$OBJDUMP -f'
5231 fi
5232 ;;
5233
5234cegcc)
5235 # use the weaker test based on 'objdump'. See mingw*.
5236 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5237 lt_cv_file_magic_cmd='$OBJDUMP -f'
5238 ;;
5239
5240darwin* | rhapsody*)
5241 lt_cv_deplibs_check_method=pass_all
5242 ;;
5243
5244freebsd* | dragonfly*)
5245 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5246 case $host_cpu in
5247 i*86 )
5248 # Not sure whether the presence of OpenBSD here was a mistake.
5249 # Let's accept both of them until this is cleared up.
5250 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5251 lt_cv_file_magic_cmd=/usr/bin/file
5252 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5253 ;;
5254 esac
5255 else
5256 lt_cv_deplibs_check_method=pass_all
5257 fi
5258 ;;
5259
5260gnu*)
5261 lt_cv_deplibs_check_method=pass_all
5262 ;;
5263
5264hpux10.20* | hpux11*)
5265 lt_cv_file_magic_cmd=/usr/bin/file
5266 case $host_cpu in
5267 ia64*)
5268 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5269 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5270 ;;
5271 hppa*64*)
5272 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]'
5273 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5274 ;;
5275 *)
5276 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5277 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5278 ;;
5279 esac
5280 ;;
5281
5282interix[3-9]*)
5283 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5284 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5285 ;;
5286
5287irix5* | irix6* | nonstopux*)
5288 case $LD in
5289 *-32|*"-32 ") libmagic=32-bit;;
5290 *-n32|*"-n32 ") libmagic=N32;;
5291 *-64|*"-64 ") libmagic=64-bit;;
5292 *) libmagic=never-match;;
5293 esac
5294 lt_cv_deplibs_check_method=pass_all
5295 ;;
5296
5297# This must be Linux ELF.
5298linux* | k*bsd*-gnu)
5299 lt_cv_deplibs_check_method=pass_all
5300 ;;
5301
5302netbsd*)
5303 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5304 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5305 else
5306 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5307 fi
5308 ;;
5309
5310newos6*)
5311 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5312 lt_cv_file_magic_cmd=/usr/bin/file
5313 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5314 ;;
5315
5316*nto* | *qnx*)
5317 lt_cv_deplibs_check_method=pass_all
5318 ;;
5319
5320openbsd*)
5321 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5322 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5323 else
5324 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5325 fi
5326 ;;
5327
5328osf3* | osf4* | osf5*)
5329 lt_cv_deplibs_check_method=pass_all
5330 ;;
5331
5332rdos*)
5333 lt_cv_deplibs_check_method=pass_all
5334 ;;
5335
5336solaris*)
5337 lt_cv_deplibs_check_method=pass_all
5338 ;;
5339
5340sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5341 lt_cv_deplibs_check_method=pass_all
5342 ;;
5343
5344sysv4 | sysv4.3*)
5345 case $host_vendor in
5346 motorola)
5347 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]'
5348 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5349 ;;
5350 ncr)
5351 lt_cv_deplibs_check_method=pass_all
5352 ;;
5353 sequent)
5354 lt_cv_file_magic_cmd='/bin/file'
5355 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5356 ;;
5357 sni)
5358 lt_cv_file_magic_cmd='/bin/file'
5359 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5360 lt_cv_file_magic_test_file=/lib/libc.so
5361 ;;
5362 siemens)
5363 lt_cv_deplibs_check_method=pass_all
5364 ;;
5365 pc)
5366 lt_cv_deplibs_check_method=pass_all
5367 ;;
5368 esac
5369 ;;
5370
5371tpf*)
5372 lt_cv_deplibs_check_method=pass_all
5373 ;;
5374esac
5375
5376fi
5377{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5378$as_echo "$lt_cv_deplibs_check_method" >&6; }
5379file_magic_cmd=$lt_cv_file_magic_cmd
5380deplibs_check_method=$lt_cv_deplibs_check_method
5381test -z "$deplibs_check_method" && deplibs_check_method=unknown
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394if test -n "$ac_tool_prefix"; then
5395 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5396set dummy ${ac_tool_prefix}ar; ac_word=$2
5397{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5398$as_echo_n "checking for $ac_word... " >&6; }
5399if test "${ac_cv_prog_AR+set}" = set; then
5400 $as_echo_n "(cached) " >&6
5401else
5402 if test -n "$AR"; then
5403 ac_cv_prog_AR="$AR" # Let the user override the test.
5404else
5405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5406for as_dir in $PATH
5407do
5408 IFS=$as_save_IFS
5409 test -z "$as_dir" && as_dir=.
5410 for ac_exec_ext in '' $ac_executable_extensions; do
5411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5412 ac_cv_prog_AR="${ac_tool_prefix}ar"
5413 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5414 break 2
5415 fi
5416done
5417done
5418IFS=$as_save_IFS
5419
5420fi
5421fi
5422AR=$ac_cv_prog_AR
5423if test -n "$AR"; then
5424 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5425$as_echo "$AR" >&6; }
5426else
5427 { $as_echo "$as_me:$LINENO: result: no" >&5
5428$as_echo "no" >&6; }
5429fi
5430
5431
5432fi
5433if test -z "$ac_cv_prog_AR"; then
5434 ac_ct_AR=$AR
5435 # Extract the first word of "ar", so it can be a program name with args.
5436set dummy ar; ac_word=$2
5437{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5438$as_echo_n "checking for $ac_word... " >&6; }
5439if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5440 $as_echo_n "(cached) " >&6
5441else
5442 if test -n "$ac_ct_AR"; then
5443 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5444else
5445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5446for as_dir in $PATH
5447do
5448 IFS=$as_save_IFS
5449 test -z "$as_dir" && as_dir=.
5450 for ac_exec_ext in '' $ac_executable_extensions; do
5451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5452 ac_cv_prog_ac_ct_AR="ar"
5453 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5454 break 2
5455 fi
5456done
5457done
5458IFS=$as_save_IFS
5459
5460fi
5461fi
5462ac_ct_AR=$ac_cv_prog_ac_ct_AR
5463if test -n "$ac_ct_AR"; then
5464 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5465$as_echo "$ac_ct_AR" >&6; }
5466else
5467 { $as_echo "$as_me:$LINENO: result: no" >&5
5468$as_echo "no" >&6; }
5469fi
5470
5471 if test "x$ac_ct_AR" = x; then
5472 AR="false"
5473 else
5474 case $cross_compiling:$ac_tool_warned in
5475yes:)
5476{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5477$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5478ac_tool_warned=yes ;;
5479esac
5480 AR=$ac_ct_AR
5481 fi
5482else
5483 AR="$ac_cv_prog_AR"
5484fi
5485
5486test -z "$AR" && AR=ar
5487test -z "$AR_FLAGS" && AR_FLAGS=cru
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499if test -n "$ac_tool_prefix"; then
5500 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5501set dummy ${ac_tool_prefix}strip; ac_word=$2
5502{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5503$as_echo_n "checking for $ac_word... " >&6; }
5504if test "${ac_cv_prog_STRIP+set}" = set; then
5505 $as_echo_n "(cached) " >&6
5506else
5507 if test -n "$STRIP"; then
5508 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5509else
5510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5511for as_dir in $PATH
5512do
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_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5517 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5518 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5519 break 2
5520 fi
5521done
5522done
5523IFS=$as_save_IFS
5524
5525fi
5526fi
5527STRIP=$ac_cv_prog_STRIP
5528if test -n "$STRIP"; then
5529 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5530$as_echo "$STRIP" >&6; }
5531else
5532 { $as_echo "$as_me:$LINENO: result: no" >&5
5533$as_echo "no" >&6; }
5534fi
5535
5536
5537fi
5538if test -z "$ac_cv_prog_STRIP"; then
5539 ac_ct_STRIP=$STRIP
5540 # Extract the first word of "strip", so it can be a program name with args.
5541set dummy strip; ac_word=$2
5542{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5543$as_echo_n "checking for $ac_word... " >&6; }
5544if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5545 $as_echo_n "(cached) " >&6
5546else
5547 if test -n "$ac_ct_STRIP"; then
5548 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5549else
5550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5551for as_dir in $PATH
5552do
5553 IFS=$as_save_IFS
5554 test -z "$as_dir" && as_dir=.
5555 for ac_exec_ext in '' $ac_executable_extensions; do
5556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5557 ac_cv_prog_ac_ct_STRIP="strip"
5558 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5559 break 2
5560 fi
5561done
5562done
5563IFS=$as_save_IFS
5564
5565fi
5566fi
5567ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5568if test -n "$ac_ct_STRIP"; then
5569 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5570$as_echo "$ac_ct_STRIP" >&6; }
5571else
5572 { $as_echo "$as_me:$LINENO: result: no" >&5
5573$as_echo "no" >&6; }
5574fi
5575
5576 if test "x$ac_ct_STRIP" = x; then
5577 STRIP=":"
5578 else
5579 case $cross_compiling:$ac_tool_warned in
5580yes:)
5581{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5582$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5583ac_tool_warned=yes ;;
5584esac
5585 STRIP=$ac_ct_STRIP
5586 fi
5587else
5588 STRIP="$ac_cv_prog_STRIP"
5589fi
5590
5591test -z "$STRIP" && STRIP=:
5592
5593
5594
5595
5596
5597
5598if test -n "$ac_tool_prefix"; then
5599 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5600set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5601{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5602$as_echo_n "checking for $ac_word... " >&6; }
5603if test "${ac_cv_prog_RANLIB+set}" = set; then
5604 $as_echo_n "(cached) " >&6
5605else
5606 if test -n "$RANLIB"; then
5607 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5608else
5609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5610for as_dir in $PATH
5611do
5612 IFS=$as_save_IFS
5613 test -z "$as_dir" && as_dir=.
5614 for ac_exec_ext in '' $ac_executable_extensions; do
5615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5616 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5617 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5618 break 2
5619 fi
5620done
5621done
5622IFS=$as_save_IFS
5623
5624fi
5625fi
5626RANLIB=$ac_cv_prog_RANLIB
5627if test -n "$RANLIB"; then
5628 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5629$as_echo "$RANLIB" >&6; }
5630else
5631 { $as_echo "$as_me:$LINENO: result: no" >&5
5632$as_echo "no" >&6; }
5633fi
5634
5635
5636fi
5637if test -z "$ac_cv_prog_RANLIB"; then
5638 ac_ct_RANLIB=$RANLIB
5639 # Extract the first word of "ranlib", so it can be a program name with args.
5640set dummy ranlib; ac_word=$2
5641{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5642$as_echo_n "checking for $ac_word... " >&6; }
5643if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5644 $as_echo_n "(cached) " >&6
5645else
5646 if test -n "$ac_ct_RANLIB"; then
5647 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5648else
5649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5650for as_dir in $PATH
5651do
5652 IFS=$as_save_IFS
5653 test -z "$as_dir" && as_dir=.
5654 for ac_exec_ext in '' $ac_executable_extensions; do
5655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5656 ac_cv_prog_ac_ct_RANLIB="ranlib"
5657 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5658 break 2
5659 fi
5660done
5661done
5662IFS=$as_save_IFS
5663
5664fi
5665fi
5666ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5667if test -n "$ac_ct_RANLIB"; then
5668 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5669$as_echo "$ac_ct_RANLIB" >&6; }
5670else
5671 { $as_echo "$as_me:$LINENO: result: no" >&5
5672$as_echo "no" >&6; }
5673fi
5674
5675 if test "x$ac_ct_RANLIB" = x; then
5676 RANLIB=":"
5677 else
5678 case $cross_compiling:$ac_tool_warned in
5679yes:)
5680{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5681$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5682ac_tool_warned=yes ;;
5683esac
5684 RANLIB=$ac_ct_RANLIB
5685 fi
5686else
5687 RANLIB="$ac_cv_prog_RANLIB"
5688fi
5689
5690test -z "$RANLIB" && RANLIB=:
5691
5692
5693
5694
5695
5696
5697# Determine commands to create old-style static archives.
5698old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5699old_postinstall_cmds='chmod 644 $oldlib'
5700old_postuninstall_cmds=
5701
5702if test -n "$RANLIB"; then
5703 case $host_os in
5704 openbsd*)
5705 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5706 ;;
5707 *)
5708 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5709 ;;
5710 esac
5711 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5712fi
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747# If no C compiler was specified, use CC.
5748LTCC=${LTCC-"$CC"}
5749
5750# If no C compiler flags were specified, use CFLAGS.
5751LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5752
5753# Allow CC to be a program name with arguments.
5754compiler=$CC
5755
5756
5757# Check for command to grab the raw symbol name followed by C symbol from nm.
5758{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5759$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5760if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5761 $as_echo_n "(cached) " >&6
5762else
5763
5764# These are sane defaults that work on at least a few old systems.
5765# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5766
5767# Character class describing NM global symbol codes.
5768symcode='[BCDEGRST]'
5769
5770# Regexp to match symbols that can be accessed directly from C.
5771sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5772
5773# Define system-specific variables.
5774case $host_os in
5775aix*)
5776 symcode='[BCDT]'
5777 ;;
5778cygwin* | mingw* | pw32* | cegcc*)
5779 symcode='[ABCDGISTW]'
5780 ;;
5781hpux*)
5782 if test "$host_cpu" = ia64; then
5783 symcode='[ABCDEGRST]'
5784 fi
5785 ;;
5786irix* | nonstopux*)
5787 symcode='[BCDEGRST]'
5788 ;;
5789osf*)
5790 symcode='[BCDEGQRST]'
5791 ;;
5792solaris*)
5793 symcode='[BDRT]'
5794 ;;
5795sco3.2v5*)
5796 symcode='[DT]'
5797 ;;
5798sysv4.2uw2*)
5799 symcode='[DT]'
5800 ;;
5801sysv5* | sco5v6* | unixware* | OpenUNIX*)
5802 symcode='[ABDT]'
5803 ;;
5804sysv4)
5805 symcode='[DFNSTU]'
5806 ;;
5807esac
5808
5809# If we're using GNU nm, then use its standard symbol codes.
5810case `$NM -V 2>&1` in
5811*GNU* | *'with BFD'*)
5812 symcode='[ABCDGIRSTW]' ;;
5813esac
5814
5815# Transform an extracted symbol line into a proper C declaration.
5816# Some systems (esp. on ia64) link data and code symbols differently,
5817# so use this general approach.
5818lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5819
5820# Transform an extracted symbol line into symbol name and symbol address
5821lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5822lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5823
5824# Handle CRLF in mingw tool chain
5825opt_cr=
5826case $build_os in
5827mingw*)
5828 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5829 ;;
5830esac
5831
5832# Try without a prefix underscore, then with it.
5833for ac_symprfx in "" "_"; do
5834
5835 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5836 symxfrm="\\1 $ac_symprfx\\2 \\2"
5837
5838 # Write the raw and C identifiers.
5839 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5840 # Fake it for dumpbin and say T for any non-static function
5841 # and D for any global variable.
5842 # Also find C++ and __fastcall symbols from MSVC++,
5843 # which start with @ or ?.
5844 lt_cv_sys_global_symbol_pipe="$AWK '"\
5845" {last_section=section; section=\$ 3};"\
5846" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5847" \$ 0!~/External *\|/{next};"\
5848" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5849" {if(hide[section]) next};"\
5850" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5851" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5852" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5853" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5854" ' prfx=^$ac_symprfx"
5855 else
5856 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5857 fi
5858
5859 # Check to see that the pipe works correctly.
5860 pipe_works=no
5861
5862 rm -f conftest*
5863 cat > conftest.$ac_ext <<_LT_EOF
5864#ifdef __cplusplus
5865extern "C" {
5866#endif
5867char nm_test_var;
5868void nm_test_func(void);
5869void nm_test_func(void){}
5870#ifdef __cplusplus
5871}
5872#endif
5873int main(){nm_test_var='a';nm_test_func();return(0);}
5874_LT_EOF
5875
5876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5877 (eval $ac_compile) 2>&5
5878 ac_status=$?
5879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); }; then
5881 # Now try to grab the symbols.
5882 nlist=conftest.nm
5883 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5884 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5885 ac_status=$?
5886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); } && test -s "$nlist"; then
5888 # Try sorting and uniquifying the output.
5889 if sort "$nlist" | uniq > "$nlist"T; then
5890 mv -f "$nlist"T "$nlist"
5891 else
5892 rm -f "$nlist"T
5893 fi
5894
5895 # Make sure that we snagged all the symbols we need.
5896 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5897 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5898 cat <<_LT_EOF > conftest.$ac_ext
5899#ifdef __cplusplus
5900extern "C" {
5901#endif
5902
5903_LT_EOF
5904 # Now generate the symbol file.
5905 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5906
5907 cat <<_LT_EOF >> conftest.$ac_ext
5908
5909/* The mapping between symbol names and symbols. */
5910const struct {
5911 const char *name;
5912 void *address;
5913}
5914lt__PROGRAM__LTX_preloaded_symbols[] =
5915{
5916 { "@PROGRAM@", (void *) 0 },
5917_LT_EOF
5918 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5919 cat <<\_LT_EOF >> conftest.$ac_ext
5920 {0, (void *) 0}
5921};
5922
5923/* This works around a problem in FreeBSD linker */
5924#ifdef FREEBSD_WORKAROUND
5925static const void *lt_preloaded_setup() {
5926 return lt__PROGRAM__LTX_preloaded_symbols;
5927}
5928#endif
5929
5930#ifdef __cplusplus
5931}
5932#endif
5933_LT_EOF
5934 # Now try linking the two files.
5935 mv conftest.$ac_objext conftstm.$ac_objext
5936 lt_save_LIBS="$LIBS"
5937 lt_save_CFLAGS="$CFLAGS"
5938 LIBS="conftstm.$ac_objext"
5939 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5941 (eval $ac_link) 2>&5
5942 ac_status=$?
5943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5945 pipe_works=yes
5946 fi
5947 LIBS="$lt_save_LIBS"
5948 CFLAGS="$lt_save_CFLAGS"
5949 else
5950 echo "cannot find nm_test_func in $nlist" >&5
5951 fi
5952 else
5953 echo "cannot find nm_test_var in $nlist" >&5
5954 fi
5955 else
5956 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5957 fi
5958 else
5959 echo "$progname: failed program was:" >&5
5960 cat conftest.$ac_ext >&5
5961 fi
5962 rm -rf conftest* conftst*
5963
5964 # Do not use the global_symbol_pipe unless it works.
5965 if test "$pipe_works" = yes; then
5966 break
5967 else
5968 lt_cv_sys_global_symbol_pipe=
5969 fi
5970done
5971
5972fi
5973
5974if test -z "$lt_cv_sys_global_symbol_pipe"; then
5975 lt_cv_sys_global_symbol_to_cdecl=
5976fi
5977if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5978 { $as_echo "$as_me:$LINENO: result: failed" >&5
5979$as_echo "failed" >&6; }
5980else
5981 { $as_echo "$as_me:$LINENO: result: ok" >&5
5982$as_echo "ok" >&6; }
5983fi
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007# Check whether --enable-libtool-lock was given.
6008if test "${enable_libtool_lock+set}" = set; then
6009 enableval=$enable_libtool_lock;
6010fi
6011
6012test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6013
6014# Some flags need to be propagated to the compiler or linker for good
6015# libtool support.
6016case $host in
6017ia64-*-hpux*)
6018 # Find out which ABI we are using.
6019 echo 'int i;' > conftest.$ac_ext
6020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6021 (eval $ac_compile) 2>&5
6022 ac_status=$?
6023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024 (exit $ac_status); }; then
6025 case `/usr/bin/file conftest.$ac_objext` in
6026 *ELF-32*)
6027 HPUX_IA64_MODE="32"
6028 ;;
6029 *ELF-64*)
6030 HPUX_IA64_MODE="64"
6031 ;;
6032 esac
6033 fi
6034 rm -rf conftest*
6035 ;;
6036*-*-irix6*)
6037 # Find out which ABI we are using.
Adam Tkaca4c2fae2009-03-12 18:21:41 +00006038 echo '#line 6038 "configure"' > conftest.$ac_ext
Adam Tkacfc4cd712009-03-11 11:14:37 +00006039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6040 (eval $ac_compile) 2>&5
6041 ac_status=$?
6042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); }; then
6044 if test "$lt_cv_prog_gnu_ld" = yes; then
6045 case `/usr/bin/file conftest.$ac_objext` in
6046 *32-bit*)
6047 LD="${LD-ld} -melf32bsmip"
6048 ;;
6049 *N32*)
6050 LD="${LD-ld} -melf32bmipn32"
6051 ;;
6052 *64-bit*)
6053 LD="${LD-ld} -melf64bmip"
6054 ;;
6055 esac
6056 else
6057 case `/usr/bin/file conftest.$ac_objext` in
6058 *32-bit*)
6059 LD="${LD-ld} -32"
6060 ;;
6061 *N32*)
6062 LD="${LD-ld} -n32"
6063 ;;
6064 *64-bit*)
6065 LD="${LD-ld} -64"
6066 ;;
6067 esac
6068 fi
6069 fi
6070 rm -rf conftest*
6071 ;;
6072
6073x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6074s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6075 # Find out which ABI we are using.
6076 echo 'int i;' > conftest.$ac_ext
6077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6078 (eval $ac_compile) 2>&5
6079 ac_status=$?
6080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081 (exit $ac_status); }; then
6082 case `/usr/bin/file conftest.o` in
6083 *32-bit*)
6084 case $host in
6085 x86_64-*kfreebsd*-gnu)
6086 LD="${LD-ld} -m elf_i386_fbsd"
6087 ;;
6088 x86_64-*linux*)
6089 LD="${LD-ld} -m elf_i386"
6090 ;;
6091 ppc64-*linux*|powerpc64-*linux*)
6092 LD="${LD-ld} -m elf32ppclinux"
6093 ;;
6094 s390x-*linux*)
6095 LD="${LD-ld} -m elf_s390"
6096 ;;
6097 sparc64-*linux*)
6098 LD="${LD-ld} -m elf32_sparc"
6099 ;;
6100 esac
6101 ;;
6102 *64-bit*)
6103 case $host in
6104 x86_64-*kfreebsd*-gnu)
6105 LD="${LD-ld} -m elf_x86_64_fbsd"
6106 ;;
6107 x86_64-*linux*)
6108 LD="${LD-ld} -m elf_x86_64"
6109 ;;
6110 ppc*-*linux*|powerpc*-*linux*)
6111 LD="${LD-ld} -m elf64ppc"
6112 ;;
6113 s390*-*linux*|s390*-*tpf*)
6114 LD="${LD-ld} -m elf64_s390"
6115 ;;
6116 sparc*-*linux*)
6117 LD="${LD-ld} -m elf64_sparc"
6118 ;;
6119 esac
6120 ;;
6121 esac
6122 fi
6123 rm -rf conftest*
6124 ;;
6125
6126*-*-sco3.2v5*)
6127 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6128 SAVE_CFLAGS="$CFLAGS"
6129 CFLAGS="$CFLAGS -belf"
6130 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6131$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6132if test "${lt_cv_cc_needs_belf+set}" = set; then
6133 $as_echo_n "(cached) " >&6
6134else
6135 ac_ext=c
6136ac_cpp='$CPP $CPPFLAGS'
6137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6139ac_compiler_gnu=$ac_cv_c_compiler_gnu
6140
6141 cat >conftest.$ac_ext <<_ACEOF
6142/* confdefs.h. */
6143_ACEOF
6144cat confdefs.h >>conftest.$ac_ext
6145cat >>conftest.$ac_ext <<_ACEOF
6146/* end confdefs.h. */
6147
6148int
6149main ()
6150{
6151
6152 ;
6153 return 0;
6154}
6155_ACEOF
6156rm -f conftest.$ac_objext conftest$ac_exeext
6157if { (ac_try="$ac_link"
6158case "(($ac_try" in
6159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6160 *) ac_try_echo=$ac_try;;
6161esac
6162eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6163$as_echo "$ac_try_echo") >&5
6164 (eval "$ac_link") 2>conftest.er1
6165 ac_status=$?
6166 grep -v '^ *+' conftest.er1 >conftest.err
6167 rm -f conftest.er1
6168 cat conftest.err >&5
6169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170 (exit $ac_status); } && {
6171 test -z "$ac_c_werror_flag" ||
6172 test ! -s conftest.err
6173 } && test -s conftest$ac_exeext && {
6174 test "$cross_compiling" = yes ||
6175 $as_test_x conftest$ac_exeext
6176 }; then
6177 lt_cv_cc_needs_belf=yes
6178else
6179 $as_echo "$as_me: failed program was:" >&5
6180sed 's/^/| /' conftest.$ac_ext >&5
6181
6182 lt_cv_cc_needs_belf=no
6183fi
6184
6185rm -rf conftest.dSYM
6186rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6187 conftest$ac_exeext conftest.$ac_ext
6188 ac_ext=c
6189ac_cpp='$CPP $CPPFLAGS'
6190ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6191ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6192ac_compiler_gnu=$ac_cv_c_compiler_gnu
6193
6194fi
6195{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6196$as_echo "$lt_cv_cc_needs_belf" >&6; }
6197 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6198 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6199 CFLAGS="$SAVE_CFLAGS"
6200 fi
6201 ;;
6202sparc*-*solaris*)
6203 # Find out which ABI we are using.
6204 echo 'int i;' > conftest.$ac_ext
6205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6206 (eval $ac_compile) 2>&5
6207 ac_status=$?
6208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209 (exit $ac_status); }; then
6210 case `/usr/bin/file conftest.o` in
6211 *64-bit*)
6212 case $lt_cv_prog_gnu_ld in
6213 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6214 *)
6215 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6216 LD="${LD-ld} -64"
6217 fi
6218 ;;
6219 esac
6220 ;;
6221 esac
6222 fi
6223 rm -rf conftest*
6224 ;;
6225esac
6226
6227need_locks="$enable_libtool_lock"
6228
6229
6230 case $host_os in
6231 rhapsody* | darwin*)
6232 if test -n "$ac_tool_prefix"; then
6233 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6234set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6235{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6236$as_echo_n "checking for $ac_word... " >&6; }
6237if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6238 $as_echo_n "(cached) " >&6
6239else
6240 if test -n "$DSYMUTIL"; then
6241 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6242else
6243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6244for as_dir in $PATH
6245do
6246 IFS=$as_save_IFS
6247 test -z "$as_dir" && as_dir=.
6248 for ac_exec_ext in '' $ac_executable_extensions; do
6249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6250 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6251 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6252 break 2
6253 fi
6254done
6255done
6256IFS=$as_save_IFS
6257
6258fi
6259fi
6260DSYMUTIL=$ac_cv_prog_DSYMUTIL
6261if test -n "$DSYMUTIL"; then
6262 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6263$as_echo "$DSYMUTIL" >&6; }
6264else
6265 { $as_echo "$as_me:$LINENO: result: no" >&5
6266$as_echo "no" >&6; }
6267fi
6268
6269
6270fi
6271if test -z "$ac_cv_prog_DSYMUTIL"; then
6272 ac_ct_DSYMUTIL=$DSYMUTIL
6273 # Extract the first word of "dsymutil", so it can be a program name with args.
6274set dummy dsymutil; ac_word=$2
6275{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6276$as_echo_n "checking for $ac_word... " >&6; }
6277if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6278 $as_echo_n "(cached) " >&6
6279else
6280 if test -n "$ac_ct_DSYMUTIL"; then
6281 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6282else
6283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6284for as_dir in $PATH
6285do
6286 IFS=$as_save_IFS
6287 test -z "$as_dir" && as_dir=.
6288 for ac_exec_ext in '' $ac_executable_extensions; do
6289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6290 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6291 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6292 break 2
6293 fi
6294done
6295done
6296IFS=$as_save_IFS
6297
6298fi
6299fi
6300ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6301if test -n "$ac_ct_DSYMUTIL"; then
6302 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6303$as_echo "$ac_ct_DSYMUTIL" >&6; }
6304else
6305 { $as_echo "$as_me:$LINENO: result: no" >&5
6306$as_echo "no" >&6; }
6307fi
6308
6309 if test "x$ac_ct_DSYMUTIL" = x; then
6310 DSYMUTIL=":"
6311 else
6312 case $cross_compiling:$ac_tool_warned in
6313yes:)
6314{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6315$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6316ac_tool_warned=yes ;;
6317esac
6318 DSYMUTIL=$ac_ct_DSYMUTIL
6319 fi
6320else
6321 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6322fi
6323
6324 if test -n "$ac_tool_prefix"; then
6325 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6326set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6327{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6328$as_echo_n "checking for $ac_word... " >&6; }
6329if test "${ac_cv_prog_NMEDIT+set}" = set; then
6330 $as_echo_n "(cached) " >&6
6331else
6332 if test -n "$NMEDIT"; then
6333 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6334else
6335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6336for as_dir in $PATH
6337do
6338 IFS=$as_save_IFS
6339 test -z "$as_dir" && as_dir=.
6340 for ac_exec_ext in '' $ac_executable_extensions; do
6341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6342 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6343 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6344 break 2
6345 fi
6346done
6347done
6348IFS=$as_save_IFS
6349
6350fi
6351fi
6352NMEDIT=$ac_cv_prog_NMEDIT
6353if test -n "$NMEDIT"; then
6354 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6355$as_echo "$NMEDIT" >&6; }
6356else
6357 { $as_echo "$as_me:$LINENO: result: no" >&5
6358$as_echo "no" >&6; }
6359fi
6360
6361
6362fi
6363if test -z "$ac_cv_prog_NMEDIT"; then
6364 ac_ct_NMEDIT=$NMEDIT
6365 # Extract the first word of "nmedit", so it can be a program name with args.
6366set dummy nmedit; ac_word=$2
6367{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6368$as_echo_n "checking for $ac_word... " >&6; }
6369if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6370 $as_echo_n "(cached) " >&6
6371else
6372 if test -n "$ac_ct_NMEDIT"; then
6373 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6374else
6375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6376for as_dir in $PATH
6377do
6378 IFS=$as_save_IFS
6379 test -z "$as_dir" && as_dir=.
6380 for ac_exec_ext in '' $ac_executable_extensions; do
6381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6382 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6383 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6384 break 2
6385 fi
6386done
6387done
6388IFS=$as_save_IFS
6389
6390fi
6391fi
6392ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6393if test -n "$ac_ct_NMEDIT"; then
6394 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6395$as_echo "$ac_ct_NMEDIT" >&6; }
6396else
6397 { $as_echo "$as_me:$LINENO: result: no" >&5
6398$as_echo "no" >&6; }
6399fi
6400
6401 if test "x$ac_ct_NMEDIT" = x; then
6402 NMEDIT=":"
6403 else
6404 case $cross_compiling:$ac_tool_warned in
6405yes:)
6406{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6407$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6408ac_tool_warned=yes ;;
6409esac
6410 NMEDIT=$ac_ct_NMEDIT
6411 fi
6412else
6413 NMEDIT="$ac_cv_prog_NMEDIT"
6414fi
6415
6416 if test -n "$ac_tool_prefix"; then
6417 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6418set dummy ${ac_tool_prefix}lipo; ac_word=$2
6419{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6420$as_echo_n "checking for $ac_word... " >&6; }
6421if test "${ac_cv_prog_LIPO+set}" = set; then
6422 $as_echo_n "(cached) " >&6
6423else
6424 if test -n "$LIPO"; then
6425 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6426else
6427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6428for as_dir in $PATH
6429do
6430 IFS=$as_save_IFS
6431 test -z "$as_dir" && as_dir=.
6432 for ac_exec_ext in '' $ac_executable_extensions; do
6433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6434 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6435 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6436 break 2
6437 fi
6438done
6439done
6440IFS=$as_save_IFS
6441
6442fi
6443fi
6444LIPO=$ac_cv_prog_LIPO
6445if test -n "$LIPO"; then
6446 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6447$as_echo "$LIPO" >&6; }
6448else
6449 { $as_echo "$as_me:$LINENO: result: no" >&5
6450$as_echo "no" >&6; }
6451fi
6452
6453
6454fi
6455if test -z "$ac_cv_prog_LIPO"; then
6456 ac_ct_LIPO=$LIPO
6457 # Extract the first word of "lipo", so it can be a program name with args.
6458set dummy lipo; ac_word=$2
6459{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6460$as_echo_n "checking for $ac_word... " >&6; }
6461if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6462 $as_echo_n "(cached) " >&6
6463else
6464 if test -n "$ac_ct_LIPO"; then
6465 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6466else
6467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6468for as_dir in $PATH
6469do
6470 IFS=$as_save_IFS
6471 test -z "$as_dir" && as_dir=.
6472 for ac_exec_ext in '' $ac_executable_extensions; do
6473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6474 ac_cv_prog_ac_ct_LIPO="lipo"
6475 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6476 break 2
6477 fi
6478done
6479done
6480IFS=$as_save_IFS
6481
6482fi
6483fi
6484ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6485if test -n "$ac_ct_LIPO"; then
6486 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6487$as_echo "$ac_ct_LIPO" >&6; }
6488else
6489 { $as_echo "$as_me:$LINENO: result: no" >&5
6490$as_echo "no" >&6; }
6491fi
6492
6493 if test "x$ac_ct_LIPO" = x; then
6494 LIPO=":"
6495 else
6496 case $cross_compiling:$ac_tool_warned in
6497yes:)
6498{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6499$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6500ac_tool_warned=yes ;;
6501esac
6502 LIPO=$ac_ct_LIPO
6503 fi
6504else
6505 LIPO="$ac_cv_prog_LIPO"
6506fi
6507
6508 if test -n "$ac_tool_prefix"; then
6509 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6510set dummy ${ac_tool_prefix}otool; ac_word=$2
6511{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6512$as_echo_n "checking for $ac_word... " >&6; }
6513if test "${ac_cv_prog_OTOOL+set}" = set; then
6514 $as_echo_n "(cached) " >&6
6515else
6516 if test -n "$OTOOL"; then
6517 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6518else
6519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6520for as_dir in $PATH
6521do
6522 IFS=$as_save_IFS
6523 test -z "$as_dir" && as_dir=.
6524 for ac_exec_ext in '' $ac_executable_extensions; do
6525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6526 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6527 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6528 break 2
6529 fi
6530done
6531done
6532IFS=$as_save_IFS
6533
6534fi
6535fi
6536OTOOL=$ac_cv_prog_OTOOL
6537if test -n "$OTOOL"; then
6538 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6539$as_echo "$OTOOL" >&6; }
6540else
6541 { $as_echo "$as_me:$LINENO: result: no" >&5
6542$as_echo "no" >&6; }
6543fi
6544
6545
6546fi
6547if test -z "$ac_cv_prog_OTOOL"; then
6548 ac_ct_OTOOL=$OTOOL
6549 # Extract the first word of "otool", so it can be a program name with args.
6550set dummy otool; ac_word=$2
6551{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6552$as_echo_n "checking for $ac_word... " >&6; }
6553if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6554 $as_echo_n "(cached) " >&6
6555else
6556 if test -n "$ac_ct_OTOOL"; then
6557 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6558else
6559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6560for as_dir in $PATH
6561do
6562 IFS=$as_save_IFS
6563 test -z "$as_dir" && as_dir=.
6564 for ac_exec_ext in '' $ac_executable_extensions; do
6565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6566 ac_cv_prog_ac_ct_OTOOL="otool"
6567 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6568 break 2
6569 fi
6570done
6571done
6572IFS=$as_save_IFS
6573
6574fi
6575fi
6576ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6577if test -n "$ac_ct_OTOOL"; then
6578 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6579$as_echo "$ac_ct_OTOOL" >&6; }
6580else
6581 { $as_echo "$as_me:$LINENO: result: no" >&5
6582$as_echo "no" >&6; }
6583fi
6584
6585 if test "x$ac_ct_OTOOL" = x; then
6586 OTOOL=":"
6587 else
6588 case $cross_compiling:$ac_tool_warned in
6589yes:)
6590{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6591$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6592ac_tool_warned=yes ;;
6593esac
6594 OTOOL=$ac_ct_OTOOL
6595 fi
6596else
6597 OTOOL="$ac_cv_prog_OTOOL"
6598fi
6599
6600 if test -n "$ac_tool_prefix"; then
6601 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6602set dummy ${ac_tool_prefix}otool64; ac_word=$2
6603{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6604$as_echo_n "checking for $ac_word... " >&6; }
6605if test "${ac_cv_prog_OTOOL64+set}" = set; then
6606 $as_echo_n "(cached) " >&6
6607else
6608 if test -n "$OTOOL64"; then
6609 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6610else
6611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6612for as_dir in $PATH
6613do
6614 IFS=$as_save_IFS
6615 test -z "$as_dir" && as_dir=.
6616 for ac_exec_ext in '' $ac_executable_extensions; do
6617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6618 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6619 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6620 break 2
6621 fi
6622done
6623done
6624IFS=$as_save_IFS
6625
6626fi
6627fi
6628OTOOL64=$ac_cv_prog_OTOOL64
6629if test -n "$OTOOL64"; then
6630 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6631$as_echo "$OTOOL64" >&6; }
6632else
6633 { $as_echo "$as_me:$LINENO: result: no" >&5
6634$as_echo "no" >&6; }
6635fi
6636
6637
6638fi
6639if test -z "$ac_cv_prog_OTOOL64"; then
6640 ac_ct_OTOOL64=$OTOOL64
6641 # Extract the first word of "otool64", so it can be a program name with args.
6642set dummy otool64; ac_word=$2
6643{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6644$as_echo_n "checking for $ac_word... " >&6; }
6645if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6646 $as_echo_n "(cached) " >&6
6647else
6648 if test -n "$ac_ct_OTOOL64"; then
6649 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6650else
6651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6652for as_dir in $PATH
6653do
6654 IFS=$as_save_IFS
6655 test -z "$as_dir" && as_dir=.
6656 for ac_exec_ext in '' $ac_executable_extensions; do
6657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6658 ac_cv_prog_ac_ct_OTOOL64="otool64"
6659 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6660 break 2
6661 fi
6662done
6663done
6664IFS=$as_save_IFS
6665
6666fi
6667fi
6668ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6669if test -n "$ac_ct_OTOOL64"; then
6670 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6671$as_echo "$ac_ct_OTOOL64" >&6; }
6672else
6673 { $as_echo "$as_me:$LINENO: result: no" >&5
6674$as_echo "no" >&6; }
6675fi
6676
6677 if test "x$ac_ct_OTOOL64" = x; then
6678 OTOOL64=":"
6679 else
6680 case $cross_compiling:$ac_tool_warned in
6681yes:)
6682{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6683$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6684ac_tool_warned=yes ;;
6685esac
6686 OTOOL64=$ac_ct_OTOOL64
6687 fi
6688else
6689 OTOOL64="$ac_cv_prog_OTOOL64"
6690fi
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6719$as_echo_n "checking for -single_module linker flag... " >&6; }
6720if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6721 $as_echo_n "(cached) " >&6
6722else
6723 lt_cv_apple_cc_single_mod=no
6724 if test -z "${LT_MULTI_MODULE}"; then
6725 # By default we will add the -single_module flag. You can override
6726 # by either setting the environment variable LT_MULTI_MODULE
6727 # non-empty at configure time, or by adding -multi_module to the
6728 # link flags.
6729 rm -rf libconftest.dylib*
6730 echo "int foo(void){return 1;}" > conftest.c
6731 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6732-dynamiclib -Wl,-single_module conftest.c" >&5
6733 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6734 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6735 _lt_result=$?
6736 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6737 lt_cv_apple_cc_single_mod=yes
6738 else
6739 cat conftest.err >&5
6740 fi
6741 rm -rf libconftest.dylib*
6742 rm -f conftest.*
6743 fi
6744fi
6745{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6746$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6747 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6748$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6749if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6750 $as_echo_n "(cached) " >&6
6751else
6752 lt_cv_ld_exported_symbols_list=no
6753 save_LDFLAGS=$LDFLAGS
6754 echo "_main" > conftest.sym
6755 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6756 cat >conftest.$ac_ext <<_ACEOF
6757/* confdefs.h. */
6758_ACEOF
6759cat confdefs.h >>conftest.$ac_ext
6760cat >>conftest.$ac_ext <<_ACEOF
6761/* end confdefs.h. */
6762
6763int
6764main ()
6765{
6766
6767 ;
6768 return 0;
6769}
6770_ACEOF
6771rm -f conftest.$ac_objext conftest$ac_exeext
6772if { (ac_try="$ac_link"
6773case "(($ac_try" in
6774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6775 *) ac_try_echo=$ac_try;;
6776esac
6777eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6778$as_echo "$ac_try_echo") >&5
6779 (eval "$ac_link") 2>conftest.er1
6780 ac_status=$?
6781 grep -v '^ *+' conftest.er1 >conftest.err
6782 rm -f conftest.er1
6783 cat conftest.err >&5
6784 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785 (exit $ac_status); } && {
6786 test -z "$ac_c_werror_flag" ||
6787 test ! -s conftest.err
6788 } && test -s conftest$ac_exeext && {
6789 test "$cross_compiling" = yes ||
6790 $as_test_x conftest$ac_exeext
6791 }; then
6792 lt_cv_ld_exported_symbols_list=yes
6793else
6794 $as_echo "$as_me: failed program was:" >&5
6795sed 's/^/| /' conftest.$ac_ext >&5
6796
6797 lt_cv_ld_exported_symbols_list=no
6798fi
6799
6800rm -rf conftest.dSYM
6801rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6802 conftest$ac_exeext conftest.$ac_ext
6803 LDFLAGS="$save_LDFLAGS"
6804
6805fi
6806{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6807$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6808 case $host_os in
6809 rhapsody* | darwin1.[012])
6810 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6811 darwin1.*)
6812 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6813 darwin*) # darwin 5.x on
6814 # if running on 10.5 or later, the deployment target defaults
6815 # to the OS version, if on x86, and 10.4, the deployment
6816 # target defaults to 10.4. Don't you love it?
6817 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6818 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6819 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6820 10.[012]*)
6821 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6822 10.*)
6823 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6824 esac
6825 ;;
6826 esac
6827 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6828 _lt_dar_single_mod='$single_module'
6829 fi
6830 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6831 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6832 else
6833 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6834 fi
6835 if test "$DSYMUTIL" != ":"; then
6836 _lt_dsymutil='~$DSYMUTIL $lib || :'
6837 else
6838 _lt_dsymutil=
6839 fi
6840 ;;
6841 esac
6842
6843ac_ext=c
6844ac_cpp='$CPP $CPPFLAGS'
6845ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6846ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6847ac_compiler_gnu=$ac_cv_c_compiler_gnu
6848{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6849$as_echo_n "checking how to run the C preprocessor... " >&6; }
6850# On Suns, sometimes $CPP names a directory.
6851if test -n "$CPP" && test -d "$CPP"; then
6852 CPP=
6853fi
6854if test -z "$CPP"; then
6855 if test "${ac_cv_prog_CPP+set}" = set; then
6856 $as_echo_n "(cached) " >&6
6857else
6858 # Double quotes because CPP needs to be expanded
6859 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6860 do
6861 ac_preproc_ok=false
6862for ac_c_preproc_warn_flag in '' yes
6863do
6864 # Use a header file that comes with gcc, so configuring glibc
6865 # with a fresh cross-compiler works.
6866 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6867 # <limits.h> exists even on freestanding compilers.
6868 # On the NeXT, cc -E runs the code through the compiler's parser,
6869 # not just through cpp. "Syntax error" is here to catch this case.
6870 cat >conftest.$ac_ext <<_ACEOF
6871/* confdefs.h. */
6872_ACEOF
6873cat confdefs.h >>conftest.$ac_ext
6874cat >>conftest.$ac_ext <<_ACEOF
6875/* end confdefs.h. */
6876#ifdef __STDC__
6877# include <limits.h>
6878#else
6879# include <assert.h>
6880#endif
6881 Syntax error
6882_ACEOF
6883if { (ac_try="$ac_cpp conftest.$ac_ext"
6884case "(($ac_try" in
6885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6886 *) ac_try_echo=$ac_try;;
6887esac
6888eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6889$as_echo "$ac_try_echo") >&5
6890 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6891 ac_status=$?
6892 grep -v '^ *+' conftest.er1 >conftest.err
6893 rm -f conftest.er1
6894 cat conftest.err >&5
6895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); } >/dev/null && {
6897 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6898 test ! -s conftest.err
6899 }; then
6900 :
6901else
6902 $as_echo "$as_me: failed program was:" >&5
6903sed 's/^/| /' conftest.$ac_ext >&5
6904
6905 # Broken: fails on valid input.
6906continue
6907fi
6908
6909rm -f conftest.err conftest.$ac_ext
6910
6911 # OK, works on sane cases. Now check whether nonexistent headers
6912 # can be detected and how.
6913 cat >conftest.$ac_ext <<_ACEOF
6914/* confdefs.h. */
6915_ACEOF
6916cat confdefs.h >>conftest.$ac_ext
6917cat >>conftest.$ac_ext <<_ACEOF
6918/* end confdefs.h. */
6919#include <ac_nonexistent.h>
6920_ACEOF
6921if { (ac_try="$ac_cpp conftest.$ac_ext"
6922case "(($ac_try" in
6923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6924 *) ac_try_echo=$ac_try;;
6925esac
6926eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6927$as_echo "$ac_try_echo") >&5
6928 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6929 ac_status=$?
6930 grep -v '^ *+' conftest.er1 >conftest.err
6931 rm -f conftest.er1
6932 cat conftest.err >&5
6933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934 (exit $ac_status); } >/dev/null && {
6935 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6936 test ! -s conftest.err
6937 }; then
6938 # Broken: success on invalid input.
6939continue
6940else
6941 $as_echo "$as_me: failed program was:" >&5
6942sed 's/^/| /' conftest.$ac_ext >&5
6943
6944 # Passes both tests.
6945ac_preproc_ok=:
6946break
6947fi
6948
6949rm -f conftest.err conftest.$ac_ext
6950
6951done
6952# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6953rm -f conftest.err conftest.$ac_ext
6954if $ac_preproc_ok; then
6955 break
6956fi
6957
6958 done
6959 ac_cv_prog_CPP=$CPP
6960
6961fi
6962 CPP=$ac_cv_prog_CPP
6963else
6964 ac_cv_prog_CPP=$CPP
6965fi
6966{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
6967$as_echo "$CPP" >&6; }
6968ac_preproc_ok=false
6969for ac_c_preproc_warn_flag in '' yes
6970do
6971 # Use a header file that comes with gcc, so configuring glibc
6972 # with a fresh cross-compiler works.
6973 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6974 # <limits.h> exists even on freestanding compilers.
6975 # On the NeXT, cc -E runs the code through the compiler's parser,
6976 # not just through cpp. "Syntax error" is here to catch this case.
6977 cat >conftest.$ac_ext <<_ACEOF
6978/* confdefs.h. */
6979_ACEOF
6980cat confdefs.h >>conftest.$ac_ext
6981cat >>conftest.$ac_ext <<_ACEOF
6982/* end confdefs.h. */
6983#ifdef __STDC__
6984# include <limits.h>
6985#else
6986# include <assert.h>
6987#endif
6988 Syntax error
6989_ACEOF
6990if { (ac_try="$ac_cpp conftest.$ac_ext"
6991case "(($ac_try" in
6992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6993 *) ac_try_echo=$ac_try;;
6994esac
6995eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6996$as_echo "$ac_try_echo") >&5
6997 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6998 ac_status=$?
6999 grep -v '^ *+' conftest.er1 >conftest.err
7000 rm -f conftest.er1
7001 cat conftest.err >&5
7002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003 (exit $ac_status); } >/dev/null && {
7004 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7005 test ! -s conftest.err
7006 }; then
7007 :
7008else
7009 $as_echo "$as_me: failed program was:" >&5
7010sed 's/^/| /' conftest.$ac_ext >&5
7011
7012 # Broken: fails on valid input.
7013continue
7014fi
7015
7016rm -f conftest.err conftest.$ac_ext
7017
7018 # OK, works on sane cases. Now check whether nonexistent headers
7019 # can be detected and how.
7020 cat >conftest.$ac_ext <<_ACEOF
7021/* confdefs.h. */
7022_ACEOF
7023cat confdefs.h >>conftest.$ac_ext
7024cat >>conftest.$ac_ext <<_ACEOF
7025/* end confdefs.h. */
7026#include <ac_nonexistent.h>
7027_ACEOF
7028if { (ac_try="$ac_cpp conftest.$ac_ext"
7029case "(($ac_try" in
7030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7031 *) ac_try_echo=$ac_try;;
7032esac
7033eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7034$as_echo "$ac_try_echo") >&5
7035 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7036 ac_status=$?
7037 grep -v '^ *+' conftest.er1 >conftest.err
7038 rm -f conftest.er1
7039 cat conftest.err >&5
7040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7041 (exit $ac_status); } >/dev/null && {
7042 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7043 test ! -s conftest.err
7044 }; then
7045 # Broken: success on invalid input.
7046continue
7047else
7048 $as_echo "$as_me: failed program was:" >&5
7049sed 's/^/| /' conftest.$ac_ext >&5
7050
7051 # Passes both tests.
7052ac_preproc_ok=:
7053break
7054fi
7055
7056rm -f conftest.err conftest.$ac_ext
7057
7058done
7059# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7060rm -f conftest.err conftest.$ac_ext
7061if $ac_preproc_ok; then
7062 :
7063else
7064 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7065$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7066{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7067See \`config.log' for more details." >&5
7068$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7069See \`config.log' for more details." >&2;}
7070 { (exit 1); exit 1; }; }; }
7071fi
7072
7073ac_ext=c
7074ac_cpp='$CPP $CPPFLAGS'
7075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7077ac_compiler_gnu=$ac_cv_c_compiler_gnu
7078
7079
7080{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7081$as_echo_n "checking for ANSI C header files... " >&6; }
7082if test "${ac_cv_header_stdc+set}" = set; then
7083 $as_echo_n "(cached) " >&6
7084else
7085 cat >conftest.$ac_ext <<_ACEOF
7086/* confdefs.h. */
7087_ACEOF
7088cat confdefs.h >>conftest.$ac_ext
7089cat >>conftest.$ac_ext <<_ACEOF
7090/* end confdefs.h. */
7091#include <stdlib.h>
7092#include <stdarg.h>
7093#include <string.h>
7094#include <float.h>
7095
7096int
7097main ()
7098{
7099
7100 ;
7101 return 0;
7102}
7103_ACEOF
7104rm -f conftest.$ac_objext
7105if { (ac_try="$ac_compile"
7106case "(($ac_try" in
7107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7108 *) ac_try_echo=$ac_try;;
7109esac
7110eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7111$as_echo "$ac_try_echo") >&5
7112 (eval "$ac_compile") 2>conftest.er1
7113 ac_status=$?
7114 grep -v '^ *+' conftest.er1 >conftest.err
7115 rm -f conftest.er1
7116 cat conftest.err >&5
7117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118 (exit $ac_status); } && {
7119 test -z "$ac_c_werror_flag" ||
7120 test ! -s conftest.err
7121 } && test -s conftest.$ac_objext; then
7122 ac_cv_header_stdc=yes
7123else
7124 $as_echo "$as_me: failed program was:" >&5
7125sed 's/^/| /' conftest.$ac_ext >&5
7126
7127 ac_cv_header_stdc=no
7128fi
7129
7130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7131
7132if test $ac_cv_header_stdc = yes; then
7133 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7134 cat >conftest.$ac_ext <<_ACEOF
7135/* confdefs.h. */
7136_ACEOF
7137cat confdefs.h >>conftest.$ac_ext
7138cat >>conftest.$ac_ext <<_ACEOF
7139/* end confdefs.h. */
7140#include <string.h>
7141
7142_ACEOF
7143if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7144 $EGREP "memchr" >/dev/null 2>&1; then
7145 :
7146else
7147 ac_cv_header_stdc=no
7148fi
7149rm -f conftest*
7150
7151fi
7152
7153if test $ac_cv_header_stdc = yes; then
7154 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7155 cat >conftest.$ac_ext <<_ACEOF
7156/* confdefs.h. */
7157_ACEOF
7158cat confdefs.h >>conftest.$ac_ext
7159cat >>conftest.$ac_ext <<_ACEOF
7160/* end confdefs.h. */
7161#include <stdlib.h>
7162
7163_ACEOF
7164if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7165 $EGREP "free" >/dev/null 2>&1; then
7166 :
7167else
7168 ac_cv_header_stdc=no
7169fi
7170rm -f conftest*
7171
7172fi
7173
7174if test $ac_cv_header_stdc = yes; then
7175 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7176 if test "$cross_compiling" = yes; then
7177 :
7178else
7179 cat >conftest.$ac_ext <<_ACEOF
7180/* confdefs.h. */
7181_ACEOF
7182cat confdefs.h >>conftest.$ac_ext
7183cat >>conftest.$ac_ext <<_ACEOF
7184/* end confdefs.h. */
7185#include <ctype.h>
7186#include <stdlib.h>
7187#if ((' ' & 0x0FF) == 0x020)
7188# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7189# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7190#else
7191# define ISLOWER(c) \
7192 (('a' <= (c) && (c) <= 'i') \
7193 || ('j' <= (c) && (c) <= 'r') \
7194 || ('s' <= (c) && (c) <= 'z'))
7195# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7196#endif
7197
7198#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7199int
7200main ()
7201{
7202 int i;
7203 for (i = 0; i < 256; i++)
7204 if (XOR (islower (i), ISLOWER (i))
7205 || toupper (i) != TOUPPER (i))
7206 return 2;
7207 return 0;
7208}
7209_ACEOF
7210rm -f conftest$ac_exeext
7211if { (ac_try="$ac_link"
7212case "(($ac_try" in
7213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7214 *) ac_try_echo=$ac_try;;
7215esac
7216eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7217$as_echo "$ac_try_echo") >&5
7218 (eval "$ac_link") 2>&5
7219 ac_status=$?
7220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7222 { (case "(($ac_try" in
7223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7224 *) ac_try_echo=$ac_try;;
7225esac
7226eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7227$as_echo "$ac_try_echo") >&5
7228 (eval "$ac_try") 2>&5
7229 ac_status=$?
7230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231 (exit $ac_status); }; }; then
7232 :
7233else
7234 $as_echo "$as_me: program exited with status $ac_status" >&5
7235$as_echo "$as_me: failed program was:" >&5
7236sed 's/^/| /' conftest.$ac_ext >&5
7237
7238( exit $ac_status )
7239ac_cv_header_stdc=no
7240fi
7241rm -rf conftest.dSYM
7242rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7243fi
7244
7245
7246fi
7247fi
7248{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7249$as_echo "$ac_cv_header_stdc" >&6; }
7250if test $ac_cv_header_stdc = yes; then
7251
7252cat >>confdefs.h <<\_ACEOF
7253#define STDC_HEADERS 1
7254_ACEOF
7255
7256fi
7257
7258# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7269 inttypes.h stdint.h unistd.h
7270do
7271as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7272{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7273$as_echo_n "checking for $ac_header... " >&6; }
7274if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7275 $as_echo_n "(cached) " >&6
7276else
7277 cat >conftest.$ac_ext <<_ACEOF
7278/* confdefs.h. */
7279_ACEOF
7280cat confdefs.h >>conftest.$ac_ext
7281cat >>conftest.$ac_ext <<_ACEOF
7282/* end confdefs.h. */
7283$ac_includes_default
7284
7285#include <$ac_header>
7286_ACEOF
7287rm -f conftest.$ac_objext
7288if { (ac_try="$ac_compile"
7289case "(($ac_try" in
7290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7291 *) ac_try_echo=$ac_try;;
7292esac
7293eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7294$as_echo "$ac_try_echo") >&5
7295 (eval "$ac_compile") 2>conftest.er1
7296 ac_status=$?
7297 grep -v '^ *+' conftest.er1 >conftest.err
7298 rm -f conftest.er1
7299 cat conftest.err >&5
7300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301 (exit $ac_status); } && {
7302 test -z "$ac_c_werror_flag" ||
7303 test ! -s conftest.err
7304 } && test -s conftest.$ac_objext; then
7305 eval "$as_ac_Header=yes"
7306else
7307 $as_echo "$as_me: failed program was:" >&5
7308sed 's/^/| /' conftest.$ac_ext >&5
7309
7310 eval "$as_ac_Header=no"
7311fi
7312
7313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7314fi
7315ac_res=`eval 'as_val=${'$as_ac_Header'}
7316 $as_echo "$as_val"'`
7317 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7318$as_echo "$ac_res" >&6; }
7319as_val=`eval 'as_val=${'$as_ac_Header'}
7320 $as_echo "$as_val"'`
7321 if test "x$as_val" = x""yes; then
7322 cat >>confdefs.h <<_ACEOF
7323#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7324_ACEOF
7325
7326fi
7327
7328done
7329
7330
7331
7332for ac_header in dlfcn.h
7333do
7334as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7335{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7336$as_echo_n "checking for $ac_header... " >&6; }
7337if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7338 $as_echo_n "(cached) " >&6
7339else
7340 cat >conftest.$ac_ext <<_ACEOF
7341/* confdefs.h. */
7342_ACEOF
7343cat confdefs.h >>conftest.$ac_ext
7344cat >>conftest.$ac_ext <<_ACEOF
7345/* end confdefs.h. */
7346$ac_includes_default
7347
7348#include <$ac_header>
7349_ACEOF
7350rm -f conftest.$ac_objext
7351if { (ac_try="$ac_compile"
7352case "(($ac_try" in
7353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7354 *) ac_try_echo=$ac_try;;
7355esac
7356eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7357$as_echo "$ac_try_echo") >&5
7358 (eval "$ac_compile") 2>conftest.er1
7359 ac_status=$?
7360 grep -v '^ *+' conftest.er1 >conftest.err
7361 rm -f conftest.er1
7362 cat conftest.err >&5
7363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); } && {
7365 test -z "$ac_c_werror_flag" ||
7366 test ! -s conftest.err
7367 } && test -s conftest.$ac_objext; then
7368 eval "$as_ac_Header=yes"
7369else
7370 $as_echo "$as_me: failed program was:" >&5
7371sed 's/^/| /' conftest.$ac_ext >&5
7372
7373 eval "$as_ac_Header=no"
7374fi
7375
7376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7377fi
7378ac_res=`eval 'as_val=${'$as_ac_Header'}
7379 $as_echo "$as_val"'`
7380 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7381$as_echo "$ac_res" >&6; }
7382as_val=`eval 'as_val=${'$as_ac_Header'}
7383 $as_echo "$as_val"'`
7384 if test "x$as_val" = x""yes; then
7385 cat >>confdefs.h <<_ACEOF
7386#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7387_ACEOF
7388
7389fi
7390
7391done
7392
7393
7394
7395ac_ext=cpp
7396ac_cpp='$CXXCPP $CPPFLAGS'
7397ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7398ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7399ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7400if test -z "$CXX"; then
7401 if test -n "$CCC"; then
7402 CXX=$CCC
7403 else
7404 if test -n "$ac_tool_prefix"; then
7405 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7406 do
7407 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7408set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7409{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7410$as_echo_n "checking for $ac_word... " >&6; }
7411if test "${ac_cv_prog_CXX+set}" = set; then
7412 $as_echo_n "(cached) " >&6
7413else
7414 if test -n "$CXX"; then
7415 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7416else
7417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7418for as_dir in $PATH
7419do
7420 IFS=$as_save_IFS
7421 test -z "$as_dir" && as_dir=.
7422 for ac_exec_ext in '' $ac_executable_extensions; do
7423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7424 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7425 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7426 break 2
7427 fi
7428done
7429done
7430IFS=$as_save_IFS
7431
7432fi
7433fi
7434CXX=$ac_cv_prog_CXX
7435if test -n "$CXX"; then
7436 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
7437$as_echo "$CXX" >&6; }
7438else
7439 { $as_echo "$as_me:$LINENO: result: no" >&5
7440$as_echo "no" >&6; }
7441fi
7442
7443
7444 test -n "$CXX" && break
7445 done
7446fi
7447if test -z "$CXX"; then
7448 ac_ct_CXX=$CXX
7449 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7450do
7451 # Extract the first word of "$ac_prog", so it can be a program name with args.
7452set dummy $ac_prog; ac_word=$2
7453{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7454$as_echo_n "checking for $ac_word... " >&6; }
7455if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7456 $as_echo_n "(cached) " >&6
7457else
7458 if test -n "$ac_ct_CXX"; then
7459 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7460else
7461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7462for as_dir in $PATH
7463do
7464 IFS=$as_save_IFS
7465 test -z "$as_dir" && as_dir=.
7466 for ac_exec_ext in '' $ac_executable_extensions; do
7467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7468 ac_cv_prog_ac_ct_CXX="$ac_prog"
7469 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7470 break 2
7471 fi
7472done
7473done
7474IFS=$as_save_IFS
7475
7476fi
7477fi
7478ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7479if test -n "$ac_ct_CXX"; then
7480 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7481$as_echo "$ac_ct_CXX" >&6; }
7482else
7483 { $as_echo "$as_me:$LINENO: result: no" >&5
7484$as_echo "no" >&6; }
7485fi
7486
7487
7488 test -n "$ac_ct_CXX" && break
7489done
7490
7491 if test "x$ac_ct_CXX" = x; then
7492 CXX="g++"
7493 else
7494 case $cross_compiling:$ac_tool_warned in
7495yes:)
7496{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7497$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7498ac_tool_warned=yes ;;
7499esac
7500 CXX=$ac_ct_CXX
7501 fi
7502fi
7503
7504 fi
7505fi
7506# Provide some information about the compiler.
7507$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
7508set X $ac_compile
7509ac_compiler=$2
7510{ (ac_try="$ac_compiler --version >&5"
7511case "(($ac_try" in
7512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7513 *) ac_try_echo=$ac_try;;
7514esac
7515eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7516$as_echo "$ac_try_echo") >&5
7517 (eval "$ac_compiler --version >&5") 2>&5
7518 ac_status=$?
7519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520 (exit $ac_status); }
7521{ (ac_try="$ac_compiler -v >&5"
7522case "(($ac_try" in
7523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7524 *) ac_try_echo=$ac_try;;
7525esac
7526eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7527$as_echo "$ac_try_echo") >&5
7528 (eval "$ac_compiler -v >&5") 2>&5
7529 ac_status=$?
7530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531 (exit $ac_status); }
7532{ (ac_try="$ac_compiler -V >&5"
7533case "(($ac_try" in
7534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7535 *) ac_try_echo=$ac_try;;
7536esac
7537eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7538$as_echo "$ac_try_echo") >&5
7539 (eval "$ac_compiler -V >&5") 2>&5
7540 ac_status=$?
7541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542 (exit $ac_status); }
7543
7544{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7545$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7546if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7547 $as_echo_n "(cached) " >&6
7548else
7549 cat >conftest.$ac_ext <<_ACEOF
7550/* confdefs.h. */
7551_ACEOF
7552cat confdefs.h >>conftest.$ac_ext
7553cat >>conftest.$ac_ext <<_ACEOF
7554/* end confdefs.h. */
7555
7556int
7557main ()
7558{
7559#ifndef __GNUC__
7560 choke me
7561#endif
7562
7563 ;
7564 return 0;
7565}
7566_ACEOF
7567rm -f conftest.$ac_objext
7568if { (ac_try="$ac_compile"
7569case "(($ac_try" in
7570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7571 *) ac_try_echo=$ac_try;;
7572esac
7573eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7574$as_echo "$ac_try_echo") >&5
7575 (eval "$ac_compile") 2>conftest.er1
7576 ac_status=$?
7577 grep -v '^ *+' conftest.er1 >conftest.err
7578 rm -f conftest.er1
7579 cat conftest.err >&5
7580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581 (exit $ac_status); } && {
7582 test -z "$ac_cxx_werror_flag" ||
7583 test ! -s conftest.err
7584 } && test -s conftest.$ac_objext; then
7585 ac_compiler_gnu=yes
7586else
7587 $as_echo "$as_me: failed program was:" >&5
7588sed 's/^/| /' conftest.$ac_ext >&5
7589
7590 ac_compiler_gnu=no
7591fi
7592
7593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7594ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7595
7596fi
7597{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7598$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7599if test $ac_compiler_gnu = yes; then
7600 GXX=yes
7601else
7602 GXX=
7603fi
7604ac_test_CXXFLAGS=${CXXFLAGS+set}
7605ac_save_CXXFLAGS=$CXXFLAGS
7606{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7607$as_echo_n "checking whether $CXX accepts -g... " >&6; }
7608if test "${ac_cv_prog_cxx_g+set}" = set; then
7609 $as_echo_n "(cached) " >&6
7610else
7611 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7612 ac_cxx_werror_flag=yes
7613 ac_cv_prog_cxx_g=no
7614 CXXFLAGS="-g"
7615 cat >conftest.$ac_ext <<_ACEOF
7616/* confdefs.h. */
7617_ACEOF
7618cat confdefs.h >>conftest.$ac_ext
7619cat >>conftest.$ac_ext <<_ACEOF
7620/* end confdefs.h. */
7621
7622int
7623main ()
7624{
7625
7626 ;
7627 return 0;
7628}
7629_ACEOF
7630rm -f conftest.$ac_objext
7631if { (ac_try="$ac_compile"
7632case "(($ac_try" in
7633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7634 *) ac_try_echo=$ac_try;;
7635esac
7636eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7637$as_echo "$ac_try_echo") >&5
7638 (eval "$ac_compile") 2>conftest.er1
7639 ac_status=$?
7640 grep -v '^ *+' conftest.er1 >conftest.err
7641 rm -f conftest.er1
7642 cat conftest.err >&5
7643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644 (exit $ac_status); } && {
7645 test -z "$ac_cxx_werror_flag" ||
7646 test ! -s conftest.err
7647 } && test -s conftest.$ac_objext; then
7648 ac_cv_prog_cxx_g=yes
7649else
7650 $as_echo "$as_me: failed program was:" >&5
7651sed 's/^/| /' conftest.$ac_ext >&5
7652
7653 CXXFLAGS=""
7654 cat >conftest.$ac_ext <<_ACEOF
7655/* confdefs.h. */
7656_ACEOF
7657cat confdefs.h >>conftest.$ac_ext
7658cat >>conftest.$ac_ext <<_ACEOF
7659/* end confdefs.h. */
7660
7661int
7662main ()
7663{
7664
7665 ;
7666 return 0;
7667}
7668_ACEOF
7669rm -f conftest.$ac_objext
7670if { (ac_try="$ac_compile"
7671case "(($ac_try" in
7672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7673 *) ac_try_echo=$ac_try;;
7674esac
7675eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7676$as_echo "$ac_try_echo") >&5
7677 (eval "$ac_compile") 2>conftest.er1
7678 ac_status=$?
7679 grep -v '^ *+' conftest.er1 >conftest.err
7680 rm -f conftest.er1
7681 cat conftest.err >&5
7682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7683 (exit $ac_status); } && {
7684 test -z "$ac_cxx_werror_flag" ||
7685 test ! -s conftest.err
7686 } && test -s conftest.$ac_objext; then
7687 :
7688else
7689 $as_echo "$as_me: failed program was:" >&5
7690sed 's/^/| /' conftest.$ac_ext >&5
7691
7692 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7693 CXXFLAGS="-g"
7694 cat >conftest.$ac_ext <<_ACEOF
7695/* confdefs.h. */
7696_ACEOF
7697cat confdefs.h >>conftest.$ac_ext
7698cat >>conftest.$ac_ext <<_ACEOF
7699/* end confdefs.h. */
7700
7701int
7702main ()
7703{
7704
7705 ;
7706 return 0;
7707}
7708_ACEOF
7709rm -f conftest.$ac_objext
7710if { (ac_try="$ac_compile"
7711case "(($ac_try" in
7712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7713 *) ac_try_echo=$ac_try;;
7714esac
7715eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7716$as_echo "$ac_try_echo") >&5
7717 (eval "$ac_compile") 2>conftest.er1
7718 ac_status=$?
7719 grep -v '^ *+' conftest.er1 >conftest.err
7720 rm -f conftest.er1
7721 cat conftest.err >&5
7722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723 (exit $ac_status); } && {
7724 test -z "$ac_cxx_werror_flag" ||
7725 test ! -s conftest.err
7726 } && test -s conftest.$ac_objext; then
7727 ac_cv_prog_cxx_g=yes
7728else
7729 $as_echo "$as_me: failed program was:" >&5
7730sed 's/^/| /' conftest.$ac_ext >&5
7731
7732
7733fi
7734
7735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7736fi
7737
7738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7739fi
7740
7741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7742 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7743fi
7744{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7745$as_echo "$ac_cv_prog_cxx_g" >&6; }
7746if test "$ac_test_CXXFLAGS" = set; then
7747 CXXFLAGS=$ac_save_CXXFLAGS
7748elif test $ac_cv_prog_cxx_g = yes; then
7749 if test "$GXX" = yes; then
7750 CXXFLAGS="-g -O2"
7751 else
7752 CXXFLAGS="-g"
7753 fi
7754else
7755 if test "$GXX" = yes; then
7756 CXXFLAGS="-O2"
7757 else
7758 CXXFLAGS=
7759 fi
7760fi
7761ac_ext=c
7762ac_cpp='$CPP $CPPFLAGS'
7763ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7764ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7765ac_compiler_gnu=$ac_cv_c_compiler_gnu
7766
7767depcc="$CXX" am_compiler_list=
7768
7769{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7770$as_echo_n "checking dependency style of $depcc... " >&6; }
7771if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
7772 $as_echo_n "(cached) " >&6
7773else
7774 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7775 # We make a subdir and do the tests there. Otherwise we can end up
7776 # making bogus files that we don't know about and never remove. For
7777 # instance it was reported that on HP-UX the gcc test will end up
7778 # making a dummy file named `D' -- because `-MD' means `put the output
7779 # in D'.
7780 mkdir conftest.dir
7781 # Copy depcomp to subdir because otherwise we won't find it if we're
7782 # using a relative directory.
7783 cp "$am_depcomp" conftest.dir
7784 cd conftest.dir
7785 # We will build objects and dependencies in a subdirectory because
7786 # it helps to detect inapplicable dependency modes. For instance
7787 # both Tru64's cc and ICC support -MD to output dependencies as a
7788 # side effect of compilation, but ICC will put the dependencies in
7789 # the current directory while Tru64 will put them in the object
7790 # directory.
7791 mkdir sub
7792
7793 am_cv_CXX_dependencies_compiler_type=none
7794 if test "$am_compiler_list" = ""; then
7795 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7796 fi
7797 for depmode in $am_compiler_list; do
7798 # Setup a source with many dependencies, because some compilers
7799 # like to wrap large dependency lists on column 80 (with \), and
7800 # we should not choose a depcomp mode which is confused by this.
7801 #
7802 # We need to recreate these files for each test, as the compiler may
7803 # overwrite some of them when testing with obscure command lines.
7804 # This happens at least with the AIX C compiler.
7805 : > sub/conftest.c
7806 for i in 1 2 3 4 5 6; do
7807 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7808 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7809 # Solaris 8's {/usr,}/bin/sh.
7810 touch sub/conftst$i.h
7811 done
7812 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7813
7814 case $depmode in
7815 nosideeffect)
7816 # after this tag, mechanisms are not by side-effect, so they'll
7817 # only be used when explicitly requested
7818 if test "x$enable_dependency_tracking" = xyes; then
7819 continue
7820 else
7821 break
7822 fi
7823 ;;
7824 none) break ;;
7825 esac
7826 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7827 # mode. It turns out that the SunPro C++ compiler does not properly
7828 # handle `-M -o', and we need to detect this.
7829 if depmode=$depmode \
7830 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7831 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7832 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7833 >/dev/null 2>conftest.err &&
7834 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7835 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7836 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7837 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7838 # icc doesn't choke on unknown options, it will just issue warnings
7839 # or remarks (even with -Werror). So we grep stderr for any message
7840 # that says an option was ignored or not supported.
7841 # When given -MP, icc 7.0 and 7.1 complain thusly:
7842 # icc: Command line warning: ignoring option '-M'; no argument required
7843 # The diagnosis changed in icc 8.0:
7844 # icc: Command line remark: option '-MP' not supported
7845 if (grep 'ignoring option' conftest.err ||
7846 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7847 am_cv_CXX_dependencies_compiler_type=$depmode
7848 break
7849 fi
7850 fi
7851 done
7852
7853 cd ..
7854 rm -rf conftest.dir
7855else
7856 am_cv_CXX_dependencies_compiler_type=none
7857fi
7858
7859fi
7860{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7861$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7862CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7863
7864 if
7865 test "x$enable_dependency_tracking" != xno \
7866 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7867 am__fastdepCXX_TRUE=
7868 am__fastdepCXX_FALSE='#'
7869else
7870 am__fastdepCXX_TRUE='#'
7871 am__fastdepCXX_FALSE=
7872fi
7873
7874
7875if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7876 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7877 (test "X$CXX" != "Xg++"))) ; then
7878 ac_ext=cpp
7879ac_cpp='$CXXCPP $CPPFLAGS'
7880ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7881ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7882ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7883{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7884$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
7885if test -z "$CXXCPP"; then
7886 if test "${ac_cv_prog_CXXCPP+set}" = set; then
7887 $as_echo_n "(cached) " >&6
7888else
7889 # Double quotes because CXXCPP needs to be expanded
7890 for CXXCPP in "$CXX -E" "/lib/cpp"
7891 do
7892 ac_preproc_ok=false
7893for ac_cxx_preproc_warn_flag in '' yes
7894do
7895 # Use a header file that comes with gcc, so configuring glibc
7896 # with a fresh cross-compiler works.
7897 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7898 # <limits.h> exists even on freestanding compilers.
7899 # On the NeXT, cc -E runs the code through the compiler's parser,
7900 # not just through cpp. "Syntax error" is here to catch this case.
7901 cat >conftest.$ac_ext <<_ACEOF
7902/* confdefs.h. */
7903_ACEOF
7904cat confdefs.h >>conftest.$ac_ext
7905cat >>conftest.$ac_ext <<_ACEOF
7906/* end confdefs.h. */
7907#ifdef __STDC__
7908# include <limits.h>
7909#else
7910# include <assert.h>
7911#endif
7912 Syntax error
7913_ACEOF
7914if { (ac_try="$ac_cpp conftest.$ac_ext"
7915case "(($ac_try" in
7916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7917 *) ac_try_echo=$ac_try;;
7918esac
7919eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7920$as_echo "$ac_try_echo") >&5
7921 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7922 ac_status=$?
7923 grep -v '^ *+' conftest.er1 >conftest.err
7924 rm -f conftest.er1
7925 cat conftest.err >&5
7926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927 (exit $ac_status); } >/dev/null && {
7928 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7929 test ! -s conftest.err
7930 }; then
7931 :
7932else
7933 $as_echo "$as_me: failed program was:" >&5
7934sed 's/^/| /' conftest.$ac_ext >&5
7935
7936 # Broken: fails on valid input.
7937continue
7938fi
7939
7940rm -f conftest.err conftest.$ac_ext
7941
7942 # OK, works on sane cases. Now check whether nonexistent headers
7943 # can be detected and how.
7944 cat >conftest.$ac_ext <<_ACEOF
7945/* confdefs.h. */
7946_ACEOF
7947cat confdefs.h >>conftest.$ac_ext
7948cat >>conftest.$ac_ext <<_ACEOF
7949/* end confdefs.h. */
7950#include <ac_nonexistent.h>
7951_ACEOF
7952if { (ac_try="$ac_cpp conftest.$ac_ext"
7953case "(($ac_try" in
7954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7955 *) ac_try_echo=$ac_try;;
7956esac
7957eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7958$as_echo "$ac_try_echo") >&5
7959 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7960 ac_status=$?
7961 grep -v '^ *+' conftest.er1 >conftest.err
7962 rm -f conftest.er1
7963 cat conftest.err >&5
7964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965 (exit $ac_status); } >/dev/null && {
7966 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7967 test ! -s conftest.err
7968 }; then
7969 # Broken: success on invalid input.
7970continue
7971else
7972 $as_echo "$as_me: failed program was:" >&5
7973sed 's/^/| /' conftest.$ac_ext >&5
7974
7975 # Passes both tests.
7976ac_preproc_ok=:
7977break
7978fi
7979
7980rm -f conftest.err conftest.$ac_ext
7981
7982done
7983# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7984rm -f conftest.err conftest.$ac_ext
7985if $ac_preproc_ok; then
7986 break
7987fi
7988
7989 done
7990 ac_cv_prog_CXXCPP=$CXXCPP
7991
7992fi
7993 CXXCPP=$ac_cv_prog_CXXCPP
7994else
7995 ac_cv_prog_CXXCPP=$CXXCPP
7996fi
7997{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
7998$as_echo "$CXXCPP" >&6; }
7999ac_preproc_ok=false
8000for ac_cxx_preproc_warn_flag in '' yes
8001do
8002 # Use a header file that comes with gcc, so configuring glibc
8003 # with a fresh cross-compiler works.
8004 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8005 # <limits.h> exists even on freestanding compilers.
8006 # On the NeXT, cc -E runs the code through the compiler's parser,
8007 # not just through cpp. "Syntax error" is here to catch this case.
8008 cat >conftest.$ac_ext <<_ACEOF
8009/* confdefs.h. */
8010_ACEOF
8011cat confdefs.h >>conftest.$ac_ext
8012cat >>conftest.$ac_ext <<_ACEOF
8013/* end confdefs.h. */
8014#ifdef __STDC__
8015# include <limits.h>
8016#else
8017# include <assert.h>
8018#endif
8019 Syntax error
8020_ACEOF
8021if { (ac_try="$ac_cpp conftest.$ac_ext"
8022case "(($ac_try" in
8023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8024 *) ac_try_echo=$ac_try;;
8025esac
8026eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8027$as_echo "$ac_try_echo") >&5
8028 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8029 ac_status=$?
8030 grep -v '^ *+' conftest.er1 >conftest.err
8031 rm -f conftest.er1
8032 cat conftest.err >&5
8033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034 (exit $ac_status); } >/dev/null && {
8035 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8036 test ! -s conftest.err
8037 }; then
8038 :
8039else
8040 $as_echo "$as_me: failed program was:" >&5
8041sed 's/^/| /' conftest.$ac_ext >&5
8042
8043 # Broken: fails on valid input.
8044continue
8045fi
8046
8047rm -f conftest.err conftest.$ac_ext
8048
8049 # OK, works on sane cases. Now check whether nonexistent headers
8050 # can be detected and how.
8051 cat >conftest.$ac_ext <<_ACEOF
8052/* confdefs.h. */
8053_ACEOF
8054cat confdefs.h >>conftest.$ac_ext
8055cat >>conftest.$ac_ext <<_ACEOF
8056/* end confdefs.h. */
8057#include <ac_nonexistent.h>
8058_ACEOF
8059if { (ac_try="$ac_cpp conftest.$ac_ext"
8060case "(($ac_try" in
8061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8062 *) ac_try_echo=$ac_try;;
8063esac
8064eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8065$as_echo "$ac_try_echo") >&5
8066 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8067 ac_status=$?
8068 grep -v '^ *+' conftest.er1 >conftest.err
8069 rm -f conftest.er1
8070 cat conftest.err >&5
8071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072 (exit $ac_status); } >/dev/null && {
8073 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8074 test ! -s conftest.err
8075 }; then
8076 # Broken: success on invalid input.
8077continue
8078else
8079 $as_echo "$as_me: failed program was:" >&5
8080sed 's/^/| /' conftest.$ac_ext >&5
8081
8082 # Passes both tests.
8083ac_preproc_ok=:
8084break
8085fi
8086
8087rm -f conftest.err conftest.$ac_ext
8088
8089done
8090# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8091rm -f conftest.err conftest.$ac_ext
8092if $ac_preproc_ok; then
8093 :
8094else
8095 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8096$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8097_lt_caught_CXX_error=yes; }
8098fi
8099
8100ac_ext=c
8101ac_cpp='$CPP $CPPFLAGS'
8102ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8103ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8104ac_compiler_gnu=$ac_cv_c_compiler_gnu
8105
8106else
8107 _lt_caught_CXX_error=yes
8108fi
8109
8110
8111
8112
8113
8114# Set options
8115
8116
8117
8118 enable_dlopen=no
8119
8120
8121 enable_win32_dll=no
8122
8123
8124 # Check whether --enable-shared was given.
8125if test "${enable_shared+set}" = set; then
8126 enableval=$enable_shared; p=${PACKAGE-default}
8127 case $enableval in
8128 yes) enable_shared=yes ;;
8129 no) enable_shared=no ;;
8130 *)
8131 enable_shared=no
8132 # Look at the argument we got. We use all the common list separators.
8133 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8134 for pkg in $enableval; do
8135 IFS="$lt_save_ifs"
8136 if test "X$pkg" = "X$p"; then
8137 enable_shared=yes
8138 fi
8139 done
8140 IFS="$lt_save_ifs"
8141 ;;
8142 esac
8143else
8144 enable_shared=yes
8145fi
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155 # Check whether --enable-static was given.
8156if test "${enable_static+set}" = set; then
8157 enableval=$enable_static; p=${PACKAGE-default}
8158 case $enableval in
8159 yes) enable_static=yes ;;
8160 no) enable_static=no ;;
8161 *)
8162 enable_static=no
8163 # Look at the argument we got. We use all the common list separators.
8164 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8165 for pkg in $enableval; do
8166 IFS="$lt_save_ifs"
8167 if test "X$pkg" = "X$p"; then
8168 enable_static=yes
8169 fi
8170 done
8171 IFS="$lt_save_ifs"
8172 ;;
8173 esac
8174else
8175 enable_static=yes
8176fi
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187# Check whether --with-pic was given.
8188if test "${with_pic+set}" = set; then
8189 withval=$with_pic; pic_mode="$withval"
8190else
8191 pic_mode=default
8192fi
8193
8194
8195test -z "$pic_mode" && pic_mode=default
8196
8197
8198
8199
8200
8201
8202
8203 # Check whether --enable-fast-install was given.
8204if test "${enable_fast_install+set}" = set; then
8205 enableval=$enable_fast_install; p=${PACKAGE-default}
8206 case $enableval in
8207 yes) enable_fast_install=yes ;;
8208 no) enable_fast_install=no ;;
8209 *)
8210 enable_fast_install=no
8211 # Look at the argument we got. We use all the common list separators.
8212 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8213 for pkg in $enableval; do
8214 IFS="$lt_save_ifs"
8215 if test "X$pkg" = "X$p"; then
8216 enable_fast_install=yes
8217 fi
8218 done
8219 IFS="$lt_save_ifs"
8220 ;;
8221 esac
8222else
8223 enable_fast_install=yes
8224fi
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236# This can be used to rebuild libtool when needed
8237LIBTOOL_DEPS="$ltmain"
8238
8239# Always use our own libtool.
8240LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266test -z "$LN_S" && LN_S="ln -s"
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281if test -n "${ZSH_VERSION+set}" ; then
8282 setopt NO_GLOB_SUBST
8283fi
8284
8285{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
8286$as_echo_n "checking for objdir... " >&6; }
8287if test "${lt_cv_objdir+set}" = set; then
8288 $as_echo_n "(cached) " >&6
8289else
8290 rm -f .libs 2>/dev/null
8291mkdir .libs 2>/dev/null
8292if test -d .libs; then
8293 lt_cv_objdir=.libs
8294else
8295 # MS-DOS does not allow filenames that begin with a dot.
8296 lt_cv_objdir=_libs
8297fi
8298rmdir .libs 2>/dev/null
8299fi
8300{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8301$as_echo "$lt_cv_objdir" >&6; }
8302objdir=$lt_cv_objdir
8303
8304
8305
8306
8307
8308cat >>confdefs.h <<_ACEOF
8309#define LT_OBJDIR "$lt_cv_objdir/"
8310_ACEOF
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328case $host_os in
8329aix3*)
8330 # AIX sometimes has problems with the GCC collect2 program. For some
8331 # reason, if we set the COLLECT_NAMES environment variable, the problems
8332 # vanish in a puff of smoke.
8333 if test "X${COLLECT_NAMES+set}" != Xset; then
8334 COLLECT_NAMES=
8335 export COLLECT_NAMES
8336 fi
8337 ;;
8338esac
8339
8340# Sed substitution that helps us do robust quoting. It backslashifies
8341# metacharacters that are still active within double-quoted strings.
8342sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8343
8344# Same as above, but do not quote variable references.
8345double_quote_subst='s/\(["`\\]\)/\\\1/g'
8346
8347# Sed substitution to delay expansion of an escaped shell variable in a
8348# double_quote_subst'ed string.
8349delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8350
8351# Sed substitution to delay expansion of an escaped single quote.
8352delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8353
8354# Sed substitution to avoid accidental globbing in evaled expressions
8355no_glob_subst='s/\*/\\\*/g'
8356
8357# Global variables:
8358ofile=libtool
8359can_build_shared=yes
8360
8361# All known linkers require a `.a' archive for static linking (except MSVC,
8362# which needs '.lib').
8363libext=a
8364
8365with_gnu_ld="$lt_cv_prog_gnu_ld"
8366
8367old_CC="$CC"
8368old_CFLAGS="$CFLAGS"
8369
8370# Set sane defaults for various variables
8371test -z "$CC" && CC=cc
8372test -z "$LTCC" && LTCC=$CC
8373test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8374test -z "$LD" && LD=ld
8375test -z "$ac_objext" && ac_objext=o
8376
8377for cc_temp in $compiler""; do
8378 case $cc_temp in
8379 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8380 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8381 \-*) ;;
8382 *) break;;
8383 esac
8384done
8385cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8386
8387
8388# Only perform the check for file, if the check method requires it
8389test -z "$MAGIC_CMD" && MAGIC_CMD=file
8390case $deplibs_check_method in
8391file_magic*)
8392 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8393 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8394$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8395if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8396 $as_echo_n "(cached) " >&6
8397else
8398 case $MAGIC_CMD in
8399[\\/*] | ?:[\\/]*)
8400 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8401 ;;
8402*)
8403 lt_save_MAGIC_CMD="$MAGIC_CMD"
8404 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8405 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8406 for ac_dir in $ac_dummy; do
8407 IFS="$lt_save_ifs"
8408 test -z "$ac_dir" && ac_dir=.
8409 if test -f $ac_dir/${ac_tool_prefix}file; then
8410 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8411 if test -n "$file_magic_test_file"; then
8412 case $deplibs_check_method in
8413 "file_magic "*)
8414 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8415 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8416 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8417 $EGREP "$file_magic_regex" > /dev/null; then
8418 :
8419 else
8420 cat <<_LT_EOF 1>&2
8421
8422*** Warning: the command libtool uses to detect shared libraries,
8423*** $file_magic_cmd, produces output that libtool cannot recognize.
8424*** The result is that libtool may fail to recognize shared libraries
8425*** as such. This will affect the creation of libtool libraries that
8426*** depend on shared libraries, but programs linked with such libtool
8427*** libraries will work regardless of this problem. Nevertheless, you
8428*** may want to report the problem to your system manager and/or to
8429*** bug-libtool@gnu.org
8430
8431_LT_EOF
8432 fi ;;
8433 esac
8434 fi
8435 break
8436 fi
8437 done
8438 IFS="$lt_save_ifs"
8439 MAGIC_CMD="$lt_save_MAGIC_CMD"
8440 ;;
8441esac
8442fi
8443
8444MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8445if test -n "$MAGIC_CMD"; then
8446 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8447$as_echo "$MAGIC_CMD" >&6; }
8448else
8449 { $as_echo "$as_me:$LINENO: result: no" >&5
8450$as_echo "no" >&6; }
8451fi
8452
8453
8454
8455
8456
8457if test -z "$lt_cv_path_MAGIC_CMD"; then
8458 if test -n "$ac_tool_prefix"; then
8459 { $as_echo "$as_me:$LINENO: checking for file" >&5
8460$as_echo_n "checking for file... " >&6; }
8461if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8462 $as_echo_n "(cached) " >&6
8463else
8464 case $MAGIC_CMD in
8465[\\/*] | ?:[\\/]*)
8466 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8467 ;;
8468*)
8469 lt_save_MAGIC_CMD="$MAGIC_CMD"
8470 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8471 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8472 for ac_dir in $ac_dummy; do
8473 IFS="$lt_save_ifs"
8474 test -z "$ac_dir" && ac_dir=.
8475 if test -f $ac_dir/file; then
8476 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8477 if test -n "$file_magic_test_file"; then
8478 case $deplibs_check_method in
8479 "file_magic "*)
8480 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8481 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8482 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8483 $EGREP "$file_magic_regex" > /dev/null; then
8484 :
8485 else
8486 cat <<_LT_EOF 1>&2
8487
8488*** Warning: the command libtool uses to detect shared libraries,
8489*** $file_magic_cmd, produces output that libtool cannot recognize.
8490*** The result is that libtool may fail to recognize shared libraries
8491*** as such. This will affect the creation of libtool libraries that
8492*** depend on shared libraries, but programs linked with such libtool
8493*** libraries will work regardless of this problem. Nevertheless, you
8494*** may want to report the problem to your system manager and/or to
8495*** bug-libtool@gnu.org
8496
8497_LT_EOF
8498 fi ;;
8499 esac
8500 fi
8501 break
8502 fi
8503 done
8504 IFS="$lt_save_ifs"
8505 MAGIC_CMD="$lt_save_MAGIC_CMD"
8506 ;;
8507esac
8508fi
8509
8510MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8511if test -n "$MAGIC_CMD"; then
8512 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8513$as_echo "$MAGIC_CMD" >&6; }
8514else
8515 { $as_echo "$as_me:$LINENO: result: no" >&5
8516$as_echo "no" >&6; }
8517fi
8518
8519
8520 else
8521 MAGIC_CMD=:
8522 fi
8523fi
8524
8525 fi
8526 ;;
8527esac
8528
8529# Use C for the default configuration in the libtool script
8530
8531lt_save_CC="$CC"
8532ac_ext=c
8533ac_cpp='$CPP $CPPFLAGS'
8534ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8535ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8536ac_compiler_gnu=$ac_cv_c_compiler_gnu
8537
8538
8539# Source file extension for C test sources.
8540ac_ext=c
8541
8542# Object file extension for compiled C test sources.
8543objext=o
8544objext=$objext
8545
8546# Code to be used in simple compile tests
8547lt_simple_compile_test_code="int some_variable = 0;"
8548
8549# Code to be used in simple link tests
8550lt_simple_link_test_code='int main(){return(0);}'
8551
8552
8553
8554
8555
8556
8557
8558# If no C compiler was specified, use CC.
8559LTCC=${LTCC-"$CC"}
8560
8561# If no C compiler flags were specified, use CFLAGS.
8562LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8563
8564# Allow CC to be a program name with arguments.
8565compiler=$CC
8566
8567# Save the default compiler, since it gets overwritten when the other
8568# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8569compiler_DEFAULT=$CC
8570
8571# save warnings/boilerplate of simple test code
8572ac_outfile=conftest.$ac_objext
8573echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8574eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8575_lt_compiler_boilerplate=`cat conftest.err`
8576$RM conftest*
8577
8578ac_outfile=conftest.$ac_objext
8579echo "$lt_simple_link_test_code" >conftest.$ac_ext
8580eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8581_lt_linker_boilerplate=`cat conftest.err`
8582$RM -r conftest*
8583
8584
8585if test -n "$compiler"; then
8586
8587lt_prog_compiler_no_builtin_flag=
8588
8589if test "$GCC" = yes; then
8590 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8591
8592 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8593$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8594if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8595 $as_echo_n "(cached) " >&6
8596else
8597 lt_cv_prog_compiler_rtti_exceptions=no
8598 ac_outfile=conftest.$ac_objext
8599 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8600 lt_compiler_flag="-fno-rtti -fno-exceptions"
8601 # Insert the option either (1) after the last *FLAGS variable, or
8602 # (2) before a word containing "conftest.", or (3) at the end.
8603 # Note that $ac_compile itself does not contain backslashes and begins
8604 # with a dollar sign (not a hyphen), so the echo should work correctly.
8605 # The option is referenced via a variable to avoid confusing sed.
8606 lt_compile=`echo "$ac_compile" | $SED \
8607 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8608 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8609 -e 's:$: $lt_compiler_flag:'`
Adam Tkaca4c2fae2009-03-12 18:21:41 +00008610 (eval echo "\"\$as_me:8610: $lt_compile\"" >&5)
Adam Tkacfc4cd712009-03-11 11:14:37 +00008611 (eval "$lt_compile" 2>conftest.err)
8612 ac_status=$?
8613 cat conftest.err >&5
Adam Tkaca4c2fae2009-03-12 18:21:41 +00008614 echo "$as_me:8614: \$? = $ac_status" >&5
Adam Tkacfc4cd712009-03-11 11:14:37 +00008615 if (exit $ac_status) && test -s "$ac_outfile"; then
8616 # The compiler can only warn and ignore the option if not recognized
8617 # So say no if there are warnings other than the usual output.
8618 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8619 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8620 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8621 lt_cv_prog_compiler_rtti_exceptions=yes
8622 fi
8623 fi
8624 $RM conftest*
8625
8626fi
8627{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8628$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8629
8630if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8631 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8632else
8633 :
8634fi
8635
8636fi
8637
8638
8639
8640
8641
8642
8643 lt_prog_compiler_wl=
8644lt_prog_compiler_pic=
8645lt_prog_compiler_static=
8646
8647{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8648$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8649
8650 if test "$GCC" = yes; then
8651 lt_prog_compiler_wl='-Wl,'
8652 lt_prog_compiler_static='-static'
8653
8654 case $host_os in
8655 aix*)
8656 # All AIX code is PIC.
8657 if test "$host_cpu" = ia64; then
8658 # AIX 5 now supports IA64 processor
8659 lt_prog_compiler_static='-Bstatic'
8660 fi
8661 ;;
8662
8663 amigaos*)
8664 case $host_cpu in
8665 powerpc)
8666 # see comment about AmigaOS4 .so support
8667 lt_prog_compiler_pic='-fPIC'
8668 ;;
8669 m68k)
8670 # FIXME: we need at least 68020 code to build shared libraries, but
8671 # adding the `-m68020' flag to GCC prevents building anything better,
8672 # like `-m68040'.
8673 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8674 ;;
8675 esac
8676 ;;
8677
8678 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8679 # PIC is the default for these OSes.
8680 ;;
8681
8682 mingw* | cygwin* | pw32* | os2* | cegcc*)
8683 # This hack is so that the source file can tell whether it is being
8684 # built for inclusion in a dll (and should export symbols for example).
8685 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8686 # (--disable-auto-import) libraries
8687 lt_prog_compiler_pic='-DDLL_EXPORT'
8688 ;;
8689
8690 darwin* | rhapsody*)
8691 # PIC is the default on this platform
8692 # Common symbols not allowed in MH_DYLIB files
8693 lt_prog_compiler_pic='-fno-common'
8694 ;;
8695
8696 hpux*)
8697 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8698 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8699 # sets the default TLS model and affects inlining.
8700 case $host_cpu in
8701 hppa*64*)
8702 # +Z the default
8703 ;;
8704 *)
8705 lt_prog_compiler_pic='-fPIC'
8706 ;;
8707 esac
8708 ;;
8709
8710 interix[3-9]*)
8711 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8712 # Instead, we relocate shared libraries at runtime.
8713 ;;
8714
8715 msdosdjgpp*)
8716 # Just because we use GCC doesn't mean we suddenly get shared libraries
8717 # on systems that don't support them.
8718 lt_prog_compiler_can_build_shared=no
8719 enable_shared=no
8720 ;;
8721
8722 *nto* | *qnx*)
8723 # QNX uses GNU C++, but need to define -shared option too, otherwise
8724 # it will coredump.
8725 lt_prog_compiler_pic='-fPIC -shared'
8726 ;;
8727
8728 sysv4*MP*)
8729 if test -d /usr/nec; then
8730 lt_prog_compiler_pic=-Kconform_pic
8731 fi
8732 ;;
8733
8734 *)
8735 lt_prog_compiler_pic='-fPIC'
8736 ;;
8737 esac
8738 else
8739 # PORTME Check for flag to pass linker flags through the system compiler.
8740 case $host_os in
8741 aix*)
8742 lt_prog_compiler_wl='-Wl,'
8743 if test "$host_cpu" = ia64; then
8744 # AIX 5 now supports IA64 processor
8745 lt_prog_compiler_static='-Bstatic'
8746 else
8747 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8748 fi
8749 ;;
8750
8751 mingw* | cygwin* | pw32* | os2* | cegcc*)
8752 # This hack is so that the source file can tell whether it is being
8753 # built for inclusion in a dll (and should export symbols for example).
8754 lt_prog_compiler_pic='-DDLL_EXPORT'
8755 ;;
8756
8757 hpux9* | hpux10* | hpux11*)
8758 lt_prog_compiler_wl='-Wl,'
8759 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8760 # not for PA HP-UX.
8761 case $host_cpu in
8762 hppa*64*|ia64*)
8763 # +Z the default
8764 ;;
8765 *)
8766 lt_prog_compiler_pic='+Z'
8767 ;;
8768 esac
8769 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8770 lt_prog_compiler_static='${wl}-a ${wl}archive'
8771 ;;
8772
8773 irix5* | irix6* | nonstopux*)
8774 lt_prog_compiler_wl='-Wl,'
8775 # PIC (with -KPIC) is the default.
8776 lt_prog_compiler_static='-non_shared'
8777 ;;
8778
8779 linux* | k*bsd*-gnu)
8780 case $cc_basename in
8781 # old Intel for x86_64 which still supported -KPIC.
8782 ecc*)
8783 lt_prog_compiler_wl='-Wl,'
8784 lt_prog_compiler_pic='-KPIC'
8785 lt_prog_compiler_static='-static'
8786 ;;
8787 # icc used to be incompatible with GCC.
8788 # ICC 10 doesn't accept -KPIC any more.
8789 icc* | ifort*)
8790 lt_prog_compiler_wl='-Wl,'
8791 lt_prog_compiler_pic='-fPIC'
8792 lt_prog_compiler_static='-static'
8793 ;;
8794 # Lahey Fortran 8.1.
8795 lf95*)
8796 lt_prog_compiler_wl='-Wl,'
8797 lt_prog_compiler_pic='--shared'
8798 lt_prog_compiler_static='--static'
8799 ;;
8800 pgcc* | pgf77* | pgf90* | pgf95*)
8801 # Portland Group compilers (*not* the Pentium gcc compiler,
8802 # which looks to be a dead project)
8803 lt_prog_compiler_wl='-Wl,'
8804 lt_prog_compiler_pic='-fpic'
8805 lt_prog_compiler_static='-Bstatic'
8806 ;;
8807 ccc*)
8808 lt_prog_compiler_wl='-Wl,'
8809 # All Alpha code is PIC.
8810 lt_prog_compiler_static='-non_shared'
8811 ;;
8812 xl*)
8813 # IBM XL C 8.0/Fortran 10.1 on PPC
8814 lt_prog_compiler_wl='-Wl,'
8815 lt_prog_compiler_pic='-qpic'
8816 lt_prog_compiler_static='-qstaticlink'
8817 ;;
8818 *)
8819 case `$CC -V 2>&1 | sed 5q` in
8820 *Sun\ C*)
8821 # Sun C 5.9
8822 lt_prog_compiler_pic='-KPIC'
8823 lt_prog_compiler_static='-Bstatic'
8824 lt_prog_compiler_wl='-Wl,'
8825 ;;
8826 *Sun\ F*)
8827 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8828 lt_prog_compiler_pic='-KPIC'
8829 lt_prog_compiler_static='-Bstatic'
8830 lt_prog_compiler_wl=''
8831 ;;
8832 esac
8833 ;;
8834 esac
8835 ;;
8836
8837 newsos6)
8838 lt_prog_compiler_pic='-KPIC'
8839 lt_prog_compiler_static='-Bstatic'
8840 ;;
8841
8842 *nto* | *qnx*)
8843 # QNX uses GNU C++, but need to define -shared option too, otherwise
8844 # it will coredump.
8845 lt_prog_compiler_pic='-fPIC -shared'
8846 ;;
8847
8848 osf3* | osf4* | osf5*)
8849 lt_prog_compiler_wl='-Wl,'
8850 # All OSF/1 code is PIC.
8851 lt_prog_compiler_static='-non_shared'
8852 ;;
8853
8854 rdos*)
8855 lt_prog_compiler_static='-non_shared'
8856 ;;
8857
8858 solaris*)
8859 lt_prog_compiler_pic='-KPIC'
8860 lt_prog_compiler_static='-Bstatic'
8861 case $cc_basename in
8862 f77* | f90* | f95*)
8863 lt_prog_compiler_wl='-Qoption ld ';;
8864 *)
8865 lt_prog_compiler_wl='-Wl,';;
8866 esac
8867 ;;
8868
8869 sunos4*)
8870 lt_prog_compiler_wl='-Qoption ld '
8871 lt_prog_compiler_pic='-PIC'
8872 lt_prog_compiler_static='-Bstatic'
8873 ;;
8874
8875 sysv4 | sysv4.2uw2* | sysv4.3*)
8876 lt_prog_compiler_wl='-Wl,'
8877 lt_prog_compiler_pic='-KPIC'
8878 lt_prog_compiler_static='-Bstatic'
8879 ;;
8880
8881 sysv4*MP*)
8882 if test -d /usr/nec ;then
8883 lt_prog_compiler_pic='-Kconform_pic'
8884 lt_prog_compiler_static='-Bstatic'
8885 fi
8886 ;;
8887
8888 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8889 lt_prog_compiler_wl='-Wl,'
8890 lt_prog_compiler_pic='-KPIC'
8891 lt_prog_compiler_static='-Bstatic'
8892 ;;
8893
8894 unicos*)
8895 lt_prog_compiler_wl='-Wl,'
8896 lt_prog_compiler_can_build_shared=no
8897 ;;
8898
8899 uts4*)
8900 lt_prog_compiler_pic='-pic'
8901 lt_prog_compiler_static='-Bstatic'
8902 ;;
8903
8904 *)
8905 lt_prog_compiler_can_build_shared=no
8906 ;;
8907 esac
8908 fi
8909
8910case $host_os in
8911 # For platforms which do not support PIC, -DPIC is meaningless:
8912 *djgpp*)
8913 lt_prog_compiler_pic=
8914 ;;
8915 *)
8916 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8917 ;;
8918esac
8919{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8920$as_echo "$lt_prog_compiler_pic" >&6; }
8921
8922
8923
8924
8925
8926
8927#
8928# Check to make sure the PIC flag actually works.
8929#
8930if test -n "$lt_prog_compiler_pic"; then
8931 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8932$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8933if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8934 $as_echo_n "(cached) " >&6
8935else
8936 lt_cv_prog_compiler_pic_works=no
8937 ac_outfile=conftest.$ac_objext
8938 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8939 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8940 # Insert the option either (1) after the last *FLAGS variable, or
8941 # (2) before a word containing "conftest.", or (3) at the end.
8942 # Note that $ac_compile itself does not contain backslashes and begins
8943 # with a dollar sign (not a hyphen), so the echo should work correctly.
8944 # The option is referenced via a variable to avoid confusing sed.
8945 lt_compile=`echo "$ac_compile" | $SED \
8946 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8947 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8948 -e 's:$: $lt_compiler_flag:'`
Adam Tkaca4c2fae2009-03-12 18:21:41 +00008949 (eval echo "\"\$as_me:8949: $lt_compile\"" >&5)
Adam Tkacfc4cd712009-03-11 11:14:37 +00008950 (eval "$lt_compile" 2>conftest.err)
8951 ac_status=$?
8952 cat conftest.err >&5
Adam Tkaca4c2fae2009-03-12 18:21:41 +00008953 echo "$as_me:8953: \$? = $ac_status" >&5
Adam Tkacfc4cd712009-03-11 11:14:37 +00008954 if (exit $ac_status) && test -s "$ac_outfile"; then
8955 # The compiler can only warn and ignore the option if not recognized
8956 # So say no if there are warnings other than the usual output.
8957 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8958 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8959 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8960 lt_cv_prog_compiler_pic_works=yes
8961 fi
8962 fi
8963 $RM conftest*
8964
8965fi
8966{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8967$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8968
8969if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8970 case $lt_prog_compiler_pic in
8971 "" | " "*) ;;
8972 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8973 esac
8974else
8975 lt_prog_compiler_pic=
8976 lt_prog_compiler_can_build_shared=no
8977fi
8978
8979fi
8980
8981
8982
8983
8984
8985
8986#
8987# Check to make sure the static flag actually works.
8988#
8989wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8990{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8991$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8992if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8993 $as_echo_n "(cached) " >&6
8994else
8995 lt_cv_prog_compiler_static_works=no
8996 save_LDFLAGS="$LDFLAGS"
8997 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8998 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8999 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9000 # The linker can only warn and ignore the option if not recognized
9001 # So say no if there are warnings
9002 if test -s conftest.err; then
9003 # Append any errors to the config.log.
9004 cat conftest.err 1>&5
9005 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9006 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9007 if diff conftest.exp conftest.er2 >/dev/null; then
9008 lt_cv_prog_compiler_static_works=yes
9009 fi
9010 else
9011 lt_cv_prog_compiler_static_works=yes
9012 fi
9013 fi
9014 $RM -r conftest*
9015 LDFLAGS="$save_LDFLAGS"
9016
9017fi
9018{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9019$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9020
9021if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9022 :
9023else
9024 lt_prog_compiler_static=
9025fi
9026
9027
9028
9029
9030
9031
9032
9033 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9034$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9035if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9036 $as_echo_n "(cached) " >&6
9037else
9038 lt_cv_prog_compiler_c_o=no
9039 $RM -r conftest 2>/dev/null
9040 mkdir conftest
9041 cd conftest
9042 mkdir out
9043 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9044
9045 lt_compiler_flag="-o out/conftest2.$ac_objext"
9046 # Insert the option either (1) after the last *FLAGS variable, or
9047 # (2) before a word containing "conftest.", or (3) at the end.
9048 # Note that $ac_compile itself does not contain backslashes and begins
9049 # with a dollar sign (not a hyphen), so the echo should work correctly.
9050 lt_compile=`echo "$ac_compile" | $SED \
9051 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9052 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9053 -e 's:$: $lt_compiler_flag:'`
Adam Tkaca4c2fae2009-03-12 18:21:41 +00009054 (eval echo "\"\$as_me:9054: $lt_compile\"" >&5)
Adam Tkacfc4cd712009-03-11 11:14:37 +00009055 (eval "$lt_compile" 2>out/conftest.err)
9056 ac_status=$?
9057 cat out/conftest.err >&5
Adam Tkaca4c2fae2009-03-12 18:21:41 +00009058 echo "$as_me:9058: \$? = $ac_status" >&5
Adam Tkacfc4cd712009-03-11 11:14:37 +00009059 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9060 then
9061 # The compiler can only warn and ignore the option if not recognized
9062 # So say no if there are warnings
9063 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9064 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9065 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9066 lt_cv_prog_compiler_c_o=yes
9067 fi
9068 fi
9069 chmod u+w . 2>&5
9070 $RM conftest*
9071 # SGI C++ compiler will create directory out/ii_files/ for
9072 # template instantiation
9073 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9074 $RM out/* && rmdir out
9075 cd ..
9076 $RM -r conftest
9077 $RM conftest*
9078
9079fi
9080{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9081$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9082
9083
9084
9085
9086
9087
9088 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9089$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9090if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9091 $as_echo_n "(cached) " >&6
9092else
9093 lt_cv_prog_compiler_c_o=no
9094 $RM -r conftest 2>/dev/null
9095 mkdir conftest
9096 cd conftest
9097 mkdir out
9098 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9099
9100 lt_compiler_flag="-o out/conftest2.$ac_objext"
9101 # Insert the option either (1) after the last *FLAGS variable, or
9102 # (2) before a word containing "conftest.", or (3) at the end.
9103 # Note that $ac_compile itself does not contain backslashes and begins
9104 # with a dollar sign (not a hyphen), so the echo should work correctly.
9105 lt_compile=`echo "$ac_compile" | $SED \
9106 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9107 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9108 -e 's:$: $lt_compiler_flag:'`
Adam Tkaca4c2fae2009-03-12 18:21:41 +00009109 (eval echo "\"\$as_me:9109: $lt_compile\"" >&5)
Adam Tkacfc4cd712009-03-11 11:14:37 +00009110 (eval "$lt_compile" 2>out/conftest.err)
9111 ac_status=$?
9112 cat out/conftest.err >&5
Adam Tkaca4c2fae2009-03-12 18:21:41 +00009113 echo "$as_me:9113: \$? = $ac_status" >&5
Adam Tkacfc4cd712009-03-11 11:14:37 +00009114 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9115 then
9116 # The compiler can only warn and ignore the option if not recognized
9117 # So say no if there are warnings
9118 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9119 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9120 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9121 lt_cv_prog_compiler_c_o=yes
9122 fi
9123 fi
9124 chmod u+w . 2>&5
9125 $RM conftest*
9126 # SGI C++ compiler will create directory out/ii_files/ for
9127 # template instantiation
9128 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9129 $RM out/* && rmdir out
9130 cd ..
9131 $RM -r conftest
9132 $RM conftest*
9133
9134fi
9135{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9136$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9137
9138
9139
9140
9141hard_links="nottested"
9142if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9143 # do not overwrite the value of need_locks provided by the user
9144 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9145$as_echo_n "checking if we can lock with hard links... " >&6; }
9146 hard_links=yes
9147 $RM conftest*
9148 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9149 touch conftest.a
9150 ln conftest.a conftest.b 2>&5 || hard_links=no
9151 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9152 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
9153$as_echo "$hard_links" >&6; }
9154 if test "$hard_links" = no; then
9155 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9156$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9157 need_locks=warn
9158 fi
9159else
9160 need_locks=no
9161fi
9162
9163
9164
9165
9166
9167
9168 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9169$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9170
9171 runpath_var=
9172 allow_undefined_flag=
9173 always_export_symbols=no
9174 archive_cmds=
9175 archive_expsym_cmds=
9176 compiler_needs_object=no
9177 enable_shared_with_static_runtimes=no
9178 export_dynamic_flag_spec=
9179 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9180 hardcode_automatic=no
9181 hardcode_direct=no
9182 hardcode_direct_absolute=no
9183 hardcode_libdir_flag_spec=
9184 hardcode_libdir_flag_spec_ld=
9185 hardcode_libdir_separator=
9186 hardcode_minus_L=no
9187 hardcode_shlibpath_var=unsupported
9188 inherit_rpath=no
9189 link_all_deplibs=unknown
9190 module_cmds=
9191 module_expsym_cmds=
9192 old_archive_from_new_cmds=
9193 old_archive_from_expsyms_cmds=
9194 thread_safe_flag_spec=
9195 whole_archive_flag_spec=
9196 # include_expsyms should be a list of space-separated symbols to be *always*
9197 # included in the symbol list
9198 include_expsyms=
9199 # exclude_expsyms can be an extended regexp of symbols to exclude
9200 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9201 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9202 # as well as any symbol that contains `d'.
9203 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9204 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9205 # platforms (ab)use it in PIC code, but their linkers get confused if
9206 # the symbol is explicitly referenced. Since portable code cannot
9207 # rely on this symbol name, it's probably fine to never include it in
9208 # preloaded symbol tables.
9209 # Exclude shared library initialization/finalization symbols.
9210 extract_expsyms_cmds=
9211
9212 case $host_os in
9213 cygwin* | mingw* | pw32* | cegcc*)
9214 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9215 # When not using gcc, we currently assume that we are using
9216 # Microsoft Visual C++.
9217 if test "$GCC" != yes; then
9218 with_gnu_ld=no
9219 fi
9220 ;;
9221 interix*)
9222 # we just hope/assume this is gcc and not c89 (= MSVC++)
9223 with_gnu_ld=yes
9224 ;;
9225 openbsd*)
9226 with_gnu_ld=no
9227 ;;
9228 esac
9229
9230 ld_shlibs=yes
9231 if test "$with_gnu_ld" = yes; then
9232 # If archive_cmds runs LD, not CC, wlarc should be empty
9233 wlarc='${wl}'
9234
9235 # Set some defaults for GNU ld with shared library support. These
9236 # are reset later if shared libraries are not supported. Putting them
9237 # here allows them to be overridden if necessary.
9238 runpath_var=LD_RUN_PATH
9239 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9240 export_dynamic_flag_spec='${wl}--export-dynamic'
9241 # ancient GNU ld didn't support --whole-archive et. al.
9242 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9243 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9244 else
9245 whole_archive_flag_spec=
9246 fi
9247 supports_anon_versioning=no
9248 case `$LD -v 2>&1` in
9249 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9250 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9251 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9252 *\ 2.11.*) ;; # other 2.11 versions
9253 *) supports_anon_versioning=yes ;;
9254 esac
9255
9256 # See if GNU ld supports shared libraries.
9257 case $host_os in
9258 aix[3-9]*)
9259 # On AIX/PPC, the GNU linker is very broken
9260 if test "$host_cpu" != ia64; then
9261 ld_shlibs=no
9262 cat <<_LT_EOF 1>&2
9263
9264*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9265*** to be unable to reliably create shared libraries on AIX.
9266*** Therefore, libtool is disabling shared libraries support. If you
9267*** really care for shared libraries, you may want to modify your PATH
9268*** so that a non-GNU linker is found, and then restart.
9269
9270_LT_EOF
9271 fi
9272 ;;
9273
9274 amigaos*)
9275 case $host_cpu in
9276 powerpc)
9277 # see comment about AmigaOS4 .so support
9278 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9279 archive_expsym_cmds=''
9280 ;;
9281 m68k)
9282 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)'
9283 hardcode_libdir_flag_spec='-L$libdir'
9284 hardcode_minus_L=yes
9285 ;;
9286 esac
9287 ;;
9288
9289 beos*)
9290 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9291 allow_undefined_flag=unsupported
9292 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9293 # support --undefined. This deserves some investigation. FIXME
9294 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9295 else
9296 ld_shlibs=no
9297 fi
9298 ;;
9299
9300 cygwin* | mingw* | pw32* | cegcc*)
9301 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9302 # as there is no search path for DLLs.
9303 hardcode_libdir_flag_spec='-L$libdir'
9304 allow_undefined_flag=unsupported
9305 always_export_symbols=no
9306 enable_shared_with_static_runtimes=yes
9307 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9308
9309 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9310 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9311 # If the export-symbols file already is a .def file (1st line
9312 # is EXPORTS), use it as is; otherwise, prepend...
9313 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9314 cp $export_symbols $output_objdir/$soname.def;
9315 else
9316 echo EXPORTS > $output_objdir/$soname.def;
9317 cat $export_symbols >> $output_objdir/$soname.def;
9318 fi~
9319 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9320 else
9321 ld_shlibs=no
9322 fi
9323 ;;
9324
9325 interix[3-9]*)
9326 hardcode_direct=no
9327 hardcode_shlibpath_var=no
9328 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9329 export_dynamic_flag_spec='${wl}-E'
9330 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9331 # Instead, shared libraries are loaded at an image base (0x10000000 by
9332 # default) and relocated if they conflict, which is a slow very memory
9333 # consuming and fragmenting process. To avoid this, we pick a random,
9334 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9335 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9336 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9337 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'
9338 ;;
9339
9340 gnu* | linux* | tpf* | k*bsd*-gnu)
9341 tmp_diet=no
9342 if test "$host_os" = linux-dietlibc; then
9343 case $cc_basename in
9344 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9345 esac
9346 fi
9347 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9348 && test "$tmp_diet" = no
9349 then
9350 tmp_addflag=
9351 tmp_sharedflag='-shared'
9352 case $cc_basename,$host_cpu in
9353 pgcc*) # Portland Group C compiler
9354 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'
9355 tmp_addflag=' $pic_flag'
9356 ;;
9357 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9358 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'
9359 tmp_addflag=' $pic_flag -Mnomain' ;;
9360 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9361 tmp_addflag=' -i_dynamic' ;;
9362 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9363 tmp_addflag=' -i_dynamic -nofor_main' ;;
9364 ifc* | ifort*) # Intel Fortran compiler
9365 tmp_addflag=' -nofor_main' ;;
9366 lf95*) # Lahey Fortran 8.1
9367 whole_archive_flag_spec=
9368 tmp_sharedflag='--shared' ;;
9369 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9370 tmp_sharedflag='-qmkshrobj'
9371 tmp_addflag= ;;
9372 esac
9373 case `$CC -V 2>&1 | sed 5q` in
9374 *Sun\ C*) # Sun C 5.9
9375 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9376 compiler_needs_object=yes
9377 tmp_sharedflag='-G' ;;
9378 *Sun\ F*) # Sun Fortran 8.3
9379 tmp_sharedflag='-G' ;;
9380 esac
9381 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9382
9383 if test "x$supports_anon_versioning" = xyes; then
9384 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9385 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9386 echo "local: *; };" >> $output_objdir/$libname.ver~
9387 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9388 fi
9389
9390 case $cc_basename in
9391 xlf*)
9392 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9393 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9394 hardcode_libdir_flag_spec=
9395 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9396 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9397 if test "x$supports_anon_versioning" = xyes; then
9398 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9399 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9400 echo "local: *; };" >> $output_objdir/$libname.ver~
9401 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9402 fi
9403 ;;
9404 esac
9405 else
9406 ld_shlibs=no
9407 fi
9408 ;;
9409
9410 netbsd*)
9411 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9412 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9413 wlarc=
9414 else
9415 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9416 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9417 fi
9418 ;;
9419
9420 solaris*)
9421 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9422 ld_shlibs=no
9423 cat <<_LT_EOF 1>&2
9424
9425*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9426*** create shared libraries on Solaris systems. Therefore, libtool
9427*** is disabling shared libraries support. We urge you to upgrade GNU
9428*** binutils to release 2.9.1 or newer. Another option is to modify
9429*** your PATH or compiler configuration so that the native linker is
9430*** used, and then restart.
9431
9432_LT_EOF
9433 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9434 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9435 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9436 else
9437 ld_shlibs=no
9438 fi
9439 ;;
9440
9441 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9442 case `$LD -v 2>&1` in
9443 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9444 ld_shlibs=no
9445 cat <<_LT_EOF 1>&2
9446
9447*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9448*** reliably create shared libraries on SCO systems. Therefore, libtool
9449*** is disabling shared libraries support. We urge you to upgrade GNU
9450*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9451*** your PATH or compiler configuration so that the native linker is
9452*** used, and then restart.
9453
9454_LT_EOF
9455 ;;
9456 *)
9457 # For security reasons, it is highly recommended that you always
9458 # use absolute paths for naming shared libraries, and exclude the
9459 # DT_RUNPATH tag from executables and libraries. But doing so
9460 # requires that you compile everything twice, which is a pain.
9461 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9462 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9463 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9464 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9465 else
9466 ld_shlibs=no
9467 fi
9468 ;;
9469 esac
9470 ;;
9471
9472 sunos4*)
9473 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9474 wlarc=
9475 hardcode_direct=yes
9476 hardcode_shlibpath_var=no
9477 ;;
9478
9479 *)
9480 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9481 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9482 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9483 else
9484 ld_shlibs=no
9485 fi
9486 ;;
9487 esac
9488
9489 if test "$ld_shlibs" = no; then
9490 runpath_var=
9491 hardcode_libdir_flag_spec=
9492 export_dynamic_flag_spec=
9493 whole_archive_flag_spec=
9494 fi
9495 else
9496 # PORTME fill in a description of your system's linker (not GNU ld)
9497 case $host_os in
9498 aix3*)
9499 allow_undefined_flag=unsupported
9500 always_export_symbols=yes
9501 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'
9502 # Note: this linker hardcodes the directories in LIBPATH if there
9503 # are no directories specified by -L.
9504 hardcode_minus_L=yes
9505 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9506 # Neither direct hardcoding nor static linking is supported with a
9507 # broken collect2.
9508 hardcode_direct=unsupported
9509 fi
9510 ;;
9511
9512 aix[4-9]*)
9513 if test "$host_cpu" = ia64; then
9514 # On IA64, the linker does run time linking by default, so we don't
9515 # have to do anything special.
9516 aix_use_runtimelinking=no
9517 exp_sym_flag='-Bexport'
9518 no_entry_flag=""
9519 else
9520 # If we're using GNU nm, then we don't want the "-C" option.
9521 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9522 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9523 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'
9524 else
9525 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'
9526 fi
9527 aix_use_runtimelinking=no
9528
9529 # Test if we are trying to use run time linking or normal
9530 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9531 # need to do runtime linking.
9532 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9533 for ld_flag in $LDFLAGS; do
9534 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9535 aix_use_runtimelinking=yes
9536 break
9537 fi
9538 done
9539 ;;
9540 esac
9541
9542 exp_sym_flag='-bexport'
9543 no_entry_flag='-bnoentry'
9544 fi
9545
9546 # When large executables or shared objects are built, AIX ld can
9547 # have problems creating the table of contents. If linking a library
9548 # or program results in "error TOC overflow" add -mminimal-toc to
9549 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9550 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9551
9552 archive_cmds=''
9553 hardcode_direct=yes
9554 hardcode_direct_absolute=yes
9555 hardcode_libdir_separator=':'
9556 link_all_deplibs=yes
9557 file_list_spec='${wl}-f,'
9558
9559 if test "$GCC" = yes; then
9560 case $host_os in aix4.[012]|aix4.[012].*)
9561 # We only want to do this on AIX 4.2 and lower, the check
9562 # below for broken collect2 doesn't work under 4.3+
9563 collect2name=`${CC} -print-prog-name=collect2`
9564 if test -f "$collect2name" &&
9565 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9566 then
9567 # We have reworked collect2
9568 :
9569 else
9570 # We have old collect2
9571 hardcode_direct=unsupported
9572 # It fails to find uninstalled libraries when the uninstalled
9573 # path is not listed in the libpath. Setting hardcode_minus_L
9574 # to unsupported forces relinking
9575 hardcode_minus_L=yes
9576 hardcode_libdir_flag_spec='-L$libdir'
9577 hardcode_libdir_separator=
9578 fi
9579 ;;
9580 esac
9581 shared_flag='-shared'
9582 if test "$aix_use_runtimelinking" = yes; then
9583 shared_flag="$shared_flag "'${wl}-G'
9584 fi
9585 else
9586 # not using gcc
9587 if test "$host_cpu" = ia64; then
9588 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9589 # chokes on -Wl,-G. The following line is correct:
9590 shared_flag='-G'
9591 else
9592 if test "$aix_use_runtimelinking" = yes; then
9593 shared_flag='${wl}-G'
9594 else
9595 shared_flag='${wl}-bM:SRE'
9596 fi
9597 fi
9598 fi
9599
9600 export_dynamic_flag_spec='${wl}-bexpall'
9601 # It seems that -bexpall does not export symbols beginning with
9602 # underscore (_), so it is better to generate a list of symbols to export.
9603 always_export_symbols=yes
9604 if test "$aix_use_runtimelinking" = yes; then
9605 # Warning - without using the other runtime loading flags (-brtl),
9606 # -berok will link without error, but may produce a broken library.
9607 allow_undefined_flag='-berok'
9608 # Determine the default libpath from the value encoded in an
9609 # empty executable.
9610 cat >conftest.$ac_ext <<_ACEOF
9611/* confdefs.h. */
9612_ACEOF
9613cat confdefs.h >>conftest.$ac_ext
9614cat >>conftest.$ac_ext <<_ACEOF
9615/* end confdefs.h. */
9616
9617int
9618main ()
9619{
9620
9621 ;
9622 return 0;
9623}
9624_ACEOF
9625rm -f conftest.$ac_objext conftest$ac_exeext
9626if { (ac_try="$ac_link"
9627case "(($ac_try" in
9628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9629 *) ac_try_echo=$ac_try;;
9630esac
9631eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9632$as_echo "$ac_try_echo") >&5
9633 (eval "$ac_link") 2>conftest.er1
9634 ac_status=$?
9635 grep -v '^ *+' conftest.er1 >conftest.err
9636 rm -f conftest.er1
9637 cat conftest.err >&5
9638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639 (exit $ac_status); } && {
9640 test -z "$ac_c_werror_flag" ||
9641 test ! -s conftest.err
9642 } && test -s conftest$ac_exeext && {
9643 test "$cross_compiling" = yes ||
9644 $as_test_x conftest$ac_exeext
9645 }; then
9646
9647lt_aix_libpath_sed='
9648 /Import File Strings/,/^$/ {
9649 /^0/ {
9650 s/^0 *\(.*\)$/\1/
9651 p
9652 }
9653 }'
9654aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9655# Check for a 64-bit object if we didn't find anything.
9656if test -z "$aix_libpath"; then
9657 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9658fi
9659else
9660 $as_echo "$as_me: failed program was:" >&5
9661sed 's/^/| /' conftest.$ac_ext >&5
9662
9663
9664fi
9665
9666rm -rf conftest.dSYM
9667rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9668 conftest$ac_exeext conftest.$ac_ext
9669if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9670
9671 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9672 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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9673 else
9674 if test "$host_cpu" = ia64; then
9675 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9676 allow_undefined_flag="-z nodefs"
9677 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"
9678 else
9679 # Determine the default libpath from the value encoded in an
9680 # empty executable.
9681 cat >conftest.$ac_ext <<_ACEOF
9682/* confdefs.h. */
9683_ACEOF
9684cat confdefs.h >>conftest.$ac_ext
9685cat >>conftest.$ac_ext <<_ACEOF
9686/* end confdefs.h. */
9687
9688int
9689main ()
9690{
9691
9692 ;
9693 return 0;
9694}
9695_ACEOF
9696rm -f conftest.$ac_objext conftest$ac_exeext
9697if { (ac_try="$ac_link"
9698case "(($ac_try" in
9699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9700 *) ac_try_echo=$ac_try;;
9701esac
9702eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9703$as_echo "$ac_try_echo") >&5
9704 (eval "$ac_link") 2>conftest.er1
9705 ac_status=$?
9706 grep -v '^ *+' conftest.er1 >conftest.err
9707 rm -f conftest.er1
9708 cat conftest.err >&5
9709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710 (exit $ac_status); } && {
9711 test -z "$ac_c_werror_flag" ||
9712 test ! -s conftest.err
9713 } && test -s conftest$ac_exeext && {
9714 test "$cross_compiling" = yes ||
9715 $as_test_x conftest$ac_exeext
9716 }; then
9717
9718lt_aix_libpath_sed='
9719 /Import File Strings/,/^$/ {
9720 /^0/ {
9721 s/^0 *\(.*\)$/\1/
9722 p
9723 }
9724 }'
9725aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9726# Check for a 64-bit object if we didn't find anything.
9727if test -z "$aix_libpath"; then
9728 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9729fi
9730else
9731 $as_echo "$as_me: failed program was:" >&5
9732sed 's/^/| /' conftest.$ac_ext >&5
9733
9734
9735fi
9736
9737rm -rf conftest.dSYM
9738rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9739 conftest$ac_exeext conftest.$ac_ext
9740if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9741
9742 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9743 # Warning - without using the other run time loading flags,
9744 # -berok will link without error, but may produce a broken library.
9745 no_undefined_flag=' ${wl}-bernotok'
9746 allow_undefined_flag=' ${wl}-berok'
9747 # Exported symbols can be pulled into shared objects from archives
9748 whole_archive_flag_spec='$convenience'
9749 archive_cmds_need_lc=yes
9750 # This is similar to how AIX traditionally builds its shared libraries.
9751 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'
9752 fi
9753 fi
9754 ;;
9755
9756 amigaos*)
9757 case $host_cpu in
9758 powerpc)
9759 # see comment about AmigaOS4 .so support
9760 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9761 archive_expsym_cmds=''
9762 ;;
9763 m68k)
9764 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)'
9765 hardcode_libdir_flag_spec='-L$libdir'
9766 hardcode_minus_L=yes
9767 ;;
9768 esac
9769 ;;
9770
9771 bsdi[45]*)
9772 export_dynamic_flag_spec=-rdynamic
9773 ;;
9774
9775 cygwin* | mingw* | pw32* | cegcc*)
9776 # When not using gcc, we currently assume that we are using
9777 # Microsoft Visual C++.
9778 # hardcode_libdir_flag_spec is actually meaningless, as there is
9779 # no search path for DLLs.
9780 hardcode_libdir_flag_spec=' '
9781 allow_undefined_flag=unsupported
9782 # Tell ltmain to make .lib files, not .a files.
9783 libext=lib
9784 # Tell ltmain to make .dll files, not .so files.
9785 shrext_cmds=".dll"
9786 # FIXME: Setting linknames here is a bad hack.
9787 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9788 # The linker will automatically build a .lib file if we build a DLL.
9789 old_archive_from_new_cmds='true'
9790 # FIXME: Should let the user specify the lib program.
9791 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9792 fix_srcfile_path='`cygpath -w "$srcfile"`'
9793 enable_shared_with_static_runtimes=yes
9794 ;;
9795
9796 darwin* | rhapsody*)
9797
9798
9799 archive_cmds_need_lc=no
9800 hardcode_direct=no
9801 hardcode_automatic=yes
9802 hardcode_shlibpath_var=unsupported
9803 whole_archive_flag_spec=''
9804 link_all_deplibs=yes
9805 allow_undefined_flag="$_lt_dar_allow_undefined"
9806 case $cc_basename in
9807 ifort*) _lt_dar_can_shared=yes ;;
9808 *) _lt_dar_can_shared=$GCC ;;
9809 esac
9810 if test "$_lt_dar_can_shared" = "yes"; then
9811 output_verbose_link_cmd=echo
9812 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9813 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9814 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9815 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9816
9817 else
9818 ld_shlibs=no
9819 fi
9820
9821 ;;
9822
9823 dgux*)
9824 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9825 hardcode_libdir_flag_spec='-L$libdir'
9826 hardcode_shlibpath_var=no
9827 ;;
9828
9829 freebsd1*)
9830 ld_shlibs=no
9831 ;;
9832
9833 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9834 # support. Future versions do this automatically, but an explicit c++rt0.o
9835 # does not break anything, and helps significantly (at the cost of a little
9836 # extra space).
9837 freebsd2.2*)
9838 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9839 hardcode_libdir_flag_spec='-R$libdir'
9840 hardcode_direct=yes
9841 hardcode_shlibpath_var=no
9842 ;;
9843
9844 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9845 freebsd2*)
9846 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9847 hardcode_direct=yes
9848 hardcode_minus_L=yes
9849 hardcode_shlibpath_var=no
9850 ;;
9851
9852 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9853 freebsd* | dragonfly*)
9854 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9855 hardcode_libdir_flag_spec='-R$libdir'
9856 hardcode_direct=yes
9857 hardcode_shlibpath_var=no
9858 ;;
9859
9860 hpux9*)
9861 if test "$GCC" = yes; then
9862 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'
9863 else
9864 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'
9865 fi
9866 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9867 hardcode_libdir_separator=:
9868 hardcode_direct=yes
9869
9870 # hardcode_minus_L: Not really in the search PATH,
9871 # but as the default location of the library.
9872 hardcode_minus_L=yes
9873 export_dynamic_flag_spec='${wl}-E'
9874 ;;
9875
9876 hpux10*)
9877 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9878 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9879 else
9880 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9881 fi
9882 if test "$with_gnu_ld" = no; then
9883 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9884 hardcode_libdir_flag_spec_ld='+b $libdir'
9885 hardcode_libdir_separator=:
9886 hardcode_direct=yes
9887 hardcode_direct_absolute=yes
9888 export_dynamic_flag_spec='${wl}-E'
9889 # hardcode_minus_L: Not really in the search PATH,
9890 # but as the default location of the library.
9891 hardcode_minus_L=yes
9892 fi
9893 ;;
9894
9895 hpux11*)
9896 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9897 case $host_cpu in
9898 hppa*64*)
9899 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9900 ;;
9901 ia64*)
9902 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9903 ;;
9904 *)
9905 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9906 ;;
9907 esac
9908 else
9909 case $host_cpu in
9910 hppa*64*)
9911 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9912 ;;
9913 ia64*)
9914 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9915 ;;
9916 *)
9917 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9918 ;;
9919 esac
9920 fi
9921 if test "$with_gnu_ld" = no; then
9922 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9923 hardcode_libdir_separator=:
9924
9925 case $host_cpu in
9926 hppa*64*|ia64*)
9927 hardcode_direct=no
9928 hardcode_shlibpath_var=no
9929 ;;
9930 *)
9931 hardcode_direct=yes
9932 hardcode_direct_absolute=yes
9933 export_dynamic_flag_spec='${wl}-E'
9934
9935 # hardcode_minus_L: Not really in the search PATH,
9936 # but as the default location of the library.
9937 hardcode_minus_L=yes
9938 ;;
9939 esac
9940 fi
9941 ;;
9942
9943 irix5* | irix6* | nonstopux*)
9944 if test "$GCC" = yes; then
9945 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9946 # Try to use the -exported_symbol ld option, if it does not
9947 # work, assume that -exports_file does not work either and
9948 # implicitly export all symbols.
9949 save_LDFLAGS="$LDFLAGS"
9950 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9951 cat >conftest.$ac_ext <<_ACEOF
9952int foo(void) {}
9953_ACEOF
9954rm -f conftest.$ac_objext conftest$ac_exeext
9955if { (ac_try="$ac_link"
9956case "(($ac_try" in
9957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9958 *) ac_try_echo=$ac_try;;
9959esac
9960eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9961$as_echo "$ac_try_echo") >&5
9962 (eval "$ac_link") 2>conftest.er1
9963 ac_status=$?
9964 grep -v '^ *+' conftest.er1 >conftest.err
9965 rm -f conftest.er1
9966 cat conftest.err >&5
9967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968 (exit $ac_status); } && {
9969 test -z "$ac_c_werror_flag" ||
9970 test ! -s conftest.err
9971 } && test -s conftest$ac_exeext && {
9972 test "$cross_compiling" = yes ||
9973 $as_test_x conftest$ac_exeext
9974 }; then
9975 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9976
9977else
9978 $as_echo "$as_me: failed program was:" >&5
9979sed 's/^/| /' conftest.$ac_ext >&5
9980
9981
9982fi
9983
9984rm -rf conftest.dSYM
9985rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9986 conftest$ac_exeext conftest.$ac_ext
9987 LDFLAGS="$save_LDFLAGS"
9988 else
9989 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9990 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9991 fi
9992 archive_cmds_need_lc='no'
9993 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9994 hardcode_libdir_separator=:
9995 inherit_rpath=yes
9996 link_all_deplibs=yes
9997 ;;
9998
9999 netbsd*)
10000 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10001 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10002 else
10003 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10004 fi
10005 hardcode_libdir_flag_spec='-R$libdir'
10006 hardcode_direct=yes
10007 hardcode_shlibpath_var=no
10008 ;;
10009
10010 newsos6)
10011 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10012 hardcode_direct=yes
10013 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10014 hardcode_libdir_separator=:
10015 hardcode_shlibpath_var=no
10016 ;;
10017
10018 *nto* | *qnx*)
10019 ;;
10020
10021 openbsd*)
10022 if test -f /usr/libexec/ld.so; then
10023 hardcode_direct=yes
10024 hardcode_shlibpath_var=no
10025 hardcode_direct_absolute=yes
10026 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10027 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10028 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10029 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10030 export_dynamic_flag_spec='${wl}-E'
10031 else
10032 case $host_os in
10033 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10034 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10035 hardcode_libdir_flag_spec='-R$libdir'
10036 ;;
10037 *)
10038 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10039 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10040 ;;
10041 esac
10042 fi
10043 else
10044 ld_shlibs=no
10045 fi
10046 ;;
10047
10048 os2*)
10049 hardcode_libdir_flag_spec='-L$libdir'
10050 hardcode_minus_L=yes
10051 allow_undefined_flag=unsupported
10052 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'
10053 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10054 ;;
10055
10056 osf3*)
10057 if test "$GCC" = yes; then
10058 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10059 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10060 else
10061 allow_undefined_flag=' -expect_unresolved \*'
10062 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10063 fi
10064 archive_cmds_need_lc='no'
10065 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10066 hardcode_libdir_separator=:
10067 ;;
10068
10069 osf4* | osf5*) # as osf3* with the addition of -msym flag
10070 if test "$GCC" = yes; then
10071 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10072 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10073 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10074 else
10075 allow_undefined_flag=' -expect_unresolved \*'
10076 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10077 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10078 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10079
10080 # Both c and cxx compiler support -rpath directly
10081 hardcode_libdir_flag_spec='-rpath $libdir'
10082 fi
10083 archive_cmds_need_lc='no'
10084 hardcode_libdir_separator=:
10085 ;;
10086
10087 solaris*)
10088 no_undefined_flag=' -z defs'
10089 if test "$GCC" = yes; then
10090 wlarc='${wl}'
10091 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10092 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10093 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10094 else
10095 case `$CC -V 2>&1` in
10096 *"Compilers 5.0"*)
10097 wlarc=''
10098 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10099 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10100 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10101 ;;
10102 *)
10103 wlarc='${wl}'
10104 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10105 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10106 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10107 ;;
10108 esac
10109 fi
10110 hardcode_libdir_flag_spec='-R$libdir'
10111 hardcode_shlibpath_var=no
10112 case $host_os in
10113 solaris2.[0-5] | solaris2.[0-5].*) ;;
10114 *)
10115 # The compiler driver will combine and reorder linker options,
10116 # but understands `-z linker_flag'. GCC discards it without `$wl',
10117 # but is careful enough not to reorder.
10118 # Supported since Solaris 2.6 (maybe 2.5.1?)
10119 if test "$GCC" = yes; then
10120 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10121 else
10122 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10123 fi
10124 ;;
10125 esac
10126 link_all_deplibs=yes
10127 ;;
10128
10129 sunos4*)
10130 if test "x$host_vendor" = xsequent; then
10131 # Use $CC to link under sequent, because it throws in some extra .o
10132 # files that make .init and .fini sections work.
10133 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10134 else
10135 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10136 fi
10137 hardcode_libdir_flag_spec='-L$libdir'
10138 hardcode_direct=yes
10139 hardcode_minus_L=yes
10140 hardcode_shlibpath_var=no
10141 ;;
10142
10143 sysv4)
10144 case $host_vendor in
10145 sni)
10146 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10147 hardcode_direct=yes # is this really true???
10148 ;;
10149 siemens)
10150 ## LD is ld it makes a PLAMLIB
10151 ## CC just makes a GrossModule.
10152 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10153 reload_cmds='$CC -r -o $output$reload_objs'
10154 hardcode_direct=no
10155 ;;
10156 motorola)
10157 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10158 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10159 ;;
10160 esac
10161 runpath_var='LD_RUN_PATH'
10162 hardcode_shlibpath_var=no
10163 ;;
10164
10165 sysv4.3*)
10166 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10167 hardcode_shlibpath_var=no
10168 export_dynamic_flag_spec='-Bexport'
10169 ;;
10170
10171 sysv4*MP*)
10172 if test -d /usr/nec; then
10173 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10174 hardcode_shlibpath_var=no
10175 runpath_var=LD_RUN_PATH
10176 hardcode_runpath_var=yes
10177 ld_shlibs=yes
10178 fi
10179 ;;
10180
10181 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10182 no_undefined_flag='${wl}-z,text'
10183 archive_cmds_need_lc=no
10184 hardcode_shlibpath_var=no
10185 runpath_var='LD_RUN_PATH'
10186
10187 if test "$GCC" = yes; then
10188 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10189 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10190 else
10191 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10192 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10193 fi
10194 ;;
10195
10196 sysv5* | sco3.2v5* | sco5v6*)
10197 # Note: We can NOT use -z defs as we might desire, because we do not
10198 # link with -lc, and that would cause any symbols used from libc to
10199 # always be unresolved, which means just about no library would
10200 # ever link correctly. If we're not using GNU ld we use -z text
10201 # though, which does catch some bad symbols but isn't as heavy-handed
10202 # as -z defs.
10203 no_undefined_flag='${wl}-z,text'
10204 allow_undefined_flag='${wl}-z,nodefs'
10205 archive_cmds_need_lc=no
10206 hardcode_shlibpath_var=no
10207 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10208 hardcode_libdir_separator=':'
10209 link_all_deplibs=yes
10210 export_dynamic_flag_spec='${wl}-Bexport'
10211 runpath_var='LD_RUN_PATH'
10212
10213 if test "$GCC" = yes; then
10214 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10215 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10216 else
10217 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10218 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10219 fi
10220 ;;
10221
10222 uts4*)
10223 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10224 hardcode_libdir_flag_spec='-L$libdir'
10225 hardcode_shlibpath_var=no
10226 ;;
10227
10228 *)
10229 ld_shlibs=no
10230 ;;
10231 esac
10232
10233 if test x$host_vendor = xsni; then
10234 case $host in
10235 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10236 export_dynamic_flag_spec='${wl}-Blargedynsym'
10237 ;;
10238 esac
10239 fi
10240 fi
10241
10242{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10243$as_echo "$ld_shlibs" >&6; }
10244test "$ld_shlibs" = no && can_build_shared=no
10245
10246with_gnu_ld=$with_gnu_ld
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262#
10263# Do we need to explicitly link libc?
10264#
10265case "x$archive_cmds_need_lc" in
10266x|xyes)
10267 # Assume -lc should be added
10268 archive_cmds_need_lc=yes
10269
10270 if test "$enable_shared" = yes && test "$GCC" = yes; then
10271 case $archive_cmds in
10272 *'~'*)
10273 # FIXME: we may have to deal with multi-command sequences.
10274 ;;
10275 '$CC '*)
10276 # Test whether the compiler implicitly links with -lc since on some
10277 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10278 # to ld, don't add -lc before -lgcc.
10279 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10280$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10281 $RM conftest*
10282 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10283
10284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10285 (eval $ac_compile) 2>&5
10286 ac_status=$?
10287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288 (exit $ac_status); } 2>conftest.err; then
10289 soname=conftest
10290 lib=conftest
10291 libobjs=conftest.$ac_objext
10292 deplibs=
10293 wl=$lt_prog_compiler_wl
10294 pic_flag=$lt_prog_compiler_pic
10295 compiler_flags=-v
10296 linker_flags=-v
10297 verstring=
10298 output_objdir=.
10299 libname=conftest
10300 lt_save_allow_undefined_flag=$allow_undefined_flag
10301 allow_undefined_flag=
10302 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
10303 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10304 ac_status=$?
10305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306 (exit $ac_status); }
10307 then
10308 archive_cmds_need_lc=no
10309 else
10310 archive_cmds_need_lc=yes
10311 fi
10312 allow_undefined_flag=$lt_save_allow_undefined_flag
10313 else
10314 cat conftest.err 1>&5
10315 fi
10316 $RM conftest*
10317 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10318$as_echo "$archive_cmds_need_lc" >&6; }
10319 ;;
10320 esac
10321 fi
10322 ;;
10323esac
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10482$as_echo_n "checking dynamic linker characteristics... " >&6; }
10483
10484if test "$GCC" = yes; then
10485 case $host_os in
10486 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10487 *) lt_awk_arg="/^libraries:/" ;;
10488 esac
10489 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10490 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10491 # if the path contains ";" then we assume it to be the separator
10492 # otherwise default to the standard path separator (i.e. ":") - it is
10493 # assumed that no part of a normal pathname contains ";" but that should
10494 # okay in the real world where ";" in dirpaths is itself problematic.
10495 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10496 else
10497 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10498 fi
10499 # Ok, now we have the path, separated by spaces, we can step through it
10500 # and add multilib dir if necessary.
10501 lt_tmp_lt_search_path_spec=
10502 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10503 for lt_sys_path in $lt_search_path_spec; do
10504 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10505 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10506 else
10507 test -d "$lt_sys_path" && \
10508 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10509 fi
10510 done
10511 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10512BEGIN {RS=" "; FS="/|\n";} {
10513 lt_foo="";
10514 lt_count=0;
10515 for (lt_i = NF; lt_i > 0; lt_i--) {
10516 if ($lt_i != "" && $lt_i != ".") {
10517 if ($lt_i == "..") {
10518 lt_count++;
10519 } else {
10520 if (lt_count == 0) {
10521 lt_foo="/" $lt_i lt_foo;
10522 } else {
10523 lt_count--;
10524 }
10525 }
10526 }
10527 }
10528 if (lt_foo != "") { lt_freq[lt_foo]++; }
10529 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10530}'`
10531 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10532else
10533 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10534fi
10535library_names_spec=
10536libname_spec='lib$name'
10537soname_spec=
10538shrext_cmds=".so"
10539postinstall_cmds=
10540postuninstall_cmds=
10541finish_cmds=
10542finish_eval=
10543shlibpath_var=
10544shlibpath_overrides_runpath=unknown
10545version_type=none
10546dynamic_linker="$host_os ld.so"
10547sys_lib_dlsearch_path_spec="/lib /usr/lib"
10548need_lib_prefix=unknown
10549hardcode_into_libs=no
10550
10551# when you set need_version to no, make sure it does not cause -set_version
10552# flags to be left without arguments
10553need_version=unknown
10554
10555case $host_os in
10556aix3*)
10557 version_type=linux
10558 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10559 shlibpath_var=LIBPATH
10560
10561 # AIX 3 has no versioning support, so we append a major version to the name.
10562 soname_spec='${libname}${release}${shared_ext}$major'
10563 ;;
10564
10565aix[4-9]*)
10566 version_type=linux
10567 need_lib_prefix=no
10568 need_version=no
10569 hardcode_into_libs=yes
10570 if test "$host_cpu" = ia64; then
10571 # AIX 5 supports IA64
10572 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10573 shlibpath_var=LD_LIBRARY_PATH
10574 else
10575 # With GCC up to 2.95.x, collect2 would create an import file
10576 # for dependence libraries. The import file would start with
10577 # the line `#! .'. This would cause the generated library to
10578 # depend on `.', always an invalid library. This was fixed in
10579 # development snapshots of GCC prior to 3.0.
10580 case $host_os in
10581 aix4 | aix4.[01] | aix4.[01].*)
10582 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10583 echo ' yes '
10584 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10585 :
10586 else
10587 can_build_shared=no
10588 fi
10589 ;;
10590 esac
10591 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10592 # soname into executable. Probably we can add versioning support to
10593 # collect2, so additional links can be useful in future.
10594 if test "$aix_use_runtimelinking" = yes; then
10595 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10596 # instead of lib<name>.a to let people know that these are not
10597 # typical AIX shared libraries.
10598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10599 else
10600 # We preserve .a as extension for shared libraries through AIX4.2
10601 # and later when we are not doing run time linking.
10602 library_names_spec='${libname}${release}.a $libname.a'
10603 soname_spec='${libname}${release}${shared_ext}$major'
10604 fi
10605 shlibpath_var=LIBPATH
10606 fi
10607 ;;
10608
10609amigaos*)
10610 case $host_cpu in
10611 powerpc)
10612 # Since July 2007 AmigaOS4 officially supports .so libraries.
10613 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10615 ;;
10616 m68k)
10617 library_names_spec='$libname.ixlibrary $libname.a'
10618 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10619 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'
10620 ;;
10621 esac
10622 ;;
10623
10624beos*)
10625 library_names_spec='${libname}${shared_ext}'
10626 dynamic_linker="$host_os ld.so"
10627 shlibpath_var=LIBRARY_PATH
10628 ;;
10629
10630bsdi[45]*)
10631 version_type=linux
10632 need_version=no
10633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10634 soname_spec='${libname}${release}${shared_ext}$major'
10635 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10636 shlibpath_var=LD_LIBRARY_PATH
10637 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10638 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10639 # the default ld.so.conf also contains /usr/contrib/lib and
10640 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10641 # libtool to hard-code these into programs
10642 ;;
10643
10644cygwin* | mingw* | pw32* | cegcc*)
10645 version_type=windows
10646 shrext_cmds=".dll"
10647 need_version=no
10648 need_lib_prefix=no
10649
10650 case $GCC,$host_os in
10651 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10652 library_names_spec='$libname.dll.a'
10653 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10654 postinstall_cmds='base_file=`basename \${file}`~
10655 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10656 dldir=$destdir/`dirname \$dlpath`~
10657 test -d \$dldir || mkdir -p \$dldir~
10658 $install_prog $dir/$dlname \$dldir/$dlname~
10659 chmod a+x \$dldir/$dlname~
10660 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10661 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10662 fi'
10663 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10664 dlpath=$dir/\$dldll~
10665 $RM \$dlpath'
10666 shlibpath_overrides_runpath=yes
10667
10668 case $host_os in
10669 cygwin*)
10670 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10671 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10672 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10673 ;;
10674 mingw* | cegcc*)
10675 # MinGW DLLs use traditional 'lib' prefix
10676 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10677 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10678 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10679 # It is most probably a Windows format PATH printed by
10680 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10681 # path with ; separators, and with drive letters. We can handle the
10682 # drive letters (cygwin fileutils understands them), so leave them,
10683 # especially as we might pass files found there to a mingw objdump,
10684 # which wouldn't understand a cygwinified path. Ahh.
10685 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10686 else
10687 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10688 fi
10689 ;;
10690 pw32*)
10691 # pw32 DLLs use 'pw' prefix rather than 'lib'
10692 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10693 ;;
10694 esac
10695 ;;
10696
10697 *)
10698 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10699 ;;
10700 esac
10701 dynamic_linker='Win32 ld.exe'
10702 # FIXME: first we should search . and the directory the executable is in
10703 shlibpath_var=PATH
10704 ;;
10705
10706darwin* | rhapsody*)
10707 dynamic_linker="$host_os dyld"
10708 version_type=darwin
10709 need_lib_prefix=no
10710 need_version=no
10711 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10712 soname_spec='${libname}${release}${major}$shared_ext'
10713 shlibpath_overrides_runpath=yes
10714 shlibpath_var=DYLD_LIBRARY_PATH
10715 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10716
10717 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10718 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10719 ;;
10720
10721dgux*)
10722 version_type=linux
10723 need_lib_prefix=no
10724 need_version=no
10725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10726 soname_spec='${libname}${release}${shared_ext}$major'
10727 shlibpath_var=LD_LIBRARY_PATH
10728 ;;
10729
10730freebsd1*)
10731 dynamic_linker=no
10732 ;;
10733
10734freebsd* | dragonfly*)
10735 # DragonFly does not have aout. When/if they implement a new
10736 # versioning mechanism, adjust this.
10737 if test -x /usr/bin/objformat; then
10738 objformat=`/usr/bin/objformat`
10739 else
10740 case $host_os in
10741 freebsd[123]*) objformat=aout ;;
10742 *) objformat=elf ;;
10743 esac
10744 fi
10745 version_type=freebsd-$objformat
10746 case $version_type in
10747 freebsd-elf*)
10748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10749 need_version=no
10750 need_lib_prefix=no
10751 ;;
10752 freebsd-*)
10753 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10754 need_version=yes
10755 ;;
10756 esac
10757 shlibpath_var=LD_LIBRARY_PATH
10758 case $host_os in
10759 freebsd2*)
10760 shlibpath_overrides_runpath=yes
10761 ;;
10762 freebsd3.[01]* | freebsdelf3.[01]*)
10763 shlibpath_overrides_runpath=yes
10764 hardcode_into_libs=yes
10765 ;;
10766 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10767 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10768 shlibpath_overrides_runpath=no
10769 hardcode_into_libs=yes
10770 ;;
10771 *) # from 4.6 on, and DragonFly
10772 shlibpath_overrides_runpath=yes
10773 hardcode_into_libs=yes
10774 ;;
10775 esac
10776 ;;
10777
10778gnu*)
10779 version_type=linux
10780 need_lib_prefix=no
10781 need_version=no
10782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10783 soname_spec='${libname}${release}${shared_ext}$major'
10784 shlibpath_var=LD_LIBRARY_PATH
10785 hardcode_into_libs=yes
10786 ;;
10787
10788hpux9* | hpux10* | hpux11*)
10789 # Give a soname corresponding to the major version so that dld.sl refuses to
10790 # link against other versions.
10791 version_type=sunos
10792 need_lib_prefix=no
10793 need_version=no
10794 case $host_cpu in
10795 ia64*)
10796 shrext_cmds='.so'
10797 hardcode_into_libs=yes
10798 dynamic_linker="$host_os dld.so"
10799 shlibpath_var=LD_LIBRARY_PATH
10800 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10802 soname_spec='${libname}${release}${shared_ext}$major'
10803 if test "X$HPUX_IA64_MODE" = X32; then
10804 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10805 else
10806 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10807 fi
10808 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10809 ;;
10810 hppa*64*)
10811 shrext_cmds='.sl'
10812 hardcode_into_libs=yes
10813 dynamic_linker="$host_os dld.sl"
10814 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10815 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10817 soname_spec='${libname}${release}${shared_ext}$major'
10818 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10819 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10820 ;;
10821 *)
10822 shrext_cmds='.sl'
10823 dynamic_linker="$host_os dld.sl"
10824 shlibpath_var=SHLIB_PATH
10825 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10827 soname_spec='${libname}${release}${shared_ext}$major'
10828 ;;
10829 esac
10830 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10831 postinstall_cmds='chmod 555 $lib'
10832 ;;
10833
10834interix[3-9]*)
10835 version_type=linux
10836 need_lib_prefix=no
10837 need_version=no
10838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10839 soname_spec='${libname}${release}${shared_ext}$major'
10840 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10841 shlibpath_var=LD_LIBRARY_PATH
10842 shlibpath_overrides_runpath=no
10843 hardcode_into_libs=yes
10844 ;;
10845
10846irix5* | irix6* | nonstopux*)
10847 case $host_os in
10848 nonstopux*) version_type=nonstopux ;;
10849 *)
10850 if test "$lt_cv_prog_gnu_ld" = yes; then
10851 version_type=linux
10852 else
10853 version_type=irix
10854 fi ;;
10855 esac
10856 need_lib_prefix=no
10857 need_version=no
10858 soname_spec='${libname}${release}${shared_ext}$major'
10859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10860 case $host_os in
10861 irix5* | nonstopux*)
10862 libsuff= shlibsuff=
10863 ;;
10864 *)
10865 case $LD in # libtool.m4 will add one of these switches to LD
10866 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10867 libsuff= shlibsuff= libmagic=32-bit;;
10868 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10869 libsuff=32 shlibsuff=N32 libmagic=N32;;
10870 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10871 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10872 *) libsuff= shlibsuff= libmagic=never-match;;
10873 esac
10874 ;;
10875 esac
10876 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10877 shlibpath_overrides_runpath=no
10878 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10879 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10880 hardcode_into_libs=yes
10881 ;;
10882
10883# No shared lib support for Linux oldld, aout, or coff.
10884linux*oldld* | linux*aout* | linux*coff*)
10885 dynamic_linker=no
10886 ;;
10887
10888# This must be Linux ELF.
10889linux* | k*bsd*-gnu)
10890 version_type=linux
10891 need_lib_prefix=no
10892 need_version=no
10893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10894 soname_spec='${libname}${release}${shared_ext}$major'
10895 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10896 shlibpath_var=LD_LIBRARY_PATH
10897 shlibpath_overrides_runpath=no
10898 # Some binutils ld are patched to set DT_RUNPATH
10899 save_LDFLAGS=$LDFLAGS
10900 save_libdir=$libdir
10901 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10902 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10903 cat >conftest.$ac_ext <<_ACEOF
10904/* confdefs.h. */
10905_ACEOF
10906cat confdefs.h >>conftest.$ac_ext
10907cat >>conftest.$ac_ext <<_ACEOF
10908/* end confdefs.h. */
10909
10910int
10911main ()
10912{
10913
10914 ;
10915 return 0;
10916}
10917_ACEOF
10918rm -f conftest.$ac_objext conftest$ac_exeext
10919if { (ac_try="$ac_link"
10920case "(($ac_try" in
10921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10922 *) ac_try_echo=$ac_try;;
10923esac
10924eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10925$as_echo "$ac_try_echo") >&5
10926 (eval "$ac_link") 2>conftest.er1
10927 ac_status=$?
10928 grep -v '^ *+' conftest.er1 >conftest.err
10929 rm -f conftest.er1
10930 cat conftest.err >&5
10931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932 (exit $ac_status); } && {
10933 test -z "$ac_c_werror_flag" ||
10934 test ! -s conftest.err
10935 } && test -s conftest$ac_exeext && {
10936 test "$cross_compiling" = yes ||
10937 $as_test_x conftest$ac_exeext
10938 }; then
10939 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10940 shlibpath_overrides_runpath=yes
10941fi
10942
10943else
10944 $as_echo "$as_me: failed program was:" >&5
10945sed 's/^/| /' conftest.$ac_ext >&5
10946
10947
10948fi
10949
10950rm -rf conftest.dSYM
10951rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10952 conftest$ac_exeext conftest.$ac_ext
10953 LDFLAGS=$save_LDFLAGS
10954 libdir=$save_libdir
10955
10956 # This implies no fast_install, which is unacceptable.
10957 # Some rework will be needed to allow for fast_install
10958 # before this can be enabled.
10959 hardcode_into_libs=yes
10960
10961 # Add ABI-specific directories to the system library path.
10962 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10963
10964 # Append ld.so.conf contents to the search path
10965 if test -f /etc/ld.so.conf; then
10966 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10967 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10968 fi
10969
10970 # We used to test for /lib/ld.so.1 and disable shared libraries on
10971 # powerpc, because MkLinux only supported shared libraries with the
10972 # GNU dynamic linker. Since this was broken with cross compilers,
10973 # most powerpc-linux boxes support dynamic linking these days and
10974 # people can always --disable-shared, the test was removed, and we
10975 # assume the GNU/Linux dynamic linker is in use.
10976 dynamic_linker='GNU/Linux ld.so'
10977 ;;
10978
10979netbsd*)
10980 version_type=sunos
10981 need_lib_prefix=no
10982 need_version=no
10983 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10985 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10986 dynamic_linker='NetBSD (a.out) ld.so'
10987 else
10988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10989 soname_spec='${libname}${release}${shared_ext}$major'
10990 dynamic_linker='NetBSD ld.elf_so'
10991 fi
10992 shlibpath_var=LD_LIBRARY_PATH
10993 shlibpath_overrides_runpath=yes
10994 hardcode_into_libs=yes
10995 ;;
10996
10997newsos6)
10998 version_type=linux
10999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11000 shlibpath_var=LD_LIBRARY_PATH
11001 shlibpath_overrides_runpath=yes
11002 ;;
11003
11004*nto* | *qnx*)
11005 version_type=qnx
11006 need_lib_prefix=no
11007 need_version=no
11008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11009 soname_spec='${libname}${release}${shared_ext}$major'
11010 shlibpath_var=LD_LIBRARY_PATH
11011 shlibpath_overrides_runpath=no
11012 hardcode_into_libs=yes
11013 dynamic_linker='ldqnx.so'
11014 ;;
11015
11016openbsd*)
11017 version_type=sunos
11018 sys_lib_dlsearch_path_spec="/usr/lib"
11019 need_lib_prefix=no
11020 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11021 case $host_os in
11022 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11023 *) need_version=no ;;
11024 esac
11025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11026 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11027 shlibpath_var=LD_LIBRARY_PATH
11028 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11029 case $host_os in
11030 openbsd2.[89] | openbsd2.[89].*)
11031 shlibpath_overrides_runpath=no
11032 ;;
11033 *)
11034 shlibpath_overrides_runpath=yes
11035 ;;
11036 esac
11037 else
11038 shlibpath_overrides_runpath=yes
11039 fi
11040 ;;
11041
11042os2*)
11043 libname_spec='$name'
11044 shrext_cmds=".dll"
11045 need_lib_prefix=no
11046 library_names_spec='$libname${shared_ext} $libname.a'
11047 dynamic_linker='OS/2 ld.exe'
11048 shlibpath_var=LIBPATH
11049 ;;
11050
11051osf3* | osf4* | osf5*)
11052 version_type=osf
11053 need_lib_prefix=no
11054 need_version=no
11055 soname_spec='${libname}${release}${shared_ext}$major'
11056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11057 shlibpath_var=LD_LIBRARY_PATH
11058 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11059 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11060 ;;
11061
11062rdos*)
11063 dynamic_linker=no
11064 ;;
11065
11066solaris*)
11067 version_type=linux
11068 need_lib_prefix=no
11069 need_version=no
11070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11071 soname_spec='${libname}${release}${shared_ext}$major'
11072 shlibpath_var=LD_LIBRARY_PATH
11073 shlibpath_overrides_runpath=yes
11074 hardcode_into_libs=yes
11075 # ldd complains unless libraries are executable
11076 postinstall_cmds='chmod +x $lib'
11077 ;;
11078
11079sunos4*)
11080 version_type=sunos
11081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11082 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11083 shlibpath_var=LD_LIBRARY_PATH
11084 shlibpath_overrides_runpath=yes
11085 if test "$with_gnu_ld" = yes; then
11086 need_lib_prefix=no
11087 fi
11088 need_version=yes
11089 ;;
11090
11091sysv4 | sysv4.3*)
11092 version_type=linux
11093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11094 soname_spec='${libname}${release}${shared_ext}$major'
11095 shlibpath_var=LD_LIBRARY_PATH
11096 case $host_vendor in
11097 sni)
11098 shlibpath_overrides_runpath=no
11099 need_lib_prefix=no
11100 runpath_var=LD_RUN_PATH
11101 ;;
11102 siemens)
11103 need_lib_prefix=no
11104 ;;
11105 motorola)
11106 need_lib_prefix=no
11107 need_version=no
11108 shlibpath_overrides_runpath=no
11109 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11110 ;;
11111 esac
11112 ;;
11113
11114sysv4*MP*)
11115 if test -d /usr/nec ;then
11116 version_type=linux
11117 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11118 soname_spec='$libname${shared_ext}.$major'
11119 shlibpath_var=LD_LIBRARY_PATH
11120 fi
11121 ;;
11122
11123sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11124 version_type=freebsd-elf
11125 need_lib_prefix=no
11126 need_version=no
11127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11128 soname_spec='${libname}${release}${shared_ext}$major'
11129 shlibpath_var=LD_LIBRARY_PATH
11130 shlibpath_overrides_runpath=yes
11131 hardcode_into_libs=yes
11132 if test "$with_gnu_ld" = yes; then
11133 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11134 else
11135 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11136 case $host_os in
11137 sco3.2v5*)
11138 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11139 ;;
11140 esac
11141 fi
11142 sys_lib_dlsearch_path_spec='/usr/lib'
11143 ;;
11144
11145tpf*)
11146 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11147 version_type=linux
11148 need_lib_prefix=no
11149 need_version=no
11150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11151 shlibpath_var=LD_LIBRARY_PATH
11152 shlibpath_overrides_runpath=no
11153 hardcode_into_libs=yes
11154 ;;
11155
11156uts4*)
11157 version_type=linux
11158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11159 soname_spec='${libname}${release}${shared_ext}$major'
11160 shlibpath_var=LD_LIBRARY_PATH
11161 ;;
11162
11163*)
11164 dynamic_linker=no
11165 ;;
11166esac
11167{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11168$as_echo "$dynamic_linker" >&6; }
11169test "$dynamic_linker" = no && can_build_shared=no
11170
11171variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11172if test "$GCC" = yes; then
11173 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11174fi
11175
11176if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11177 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11178fi
11179if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11180 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11181fi
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11270$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11271hardcode_action=
11272if test -n "$hardcode_libdir_flag_spec" ||
11273 test -n "$runpath_var" ||
11274 test "X$hardcode_automatic" = "Xyes" ; then
11275
11276 # We can hardcode non-existent directories.
11277 if test "$hardcode_direct" != no &&
11278 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11279 # have to relink, otherwise we might link with an installed library
11280 # when we should be linking with a yet-to-be-installed one
11281 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11282 test "$hardcode_minus_L" != no; then
11283 # Linking always hardcodes the temporary library directory.
11284 hardcode_action=relink
11285 else
11286 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11287 hardcode_action=immediate
11288 fi
11289else
11290 # We cannot hardcode anything, or else we can only hardcode existing
11291 # directories.
11292 hardcode_action=unsupported
11293fi
11294{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
11295$as_echo "$hardcode_action" >&6; }
11296
11297if test "$hardcode_action" = relink ||
11298 test "$inherit_rpath" = yes; then
11299 # Fast installation is not supported
11300 enable_fast_install=no
11301elif test "$shlibpath_overrides_runpath" = yes ||
11302 test "$enable_shared" = no; then
11303 # Fast installation is not necessary
11304 enable_fast_install=needless
11305fi
11306
11307
11308
11309
11310
11311
11312 if test "x$enable_dlopen" != xyes; then
11313 enable_dlopen=unknown
11314 enable_dlopen_self=unknown
11315 enable_dlopen_self_static=unknown
11316else
11317 lt_cv_dlopen=no
11318 lt_cv_dlopen_libs=
11319
11320 case $host_os in
11321 beos*)
11322 lt_cv_dlopen="load_add_on"
11323 lt_cv_dlopen_libs=
11324 lt_cv_dlopen_self=yes
11325 ;;
11326
11327 mingw* | pw32* | cegcc*)
11328 lt_cv_dlopen="LoadLibrary"
11329 lt_cv_dlopen_libs=
11330 ;;
11331
11332 cygwin*)
11333 lt_cv_dlopen="dlopen"
11334 lt_cv_dlopen_libs=
11335 ;;
11336
11337 darwin*)
11338 # if libdl is installed we need to link against it
11339 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11340$as_echo_n "checking for dlopen in -ldl... " >&6; }
11341if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11342 $as_echo_n "(cached) " >&6
11343else
11344 ac_check_lib_save_LIBS=$LIBS
11345LIBS="-ldl $LIBS"
11346cat >conftest.$ac_ext <<_ACEOF
11347/* confdefs.h. */
11348_ACEOF
11349cat confdefs.h >>conftest.$ac_ext
11350cat >>conftest.$ac_ext <<_ACEOF
11351/* end confdefs.h. */
11352
11353/* Override any GCC internal prototype to avoid an error.
11354 Use char because int might match the return type of a GCC
11355 builtin and then its argument prototype would still apply. */
11356#ifdef __cplusplus
11357extern "C"
11358#endif
11359char dlopen ();
11360int
11361main ()
11362{
11363return dlopen ();
11364 ;
11365 return 0;
11366}
11367_ACEOF
11368rm -f conftest.$ac_objext conftest$ac_exeext
11369if { (ac_try="$ac_link"
11370case "(($ac_try" in
11371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11372 *) ac_try_echo=$ac_try;;
11373esac
11374eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11375$as_echo "$ac_try_echo") >&5
11376 (eval "$ac_link") 2>conftest.er1
11377 ac_status=$?
11378 grep -v '^ *+' conftest.er1 >conftest.err
11379 rm -f conftest.er1
11380 cat conftest.err >&5
11381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11382 (exit $ac_status); } && {
11383 test -z "$ac_c_werror_flag" ||
11384 test ! -s conftest.err
11385 } && test -s conftest$ac_exeext && {
11386 test "$cross_compiling" = yes ||
11387 $as_test_x conftest$ac_exeext
11388 }; then
11389 ac_cv_lib_dl_dlopen=yes
11390else
11391 $as_echo "$as_me: failed program was:" >&5
11392sed 's/^/| /' conftest.$ac_ext >&5
11393
11394 ac_cv_lib_dl_dlopen=no
11395fi
11396
11397rm -rf conftest.dSYM
11398rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11399 conftest$ac_exeext conftest.$ac_ext
11400LIBS=$ac_check_lib_save_LIBS
11401fi
11402{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11403$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11404if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11405 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11406else
11407
11408 lt_cv_dlopen="dyld"
11409 lt_cv_dlopen_libs=
11410 lt_cv_dlopen_self=yes
11411
11412fi
11413
11414 ;;
11415
11416 *)
11417 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
11418$as_echo_n "checking for shl_load... " >&6; }
11419if test "${ac_cv_func_shl_load+set}" = set; then
11420 $as_echo_n "(cached) " >&6
11421else
11422 cat >conftest.$ac_ext <<_ACEOF
11423/* confdefs.h. */
11424_ACEOF
11425cat confdefs.h >>conftest.$ac_ext
11426cat >>conftest.$ac_ext <<_ACEOF
11427/* end confdefs.h. */
11428/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11429 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11430#define shl_load innocuous_shl_load
11431
11432/* System header to define __stub macros and hopefully few prototypes,
11433 which can conflict with char shl_load (); below.
11434 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11435 <limits.h> exists even on freestanding compilers. */
11436
11437#ifdef __STDC__
11438# include <limits.h>
11439#else
11440# include <assert.h>
11441#endif
11442
11443#undef shl_load
11444
11445/* Override any GCC internal prototype to avoid an error.
11446 Use char because int might match the return type of a GCC
11447 builtin and then its argument prototype would still apply. */
11448#ifdef __cplusplus
11449extern "C"
11450#endif
11451char shl_load ();
11452/* The GNU C library defines this for functions which it implements
11453 to always fail with ENOSYS. Some functions are actually named
11454 something starting with __ and the normal name is an alias. */
11455#if defined __stub_shl_load || defined __stub___shl_load
11456choke me
11457#endif
11458
11459int
11460main ()
11461{
11462return shl_load ();
11463 ;
11464 return 0;
11465}
11466_ACEOF
11467rm -f conftest.$ac_objext conftest$ac_exeext
11468if { (ac_try="$ac_link"
11469case "(($ac_try" in
11470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11471 *) ac_try_echo=$ac_try;;
11472esac
11473eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11474$as_echo "$ac_try_echo") >&5
11475 (eval "$ac_link") 2>conftest.er1
11476 ac_status=$?
11477 grep -v '^ *+' conftest.er1 >conftest.err
11478 rm -f conftest.er1
11479 cat conftest.err >&5
11480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11481 (exit $ac_status); } && {
11482 test -z "$ac_c_werror_flag" ||
11483 test ! -s conftest.err
11484 } && test -s conftest$ac_exeext && {
11485 test "$cross_compiling" = yes ||
11486 $as_test_x conftest$ac_exeext
11487 }; then
11488 ac_cv_func_shl_load=yes
11489else
11490 $as_echo "$as_me: failed program was:" >&5
11491sed 's/^/| /' conftest.$ac_ext >&5
11492
11493 ac_cv_func_shl_load=no
11494fi
11495
11496rm -rf conftest.dSYM
11497rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11498 conftest$ac_exeext conftest.$ac_ext
11499fi
11500{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11501$as_echo "$ac_cv_func_shl_load" >&6; }
11502if test "x$ac_cv_func_shl_load" = x""yes; then
11503 lt_cv_dlopen="shl_load"
11504else
11505 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11506$as_echo_n "checking for shl_load in -ldld... " >&6; }
11507if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11508 $as_echo_n "(cached) " >&6
11509else
11510 ac_check_lib_save_LIBS=$LIBS
11511LIBS="-ldld $LIBS"
11512cat >conftest.$ac_ext <<_ACEOF
11513/* confdefs.h. */
11514_ACEOF
11515cat confdefs.h >>conftest.$ac_ext
11516cat >>conftest.$ac_ext <<_ACEOF
11517/* end confdefs.h. */
11518
11519/* Override any GCC internal prototype to avoid an error.
11520 Use char because int might match the return type of a GCC
11521 builtin and then its argument prototype would still apply. */
11522#ifdef __cplusplus
11523extern "C"
11524#endif
11525char shl_load ();
11526int
11527main ()
11528{
11529return shl_load ();
11530 ;
11531 return 0;
11532}
11533_ACEOF
11534rm -f conftest.$ac_objext conftest$ac_exeext
11535if { (ac_try="$ac_link"
11536case "(($ac_try" in
11537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11538 *) ac_try_echo=$ac_try;;
11539esac
11540eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11541$as_echo "$ac_try_echo") >&5
11542 (eval "$ac_link") 2>conftest.er1
11543 ac_status=$?
11544 grep -v '^ *+' conftest.er1 >conftest.err
11545 rm -f conftest.er1
11546 cat conftest.err >&5
11547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548 (exit $ac_status); } && {
11549 test -z "$ac_c_werror_flag" ||
11550 test ! -s conftest.err
11551 } && test -s conftest$ac_exeext && {
11552 test "$cross_compiling" = yes ||
11553 $as_test_x conftest$ac_exeext
11554 }; then
11555 ac_cv_lib_dld_shl_load=yes
11556else
11557 $as_echo "$as_me: failed program was:" >&5
11558sed 's/^/| /' conftest.$ac_ext >&5
11559
11560 ac_cv_lib_dld_shl_load=no
11561fi
11562
11563rm -rf conftest.dSYM
11564rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11565 conftest$ac_exeext conftest.$ac_ext
11566LIBS=$ac_check_lib_save_LIBS
11567fi
11568{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11569$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11570if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
11571 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11572else
11573 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
11574$as_echo_n "checking for dlopen... " >&6; }
11575if test "${ac_cv_func_dlopen+set}" = set; then
11576 $as_echo_n "(cached) " >&6
11577else
11578 cat >conftest.$ac_ext <<_ACEOF
11579/* confdefs.h. */
11580_ACEOF
11581cat confdefs.h >>conftest.$ac_ext
11582cat >>conftest.$ac_ext <<_ACEOF
11583/* end confdefs.h. */
11584/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11585 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11586#define dlopen innocuous_dlopen
11587
11588/* System header to define __stub macros and hopefully few prototypes,
11589 which can conflict with char dlopen (); below.
11590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11591 <limits.h> exists even on freestanding compilers. */
11592
11593#ifdef __STDC__
11594# include <limits.h>
11595#else
11596# include <assert.h>
11597#endif
11598
11599#undef dlopen
11600
11601/* Override any GCC internal prototype to avoid an error.
11602 Use char because int might match the return type of a GCC
11603 builtin and then its argument prototype would still apply. */
11604#ifdef __cplusplus
11605extern "C"
11606#endif
11607char dlopen ();
11608/* The GNU C library defines this for functions which it implements
11609 to always fail with ENOSYS. Some functions are actually named
11610 something starting with __ and the normal name is an alias. */
11611#if defined __stub_dlopen || defined __stub___dlopen
11612choke me
11613#endif
11614
11615int
11616main ()
11617{
11618return dlopen ();
11619 ;
11620 return 0;
11621}
11622_ACEOF
11623rm -f conftest.$ac_objext conftest$ac_exeext
11624if { (ac_try="$ac_link"
11625case "(($ac_try" in
11626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11627 *) ac_try_echo=$ac_try;;
11628esac
11629eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11630$as_echo "$ac_try_echo") >&5
11631 (eval "$ac_link") 2>conftest.er1
11632 ac_status=$?
11633 grep -v '^ *+' conftest.er1 >conftest.err
11634 rm -f conftest.er1
11635 cat conftest.err >&5
11636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637 (exit $ac_status); } && {
11638 test -z "$ac_c_werror_flag" ||
11639 test ! -s conftest.err
11640 } && test -s conftest$ac_exeext && {
11641 test "$cross_compiling" = yes ||
11642 $as_test_x conftest$ac_exeext
11643 }; then
11644 ac_cv_func_dlopen=yes
11645else
11646 $as_echo "$as_me: failed program was:" >&5
11647sed 's/^/| /' conftest.$ac_ext >&5
11648
11649 ac_cv_func_dlopen=no
11650fi
11651
11652rm -rf conftest.dSYM
11653rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11654 conftest$ac_exeext conftest.$ac_ext
11655fi
11656{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11657$as_echo "$ac_cv_func_dlopen" >&6; }
11658if test "x$ac_cv_func_dlopen" = x""yes; then
11659 lt_cv_dlopen="dlopen"
11660else
11661 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11662$as_echo_n "checking for dlopen in -ldl... " >&6; }
11663if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11664 $as_echo_n "(cached) " >&6
11665else
11666 ac_check_lib_save_LIBS=$LIBS
11667LIBS="-ldl $LIBS"
11668cat >conftest.$ac_ext <<_ACEOF
11669/* confdefs.h. */
11670_ACEOF
11671cat confdefs.h >>conftest.$ac_ext
11672cat >>conftest.$ac_ext <<_ACEOF
11673/* end confdefs.h. */
11674
11675/* Override any GCC internal prototype to avoid an error.
11676 Use char because int might match the return type of a GCC
11677 builtin and then its argument prototype would still apply. */
11678#ifdef __cplusplus
11679extern "C"
11680#endif
11681char dlopen ();
11682int
11683main ()
11684{
11685return dlopen ();
11686 ;
11687 return 0;
11688}
11689_ACEOF
11690rm -f conftest.$ac_objext conftest$ac_exeext
11691if { (ac_try="$ac_link"
11692case "(($ac_try" in
11693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11694 *) ac_try_echo=$ac_try;;
11695esac
11696eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11697$as_echo "$ac_try_echo") >&5
11698 (eval "$ac_link") 2>conftest.er1
11699 ac_status=$?
11700 grep -v '^ *+' conftest.er1 >conftest.err
11701 rm -f conftest.er1
11702 cat conftest.err >&5
11703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704 (exit $ac_status); } && {
11705 test -z "$ac_c_werror_flag" ||
11706 test ! -s conftest.err
11707 } && test -s conftest$ac_exeext && {
11708 test "$cross_compiling" = yes ||
11709 $as_test_x conftest$ac_exeext
11710 }; then
11711 ac_cv_lib_dl_dlopen=yes
11712else
11713 $as_echo "$as_me: failed program was:" >&5
11714sed 's/^/| /' conftest.$ac_ext >&5
11715
11716 ac_cv_lib_dl_dlopen=no
11717fi
11718
11719rm -rf conftest.dSYM
11720rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11721 conftest$ac_exeext conftest.$ac_ext
11722LIBS=$ac_check_lib_save_LIBS
11723fi
11724{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11725$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11726if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11727 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11728else
11729 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11730$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11731if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11732 $as_echo_n "(cached) " >&6
11733else
11734 ac_check_lib_save_LIBS=$LIBS
11735LIBS="-lsvld $LIBS"
11736cat >conftest.$ac_ext <<_ACEOF
11737/* confdefs.h. */
11738_ACEOF
11739cat confdefs.h >>conftest.$ac_ext
11740cat >>conftest.$ac_ext <<_ACEOF
11741/* end confdefs.h. */
11742
11743/* Override any GCC internal prototype to avoid an error.
11744 Use char because int might match the return type of a GCC
11745 builtin and then its argument prototype would still apply. */
11746#ifdef __cplusplus
11747extern "C"
11748#endif
11749char dlopen ();
11750int
11751main ()
11752{
11753return dlopen ();
11754 ;
11755 return 0;
11756}
11757_ACEOF
11758rm -f conftest.$ac_objext conftest$ac_exeext
11759if { (ac_try="$ac_link"
11760case "(($ac_try" in
11761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11762 *) ac_try_echo=$ac_try;;
11763esac
11764eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11765$as_echo "$ac_try_echo") >&5
11766 (eval "$ac_link") 2>conftest.er1
11767 ac_status=$?
11768 grep -v '^ *+' conftest.er1 >conftest.err
11769 rm -f conftest.er1
11770 cat conftest.err >&5
11771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772 (exit $ac_status); } && {
11773 test -z "$ac_c_werror_flag" ||
11774 test ! -s conftest.err
11775 } && test -s conftest$ac_exeext && {
11776 test "$cross_compiling" = yes ||
11777 $as_test_x conftest$ac_exeext
11778 }; then
11779 ac_cv_lib_svld_dlopen=yes
11780else
11781 $as_echo "$as_me: failed program was:" >&5
11782sed 's/^/| /' conftest.$ac_ext >&5
11783
11784 ac_cv_lib_svld_dlopen=no
11785fi
11786
11787rm -rf conftest.dSYM
11788rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11789 conftest$ac_exeext conftest.$ac_ext
11790LIBS=$ac_check_lib_save_LIBS
11791fi
11792{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11793$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11794if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11795 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11796else
11797 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11798$as_echo_n "checking for dld_link in -ldld... " >&6; }
11799if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11800 $as_echo_n "(cached) " >&6
11801else
11802 ac_check_lib_save_LIBS=$LIBS
11803LIBS="-ldld $LIBS"
11804cat >conftest.$ac_ext <<_ACEOF
11805/* confdefs.h. */
11806_ACEOF
11807cat confdefs.h >>conftest.$ac_ext
11808cat >>conftest.$ac_ext <<_ACEOF
11809/* end confdefs.h. */
11810
11811/* Override any GCC internal prototype to avoid an error.
11812 Use char because int might match the return type of a GCC
11813 builtin and then its argument prototype would still apply. */
11814#ifdef __cplusplus
11815extern "C"
11816#endif
11817char dld_link ();
11818int
11819main ()
11820{
11821return dld_link ();
11822 ;
11823 return 0;
11824}
11825_ACEOF
11826rm -f conftest.$ac_objext conftest$ac_exeext
11827if { (ac_try="$ac_link"
11828case "(($ac_try" in
11829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11830 *) ac_try_echo=$ac_try;;
11831esac
11832eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11833$as_echo "$ac_try_echo") >&5
11834 (eval "$ac_link") 2>conftest.er1
11835 ac_status=$?
11836 grep -v '^ *+' conftest.er1 >conftest.err
11837 rm -f conftest.er1
11838 cat conftest.err >&5
11839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840 (exit $ac_status); } && {
11841 test -z "$ac_c_werror_flag" ||
11842 test ! -s conftest.err
11843 } && test -s conftest$ac_exeext && {
11844 test "$cross_compiling" = yes ||
11845 $as_test_x conftest$ac_exeext
11846 }; then
11847 ac_cv_lib_dld_dld_link=yes
11848else
11849 $as_echo "$as_me: failed program was:" >&5
11850sed 's/^/| /' conftest.$ac_ext >&5
11851
11852 ac_cv_lib_dld_dld_link=no
11853fi
11854
11855rm -rf conftest.dSYM
11856rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11857 conftest$ac_exeext conftest.$ac_ext
11858LIBS=$ac_check_lib_save_LIBS
11859fi
11860{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11861$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11862if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11863 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11864fi
11865
11866
11867fi
11868
11869
11870fi
11871
11872
11873fi
11874
11875
11876fi
11877
11878
11879fi
11880
11881 ;;
11882 esac
11883
11884 if test "x$lt_cv_dlopen" != xno; then
11885 enable_dlopen=yes
11886 else
11887 enable_dlopen=no
11888 fi
11889
11890 case $lt_cv_dlopen in
11891 dlopen)
11892 save_CPPFLAGS="$CPPFLAGS"
11893 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11894
11895 save_LDFLAGS="$LDFLAGS"
11896 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11897
11898 save_LIBS="$LIBS"
11899 LIBS="$lt_cv_dlopen_libs $LIBS"
11900
11901 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11902$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11903if test "${lt_cv_dlopen_self+set}" = set; then
11904 $as_echo_n "(cached) " >&6
11905else
11906 if test "$cross_compiling" = yes; then :
11907 lt_cv_dlopen_self=cross
11908else
11909 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11910 lt_status=$lt_dlunknown
11911 cat > conftest.$ac_ext <<_LT_EOF
Adam Tkaca4c2fae2009-03-12 18:21:41 +000011912#line 11912 "configure"
Adam Tkacfc4cd712009-03-11 11:14:37 +000011913#include "confdefs.h"
11914
11915#if HAVE_DLFCN_H
11916#include <dlfcn.h>
11917#endif
11918
11919#include <stdio.h>
11920
11921#ifdef RTLD_GLOBAL
11922# define LT_DLGLOBAL RTLD_GLOBAL
11923#else
11924# ifdef DL_GLOBAL
11925# define LT_DLGLOBAL DL_GLOBAL
11926# else
11927# define LT_DLGLOBAL 0
11928# endif
11929#endif
11930
11931/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11932 find out it does not work in some platform. */
11933#ifndef LT_DLLAZY_OR_NOW
11934# ifdef RTLD_LAZY
11935# define LT_DLLAZY_OR_NOW RTLD_LAZY
11936# else
11937# ifdef DL_LAZY
11938# define LT_DLLAZY_OR_NOW DL_LAZY
11939# else
11940# ifdef RTLD_NOW
11941# define LT_DLLAZY_OR_NOW RTLD_NOW
11942# else
11943# ifdef DL_NOW
11944# define LT_DLLAZY_OR_NOW DL_NOW
11945# else
11946# define LT_DLLAZY_OR_NOW 0
11947# endif
11948# endif
11949# endif
11950# endif
11951#endif
11952
11953void fnord() { int i=42;}
11954int main ()
11955{
11956 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11957 int status = $lt_dlunknown;
11958
11959 if (self)
11960 {
11961 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11962 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11963 /* dlclose (self); */
11964 }
11965 else
11966 puts (dlerror ());
11967
11968 return status;
11969}
11970_LT_EOF
11971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11972 (eval $ac_link) 2>&5
11973 ac_status=$?
11974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11976 (./conftest; exit; ) >&5 2>/dev/null
11977 lt_status=$?
11978 case x$lt_status in
11979 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11980 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11981 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11982 esac
11983 else :
11984 # compilation failed
11985 lt_cv_dlopen_self=no
11986 fi
11987fi
11988rm -fr conftest*
11989
11990
11991fi
11992{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11993$as_echo "$lt_cv_dlopen_self" >&6; }
11994
11995 if test "x$lt_cv_dlopen_self" = xyes; then
11996 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11997 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11998$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11999if test "${lt_cv_dlopen_self_static+set}" = set; then
12000 $as_echo_n "(cached) " >&6
12001else
12002 if test "$cross_compiling" = yes; then :
12003 lt_cv_dlopen_self_static=cross
12004else
12005 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12006 lt_status=$lt_dlunknown
12007 cat > conftest.$ac_ext <<_LT_EOF
Adam Tkaca4c2fae2009-03-12 18:21:41 +000012008#line 12008 "configure"
Adam Tkacfc4cd712009-03-11 11:14:37 +000012009#include "confdefs.h"
12010
12011#if HAVE_DLFCN_H
12012#include <dlfcn.h>
12013#endif
12014
12015#include <stdio.h>
12016
12017#ifdef RTLD_GLOBAL
12018# define LT_DLGLOBAL RTLD_GLOBAL
12019#else
12020# ifdef DL_GLOBAL
12021# define LT_DLGLOBAL DL_GLOBAL
12022# else
12023# define LT_DLGLOBAL 0
12024# endif
12025#endif
12026
12027/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12028 find out it does not work in some platform. */
12029#ifndef LT_DLLAZY_OR_NOW
12030# ifdef RTLD_LAZY
12031# define LT_DLLAZY_OR_NOW RTLD_LAZY
12032# else
12033# ifdef DL_LAZY
12034# define LT_DLLAZY_OR_NOW DL_LAZY
12035# else
12036# ifdef RTLD_NOW
12037# define LT_DLLAZY_OR_NOW RTLD_NOW
12038# else
12039# ifdef DL_NOW
12040# define LT_DLLAZY_OR_NOW DL_NOW
12041# else
12042# define LT_DLLAZY_OR_NOW 0
12043# endif
12044# endif
12045# endif
12046# endif
12047#endif
12048
12049void fnord() { int i=42;}
12050int main ()
12051{
12052 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12053 int status = $lt_dlunknown;
12054
12055 if (self)
12056 {
12057 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12058 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12059 /* dlclose (self); */
12060 }
12061 else
12062 puts (dlerror ());
12063
12064 return status;
12065}
12066_LT_EOF
12067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12068 (eval $ac_link) 2>&5
12069 ac_status=$?
12070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12072 (./conftest; exit; ) >&5 2>/dev/null
12073 lt_status=$?
12074 case x$lt_status in
12075 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12076 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12077 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12078 esac
12079 else :
12080 # compilation failed
12081 lt_cv_dlopen_self_static=no
12082 fi
12083fi
12084rm -fr conftest*
12085
12086
12087fi
12088{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12089$as_echo "$lt_cv_dlopen_self_static" >&6; }
12090 fi
12091
12092 CPPFLAGS="$save_CPPFLAGS"
12093 LDFLAGS="$save_LDFLAGS"
12094 LIBS="$save_LIBS"
12095 ;;
12096 esac
12097
12098 case $lt_cv_dlopen_self in
12099 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12100 *) enable_dlopen_self=unknown ;;
12101 esac
12102
12103 case $lt_cv_dlopen_self_static in
12104 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12105 *) enable_dlopen_self_static=unknown ;;
12106 esac
12107fi
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125striplib=
12126old_striplib=
12127{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12128$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12129if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12130 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12131 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12132 { $as_echo "$as_me:$LINENO: result: yes" >&5
12133$as_echo "yes" >&6; }
12134else
12135# FIXME - insert some real tests, host_os isn't really good enough
12136 case $host_os in
12137 darwin*)
12138 if test -n "$STRIP" ; then
12139 striplib="$STRIP -x"
12140 old_striplib="$STRIP -S"
12141 { $as_echo "$as_me:$LINENO: result: yes" >&5
12142$as_echo "yes" >&6; }
12143 else
12144 { $as_echo "$as_me:$LINENO: result: no" >&5
12145$as_echo "no" >&6; }
12146 fi
12147 ;;
12148 *)
12149 { $as_echo "$as_me:$LINENO: result: no" >&5
12150$as_echo "no" >&6; }
12151 ;;
12152 esac
12153fi
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166 # Report which library types will actually be built
12167 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12168$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12169 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
12170$as_echo "$can_build_shared" >&6; }
12171
12172 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12173$as_echo_n "checking whether to build shared libraries... " >&6; }
12174 test "$can_build_shared" = "no" && enable_shared=no
12175
12176 # On AIX, shared libraries and static libraries use the same namespace, and
12177 # are all built from PIC.
12178 case $host_os in
12179 aix3*)
12180 test "$enable_shared" = yes && enable_static=no
12181 if test -n "$RANLIB"; then
12182 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12183 postinstall_cmds='$RANLIB $lib'
12184 fi
12185 ;;
12186
12187 aix[4-9]*)
12188 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12189 test "$enable_shared" = yes && enable_static=no
12190 fi
12191 ;;
12192 esac
12193 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
12194$as_echo "$enable_shared" >&6; }
12195
12196 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12197$as_echo_n "checking whether to build static libraries... " >&6; }
12198 # Make sure either enable_shared or enable_static is yes.
12199 test "$enable_shared" = yes || enable_static=yes
12200 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
12201$as_echo "$enable_static" >&6; }
12202
12203
12204
12205
12206fi
12207ac_ext=c
12208ac_cpp='$CPP $CPPFLAGS'
12209ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12210ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12211ac_compiler_gnu=$ac_cv_c_compiler_gnu
12212
12213CC="$lt_save_CC"
12214
12215
12216ac_ext=cpp
12217ac_cpp='$CXXCPP $CPPFLAGS'
12218ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12219ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12220ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12221
12222archive_cmds_need_lc_CXX=no
12223allow_undefined_flag_CXX=
12224always_export_symbols_CXX=no
12225archive_expsym_cmds_CXX=
12226compiler_needs_object_CXX=no
12227export_dynamic_flag_spec_CXX=
12228hardcode_direct_CXX=no
12229hardcode_direct_absolute_CXX=no
12230hardcode_libdir_flag_spec_CXX=
12231hardcode_libdir_flag_spec_ld_CXX=
12232hardcode_libdir_separator_CXX=
12233hardcode_minus_L_CXX=no
12234hardcode_shlibpath_var_CXX=unsupported
12235hardcode_automatic_CXX=no
12236inherit_rpath_CXX=no
12237module_cmds_CXX=
12238module_expsym_cmds_CXX=
12239link_all_deplibs_CXX=unknown
12240old_archive_cmds_CXX=$old_archive_cmds
12241no_undefined_flag_CXX=
12242whole_archive_flag_spec_CXX=
12243enable_shared_with_static_runtimes_CXX=no
12244
12245# Source file extension for C++ test sources.
12246ac_ext=cpp
12247
12248# Object file extension for compiled C++ test sources.
12249objext=o
12250objext_CXX=$objext
12251
12252# No sense in running all these tests if we already determined that
12253# the CXX compiler isn't working. Some variables (like enable_shared)
12254# are currently assumed to apply to all compilers on this platform,
12255# and will be corrupted by setting them based on a non-working compiler.
12256if test "$_lt_caught_CXX_error" != yes; then
12257 # Code to be used in simple compile tests
12258 lt_simple_compile_test_code="int some_variable = 0;"
12259
12260 # Code to be used in simple link tests
12261 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12262
12263 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12264
12265
12266
12267
12268
12269
12270# If no C compiler was specified, use CC.
12271LTCC=${LTCC-"$CC"}
12272
12273# If no C compiler flags were specified, use CFLAGS.
12274LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12275
12276# Allow CC to be a program name with arguments.
12277compiler=$CC
12278
12279
12280 # save warnings/boilerplate of simple test code
12281 ac_outfile=conftest.$ac_objext
12282echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12283eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12284_lt_compiler_boilerplate=`cat conftest.err`
12285$RM conftest*
12286
12287 ac_outfile=conftest.$ac_objext
12288echo "$lt_simple_link_test_code" >conftest.$ac_ext
12289eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12290_lt_linker_boilerplate=`cat conftest.err`
12291$RM -r conftest*
12292
12293
12294 # Allow CC to be a program name with arguments.
12295 lt_save_CC=$CC
12296 lt_save_LD=$LD
12297 lt_save_GCC=$GCC
12298 GCC=$GXX
12299 lt_save_with_gnu_ld=$with_gnu_ld
12300 lt_save_path_LD=$lt_cv_path_LD
12301 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12302 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12303 else
12304 $as_unset lt_cv_prog_gnu_ld
12305 fi
12306 if test -n "${lt_cv_path_LDCXX+set}"; then
12307 lt_cv_path_LD=$lt_cv_path_LDCXX
12308 else
12309 $as_unset lt_cv_path_LD
12310 fi
12311 test -z "${LDCXX+set}" || LD=$LDCXX
12312 CC=${CXX-"c++"}
12313 compiler=$CC
12314 compiler_CXX=$CC
12315 for cc_temp in $compiler""; do
12316 case $cc_temp in
12317 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12318 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12319 \-*) ;;
12320 *) break;;
12321 esac
12322done
12323cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12324
12325
12326 if test -n "$compiler"; then
12327 # We don't want -fno-exception when compiling C++ code, so set the
12328 # no_builtin_flag separately
12329 if test "$GXX" = yes; then
12330 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12331 else
12332 lt_prog_compiler_no_builtin_flag_CXX=
12333 fi
12334
12335 if test "$GXX" = yes; then
12336 # Set up default GNU C++ configuration
12337
12338
12339
12340# Check whether --with-gnu-ld was given.
12341if test "${with_gnu_ld+set}" = set; then
12342 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12343else
12344 with_gnu_ld=no
12345fi
12346
12347ac_prog=ld
12348if test "$GCC" = yes; then
12349 # Check if gcc -print-prog-name=ld gives a path.
12350 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12351$as_echo_n "checking for ld used by $CC... " >&6; }
12352 case $host in
12353 *-*-mingw*)
12354 # gcc leaves a trailing carriage return which upsets mingw
12355 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12356 *)
12357 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12358 esac
12359 case $ac_prog in
12360 # Accept absolute paths.
12361 [\\/]* | ?:[\\/]*)
12362 re_direlt='/[^/][^/]*/\.\./'
12363 # Canonicalize the pathname of ld
12364 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12365 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12366 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12367 done
12368 test -z "$LD" && LD="$ac_prog"
12369 ;;
12370 "")
12371 # If it fails, then pretend we aren't using GCC.
12372 ac_prog=ld
12373 ;;
12374 *)
12375 # If it is relative, then search for the first ld in PATH.
12376 with_gnu_ld=unknown
12377 ;;
12378 esac
12379elif test "$with_gnu_ld" = yes; then
12380 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
12381$as_echo_n "checking for GNU ld... " >&6; }
12382else
12383 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12384$as_echo_n "checking for non-GNU ld... " >&6; }
12385fi
12386if test "${lt_cv_path_LD+set}" = set; then
12387 $as_echo_n "(cached) " >&6
12388else
12389 if test -z "$LD"; then
12390 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12391 for ac_dir in $PATH; do
12392 IFS="$lt_save_ifs"
12393 test -z "$ac_dir" && ac_dir=.
12394 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12395 lt_cv_path_LD="$ac_dir/$ac_prog"
12396 # Check to see if the program is GNU ld. I'd rather use --version,
12397 # but apparently some variants of GNU ld only accept -v.
12398 # Break only if it was the GNU/non-GNU ld that we prefer.
12399 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12400 *GNU* | *'with BFD'*)
12401 test "$with_gnu_ld" != no && break
12402 ;;
12403 *)
12404 test "$with_gnu_ld" != yes && break
12405 ;;
12406 esac
12407 fi
12408 done
12409 IFS="$lt_save_ifs"
12410else
12411 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12412fi
12413fi
12414
12415LD="$lt_cv_path_LD"
12416if test -n "$LD"; then
12417 { $as_echo "$as_me:$LINENO: result: $LD" >&5
12418$as_echo "$LD" >&6; }
12419else
12420 { $as_echo "$as_me:$LINENO: result: no" >&5
12421$as_echo "no" >&6; }
12422fi
12423test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12424$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12425 { (exit 1); exit 1; }; }
12426{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12427$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12428if test "${lt_cv_prog_gnu_ld+set}" = set; then
12429 $as_echo_n "(cached) " >&6
12430else
12431 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12432case `$LD -v 2>&1 </dev/null` in
12433*GNU* | *'with BFD'*)
12434 lt_cv_prog_gnu_ld=yes
12435 ;;
12436*)
12437 lt_cv_prog_gnu_ld=no
12438 ;;
12439esac
12440fi
12441{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12442$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12443with_gnu_ld=$lt_cv_prog_gnu_ld
12444
12445
12446
12447
12448
12449
12450
12451 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12452 # archiving commands below assume that GNU ld is being used.
12453 if test "$with_gnu_ld" = yes; then
12454 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12455 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'
12456
12457 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12458 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12459
12460 # If archive_cmds runs LD, not CC, wlarc should be empty
12461 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12462 # investigate it a little bit more. (MM)
12463 wlarc='${wl}'
12464
12465 # ancient GNU ld didn't support --whole-archive et. al.
12466 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12467 $GREP 'no-whole-archive' > /dev/null; then
12468 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12469 else
12470 whole_archive_flag_spec_CXX=
12471 fi
12472 else
12473 with_gnu_ld=no
12474 wlarc=
12475
12476 # A generic and very simple default shared library creation
12477 # command for GNU C++ for the case where it uses the native
12478 # linker, instead of GNU ld. If possible, this setting should
12479 # overridden to take advantage of the native linker features on
12480 # the platform it is being used on.
12481 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12482 fi
12483
12484 # Commands to make compiler produce verbose output that lists
12485 # what "hidden" libraries, object files and flags are used when
12486 # linking a shared library.
12487 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12488
12489 else
12490 GXX=no
12491 with_gnu_ld=no
12492 wlarc=
12493 fi
12494
12495 # PORTME: fill in a description of your system's C++ link characteristics
12496 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12497$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12498 ld_shlibs_CXX=yes
12499 case $host_os in
12500 aix3*)
12501 # FIXME: insert proper C++ library support
12502 ld_shlibs_CXX=no
12503 ;;
12504 aix[4-9]*)
12505 if test "$host_cpu" = ia64; then
12506 # On IA64, the linker does run time linking by default, so we don't
12507 # have to do anything special.
12508 aix_use_runtimelinking=no
12509 exp_sym_flag='-Bexport'
12510 no_entry_flag=""
12511 else
12512 aix_use_runtimelinking=no
12513
12514 # Test if we are trying to use run time linking or normal
12515 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12516 # need to do runtime linking.
12517 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12518 for ld_flag in $LDFLAGS; do
12519 case $ld_flag in
12520 *-brtl*)
12521 aix_use_runtimelinking=yes
12522 break
12523 ;;
12524 esac
12525 done
12526 ;;
12527 esac
12528
12529 exp_sym_flag='-bexport'
12530 no_entry_flag='-bnoentry'
12531 fi
12532
12533 # When large executables or shared objects are built, AIX ld can
12534 # have problems creating the table of contents. If linking a library
12535 # or program results in "error TOC overflow" add -mminimal-toc to
12536 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12537 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12538
12539 archive_cmds_CXX=''
12540 hardcode_direct_CXX=yes
12541 hardcode_direct_absolute_CXX=yes
12542 hardcode_libdir_separator_CXX=':'
12543 link_all_deplibs_CXX=yes
12544 file_list_spec_CXX='${wl}-f,'
12545
12546 if test "$GXX" = yes; then
12547 case $host_os in aix4.[012]|aix4.[012].*)
12548 # We only want to do this on AIX 4.2 and lower, the check
12549 # below for broken collect2 doesn't work under 4.3+
12550 collect2name=`${CC} -print-prog-name=collect2`
12551 if test -f "$collect2name" &&
12552 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12553 then
12554 # We have reworked collect2
12555 :
12556 else
12557 # We have old collect2
12558 hardcode_direct_CXX=unsupported
12559 # It fails to find uninstalled libraries when the uninstalled
12560 # path is not listed in the libpath. Setting hardcode_minus_L
12561 # to unsupported forces relinking
12562 hardcode_minus_L_CXX=yes
12563 hardcode_libdir_flag_spec_CXX='-L$libdir'
12564 hardcode_libdir_separator_CXX=
12565 fi
12566 esac
12567 shared_flag='-shared'
12568 if test "$aix_use_runtimelinking" = yes; then
12569 shared_flag="$shared_flag "'${wl}-G'
12570 fi
12571 else
12572 # not using gcc
12573 if test "$host_cpu" = ia64; then
12574 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12575 # chokes on -Wl,-G. The following line is correct:
12576 shared_flag='-G'
12577 else
12578 if test "$aix_use_runtimelinking" = yes; then
12579 shared_flag='${wl}-G'
12580 else
12581 shared_flag='${wl}-bM:SRE'
12582 fi
12583 fi
12584 fi
12585
12586 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12587 # It seems that -bexpall does not export symbols beginning with
12588 # underscore (_), so it is better to generate a list of symbols to
12589 # export.
12590 always_export_symbols_CXX=yes
12591 if test "$aix_use_runtimelinking" = yes; then
12592 # Warning - without using the other runtime loading flags (-brtl),
12593 # -berok will link without error, but may produce a broken library.
12594 allow_undefined_flag_CXX='-berok'
12595 # Determine the default libpath from the value encoded in an empty
12596 # executable.
12597 cat >conftest.$ac_ext <<_ACEOF
12598/* confdefs.h. */
12599_ACEOF
12600cat confdefs.h >>conftest.$ac_ext
12601cat >>conftest.$ac_ext <<_ACEOF
12602/* end confdefs.h. */
12603
12604int
12605main ()
12606{
12607
12608 ;
12609 return 0;
12610}
12611_ACEOF
12612rm -f conftest.$ac_objext conftest$ac_exeext
12613if { (ac_try="$ac_link"
12614case "(($ac_try" in
12615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12616 *) ac_try_echo=$ac_try;;
12617esac
12618eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12619$as_echo "$ac_try_echo") >&5
12620 (eval "$ac_link") 2>conftest.er1
12621 ac_status=$?
12622 grep -v '^ *+' conftest.er1 >conftest.err
12623 rm -f conftest.er1
12624 cat conftest.err >&5
12625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626 (exit $ac_status); } && {
12627 test -z "$ac_cxx_werror_flag" ||
12628 test ! -s conftest.err
12629 } && test -s conftest$ac_exeext && {
12630 test "$cross_compiling" = yes ||
12631 $as_test_x conftest$ac_exeext
12632 }; then
12633
12634lt_aix_libpath_sed='
12635 /Import File Strings/,/^$/ {
12636 /^0/ {
12637 s/^0 *\(.*\)$/\1/
12638 p
12639 }
12640 }'
12641aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12642# Check for a 64-bit object if we didn't find anything.
12643if test -z "$aix_libpath"; then
12644 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12645fi
12646else
12647 $as_echo "$as_me: failed program was:" >&5
12648sed 's/^/| /' conftest.$ac_ext >&5
12649
12650
12651fi
12652
12653rm -rf conftest.dSYM
12654rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12655 conftest$ac_exeext conftest.$ac_ext
12656if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12657
12658 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12659
12660 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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12661 else
12662 if test "$host_cpu" = ia64; then
12663 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12664 allow_undefined_flag_CXX="-z nodefs"
12665 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"
12666 else
12667 # Determine the default libpath from the value encoded in an
12668 # empty executable.
12669 cat >conftest.$ac_ext <<_ACEOF
12670/* confdefs.h. */
12671_ACEOF
12672cat confdefs.h >>conftest.$ac_ext
12673cat >>conftest.$ac_ext <<_ACEOF
12674/* end confdefs.h. */
12675
12676int
12677main ()
12678{
12679
12680 ;
12681 return 0;
12682}
12683_ACEOF
12684rm -f conftest.$ac_objext conftest$ac_exeext
12685if { (ac_try="$ac_link"
12686case "(($ac_try" in
12687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12688 *) ac_try_echo=$ac_try;;
12689esac
12690eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12691$as_echo "$ac_try_echo") >&5
12692 (eval "$ac_link") 2>conftest.er1
12693 ac_status=$?
12694 grep -v '^ *+' conftest.er1 >conftest.err
12695 rm -f conftest.er1
12696 cat conftest.err >&5
12697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698 (exit $ac_status); } && {
12699 test -z "$ac_cxx_werror_flag" ||
12700 test ! -s conftest.err
12701 } && test -s conftest$ac_exeext && {
12702 test "$cross_compiling" = yes ||
12703 $as_test_x conftest$ac_exeext
12704 }; then
12705
12706lt_aix_libpath_sed='
12707 /Import File Strings/,/^$/ {
12708 /^0/ {
12709 s/^0 *\(.*\)$/\1/
12710 p
12711 }
12712 }'
12713aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12714# Check for a 64-bit object if we didn't find anything.
12715if test -z "$aix_libpath"; then
12716 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12717fi
12718else
12719 $as_echo "$as_me: failed program was:" >&5
12720sed 's/^/| /' conftest.$ac_ext >&5
12721
12722
12723fi
12724
12725rm -rf conftest.dSYM
12726rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12727 conftest$ac_exeext conftest.$ac_ext
12728if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12729
12730 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12731 # Warning - without using the other run time loading flags,
12732 # -berok will link without error, but may produce a broken library.
12733 no_undefined_flag_CXX=' ${wl}-bernotok'
12734 allow_undefined_flag_CXX=' ${wl}-berok'
12735 # Exported symbols can be pulled into shared objects from archives
12736 whole_archive_flag_spec_CXX='$convenience'
12737 archive_cmds_need_lc_CXX=yes
12738 # This is similar to how AIX traditionally builds its shared
12739 # libraries.
12740 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'
12741 fi
12742 fi
12743 ;;
12744
12745 beos*)
12746 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12747 allow_undefined_flag_CXX=unsupported
12748 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12749 # support --undefined. This deserves some investigation. FIXME
12750 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12751 else
12752 ld_shlibs_CXX=no
12753 fi
12754 ;;
12755
12756 chorus*)
12757 case $cc_basename in
12758 *)
12759 # FIXME: insert proper C++ library support
12760 ld_shlibs_CXX=no
12761 ;;
12762 esac
12763 ;;
12764
12765 cygwin* | mingw* | pw32* | cegcc*)
12766 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12767 # as there is no search path for DLLs.
12768 hardcode_libdir_flag_spec_CXX='-L$libdir'
12769 allow_undefined_flag_CXX=unsupported
12770 always_export_symbols_CXX=no
12771 enable_shared_with_static_runtimes_CXX=yes
12772
12773 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12774 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'
12775 # If the export-symbols file already is a .def file (1st line
12776 # is EXPORTS), use it as is; otherwise, prepend...
12777 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12778 cp $export_symbols $output_objdir/$soname.def;
12779 else
12780 echo EXPORTS > $output_objdir/$soname.def;
12781 cat $export_symbols >> $output_objdir/$soname.def;
12782 fi~
12783 $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'
12784 else
12785 ld_shlibs_CXX=no
12786 fi
12787 ;;
12788 darwin* | rhapsody*)
12789
12790
12791 archive_cmds_need_lc_CXX=no
12792 hardcode_direct_CXX=no
12793 hardcode_automatic_CXX=yes
12794 hardcode_shlibpath_var_CXX=unsupported
12795 whole_archive_flag_spec_CXX=''
12796 link_all_deplibs_CXX=yes
12797 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12798 case $cc_basename in
12799 ifort*) _lt_dar_can_shared=yes ;;
12800 *) _lt_dar_can_shared=$GCC ;;
12801 esac
12802 if test "$_lt_dar_can_shared" = "yes"; then
12803 output_verbose_link_cmd=echo
12804 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12805 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12806 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12807 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12808 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12809 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12810 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12811 fi
12812
12813 else
12814 ld_shlibs_CXX=no
12815 fi
12816
12817 ;;
12818
12819 dgux*)
12820 case $cc_basename in
12821 ec++*)
12822 # FIXME: insert proper C++ library support
12823 ld_shlibs_CXX=no
12824 ;;
12825 ghcx*)
12826 # Green Hills C++ Compiler
12827 # FIXME: insert proper C++ library support
12828 ld_shlibs_CXX=no
12829 ;;
12830 *)
12831 # FIXME: insert proper C++ library support
12832 ld_shlibs_CXX=no
12833 ;;
12834 esac
12835 ;;
12836
12837 freebsd[12]*)
12838 # C++ shared libraries reported to be fairly broken before
12839 # switch to ELF
12840 ld_shlibs_CXX=no
12841 ;;
12842
12843 freebsd-elf*)
12844 archive_cmds_need_lc_CXX=no
12845 ;;
12846
12847 freebsd* | dragonfly*)
12848 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12849 # conventions
12850 ld_shlibs_CXX=yes
12851 ;;
12852
12853 gnu*)
12854 ;;
12855
12856 hpux9*)
12857 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12858 hardcode_libdir_separator_CXX=:
12859 export_dynamic_flag_spec_CXX='${wl}-E'
12860 hardcode_direct_CXX=yes
12861 hardcode_minus_L_CXX=yes # Not in the search PATH,
12862 # but as the default
12863 # location of the library.
12864
12865 case $cc_basename in
12866 CC*)
12867 # FIXME: insert proper C++ library support
12868 ld_shlibs_CXX=no
12869 ;;
12870 aCC*)
12871 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12872 # Commands to make compiler produce verbose output that lists
12873 # what "hidden" libraries, object files and flags are used when
12874 # linking a shared library.
12875 #
12876 # There doesn't appear to be a way to prevent this compiler from
12877 # explicitly linking system object files so we need to strip them
12878 # from the output so that they don't get included in the library
12879 # dependencies.
12880 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12881 ;;
12882 *)
12883 if test "$GXX" = yes; then
12884 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12885 else
12886 # FIXME: insert proper C++ library support
12887 ld_shlibs_CXX=no
12888 fi
12889 ;;
12890 esac
12891 ;;
12892
12893 hpux10*|hpux11*)
12894 if test $with_gnu_ld = no; then
12895 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12896 hardcode_libdir_separator_CXX=:
12897
12898 case $host_cpu in
12899 hppa*64*|ia64*)
12900 ;;
12901 *)
12902 export_dynamic_flag_spec_CXX='${wl}-E'
12903 ;;
12904 esac
12905 fi
12906 case $host_cpu in
12907 hppa*64*|ia64*)
12908 hardcode_direct_CXX=no
12909 hardcode_shlibpath_var_CXX=no
12910 ;;
12911 *)
12912 hardcode_direct_CXX=yes
12913 hardcode_direct_absolute_CXX=yes
12914 hardcode_minus_L_CXX=yes # Not in the search PATH,
12915 # but as the default
12916 # location of the library.
12917 ;;
12918 esac
12919
12920 case $cc_basename in
12921 CC*)
12922 # FIXME: insert proper C++ library support
12923 ld_shlibs_CXX=no
12924 ;;
12925 aCC*)
12926 case $host_cpu in
12927 hppa*64*)
12928 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12929 ;;
12930 ia64*)
12931 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12932 ;;
12933 *)
12934 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12935 ;;
12936 esac
12937 # Commands to make compiler produce verbose output that lists
12938 # what "hidden" libraries, object files and flags are used when
12939 # linking a shared library.
12940 #
12941 # There doesn't appear to be a way to prevent this compiler from
12942 # explicitly linking system object files so we need to strip them
12943 # from the output so that they don't get included in the library
12944 # dependencies.
12945 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 "X$list" | $Xsed'
12946 ;;
12947 *)
12948 if test "$GXX" = yes; then
12949 if test $with_gnu_ld = no; then
12950 case $host_cpu in
12951 hppa*64*)
12952 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12953 ;;
12954 ia64*)
12955 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12956 ;;
12957 *)
12958 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'
12959 ;;
12960 esac
12961 fi
12962 else
12963 # FIXME: insert proper C++ library support
12964 ld_shlibs_CXX=no
12965 fi
12966 ;;
12967 esac
12968 ;;
12969
12970 interix[3-9]*)
12971 hardcode_direct_CXX=no
12972 hardcode_shlibpath_var_CXX=no
12973 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12974 export_dynamic_flag_spec_CXX='${wl}-E'
12975 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12976 # Instead, shared libraries are loaded at an image base (0x10000000 by
12977 # default) and relocated if they conflict, which is a slow very memory
12978 # consuming and fragmenting process. To avoid this, we pick a random,
12979 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12980 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12981 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'
12982 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'
12983 ;;
12984 irix5* | irix6*)
12985 case $cc_basename in
12986 CC*)
12987 # SGI C++
12988 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12989
12990 # Archives containing C++ object files must be created using
12991 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12992 # necessary to make sure instantiated templates are included
12993 # in the archive.
12994 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12995 ;;
12996 *)
12997 if test "$GXX" = yes; then
12998 if test "$with_gnu_ld" = no; then
12999 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13000 else
13001 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
13002 fi
13003 fi
13004 link_all_deplibs_CXX=yes
13005 ;;
13006 esac
13007 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13008 hardcode_libdir_separator_CXX=:
13009 inherit_rpath_CXX=yes
13010 ;;
13011
13012 linux* | k*bsd*-gnu)
13013 case $cc_basename in
13014 KCC*)
13015 # Kuck and Associates, Inc. (KAI) C++ Compiler
13016
13017 # KCC will only create a shared library if the output file
13018 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13019 # to its proper name (with version) after linking.
13020 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'
13021 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'
13022 # Commands to make compiler produce verbose output that lists
13023 # what "hidden" libraries, object files and flags are used when
13024 # linking a shared library.
13025 #
13026 # There doesn't appear to be a way to prevent this compiler from
13027 # explicitly linking system object files so we need to strip them
13028 # from the output so that they don't get included in the library
13029 # dependencies.
13030 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 "X$list" | $Xsed'
13031
13032 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13033 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13034
13035 # Archives containing C++ object files must be created using
13036 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13037 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13038 ;;
13039 icpc* | ecpc* )
13040 # Intel C++
13041 with_gnu_ld=yes
13042 # version 8.0 and above of icpc choke on multiply defined symbols
13043 # if we add $predep_objects and $postdep_objects, however 7.1 and
13044 # earlier do not add the objects themselves.
13045 case `$CC -V 2>&1` in
13046 *"Version 7."*)
13047 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13048 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'
13049 ;;
13050 *) # Version 8.0 or newer
13051 tmp_idyn=
13052 case $host_cpu in
13053 ia64*) tmp_idyn=' -i_dynamic';;
13054 esac
13055 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13056 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'
13057 ;;
13058 esac
13059 archive_cmds_need_lc_CXX=no
13060 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13061 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13062 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13063 ;;
13064 pgCC* | pgcpp*)
13065 # Portland Group C++ compiler
13066 case `$CC -V` in
13067 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13068 prelink_cmds_CXX='tpldir=Template.dir~
13069 rm -rf $tpldir~
13070 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13071 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13072 old_archive_cmds_CXX='tpldir=Template.dir~
13073 rm -rf $tpldir~
13074 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13075 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13076 $RANLIB $oldlib'
13077 archive_cmds_CXX='tpldir=Template.dir~
13078 rm -rf $tpldir~
13079 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13080 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13081 archive_expsym_cmds_CXX='tpldir=Template.dir~
13082 rm -rf $tpldir~
13083 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13084 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13085 ;;
13086 *) # Version 6 will use weak symbols
13087 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13088 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'
13089 ;;
13090 esac
13091
13092 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13093 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13094 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'
13095 ;;
13096 cxx*)
13097 # Compaq C++
13098 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13099 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'
13100
13101 runpath_var=LD_RUN_PATH
13102 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13103 hardcode_libdir_separator_CXX=:
13104
13105 # Commands to make compiler produce verbose output that lists
13106 # what "hidden" libraries, object files and flags are used when
13107 # linking a shared library.
13108 #
13109 # There doesn't appear to be a way to prevent this compiler from
13110 # explicitly linking system object files so we need to strip them
13111 # from the output so that they don't get included in the library
13112 # dependencies.
13113 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
13114 ;;
13115 xl*)
13116 # IBM XL 8.0 on PPC, with GNU ld
13117 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13118 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13119 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13120 if test "x$supports_anon_versioning" = xyes; then
13121 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13122 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13123 echo "local: *; };" >> $output_objdir/$libname.ver~
13124 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13125 fi
13126 ;;
13127 *)
13128 case `$CC -V 2>&1 | sed 5q` in
13129 *Sun\ C*)
13130 # Sun C++ 5.9
13131 no_undefined_flag_CXX=' -zdefs'
13132 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13133 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13134 hardcode_libdir_flag_spec_CXX='-R$libdir'
13135 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13136 compiler_needs_object_CXX=yes
13137
13138 # Not sure whether something based on
13139 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13140 # would be better.
13141 output_verbose_link_cmd='echo'
13142
13143 # Archives containing C++ object files must be created using
13144 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13145 # necessary to make sure instantiated templates are included
13146 # in the archive.
13147 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13148 ;;
13149 esac
13150 ;;
13151 esac
13152 ;;
13153
13154 lynxos*)
13155 # FIXME: insert proper C++ library support
13156 ld_shlibs_CXX=no
13157 ;;
13158
13159 m88k*)
13160 # FIXME: insert proper C++ library support
13161 ld_shlibs_CXX=no
13162 ;;
13163
13164 mvs*)
13165 case $cc_basename in
13166 cxx*)
13167 # FIXME: insert proper C++ library support
13168 ld_shlibs_CXX=no
13169 ;;
13170 *)
13171 # FIXME: insert proper C++ library support
13172 ld_shlibs_CXX=no
13173 ;;
13174 esac
13175 ;;
13176
13177 netbsd*)
13178 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13179 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13180 wlarc=
13181 hardcode_libdir_flag_spec_CXX='-R$libdir'
13182 hardcode_direct_CXX=yes
13183 hardcode_shlibpath_var_CXX=no
13184 fi
13185 # Workaround some broken pre-1.5 toolchains
13186 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13187 ;;
13188
13189 *nto* | *qnx*)
13190 ld_shlibs_CXX=yes
13191 ;;
13192
13193 openbsd2*)
13194 # C++ shared libraries are fairly broken
13195 ld_shlibs_CXX=no
13196 ;;
13197
13198 openbsd*)
13199 if test -f /usr/libexec/ld.so; then
13200 hardcode_direct_CXX=yes
13201 hardcode_shlibpath_var_CXX=no
13202 hardcode_direct_absolute_CXX=yes
13203 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13204 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13205 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13206 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13207 export_dynamic_flag_spec_CXX='${wl}-E'
13208 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13209 fi
13210 output_verbose_link_cmd=echo
13211 else
13212 ld_shlibs_CXX=no
13213 fi
13214 ;;
13215
13216 osf3* | osf4* | osf5*)
13217 case $cc_basename in
13218 KCC*)
13219 # Kuck and Associates, Inc. (KAI) C++ Compiler
13220
13221 # KCC will only create a shared library if the output file
13222 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13223 # to its proper name (with version) after linking.
13224 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'
13225
13226 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13227 hardcode_libdir_separator_CXX=:
13228
13229 # Archives containing C++ object files must be created using
13230 # the KAI C++ compiler.
13231 case $host in
13232 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13233 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13234 esac
13235 ;;
13236 RCC*)
13237 # Rational C++ 2.4.1
13238 # FIXME: insert proper C++ library support
13239 ld_shlibs_CXX=no
13240 ;;
13241 cxx*)
13242 case $host in
13243 osf3*)
13244 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13245 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13246 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13247 ;;
13248 *)
13249 allow_undefined_flag_CXX=' -expect_unresolved \*'
13250 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13251 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13252 echo "-hidden">> $lib.exp~
13253 $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
13254 $RM $lib.exp'
13255 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13256 ;;
13257 esac
13258
13259 hardcode_libdir_separator_CXX=:
13260
13261 # Commands to make compiler produce verbose output that lists
13262 # what "hidden" libraries, object files and flags are used when
13263 # linking a shared library.
13264 #
13265 # There doesn't appear to be a way to prevent this compiler from
13266 # explicitly linking system object files so we need to strip them
13267 # from the output so that they don't get included in the library
13268 # dependencies.
13269 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
13270 ;;
13271 *)
13272 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13273 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13274 case $host in
13275 osf3*)
13276 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 "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13277 ;;
13278 *)
13279 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" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13280 ;;
13281 esac
13282
13283 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13284 hardcode_libdir_separator_CXX=:
13285
13286 # Commands to make compiler produce verbose output that lists
13287 # what "hidden" libraries, object files and flags are used when
13288 # linking a shared library.
13289 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13290
13291 else
13292 # FIXME: insert proper C++ library support
13293 ld_shlibs_CXX=no
13294 fi
13295 ;;
13296 esac
13297 ;;
13298
13299 psos*)
13300 # FIXME: insert proper C++ library support
13301 ld_shlibs_CXX=no
13302 ;;
13303
13304 sunos4*)
13305 case $cc_basename in
13306 CC*)
13307 # Sun C++ 4.x
13308 # FIXME: insert proper C++ library support
13309 ld_shlibs_CXX=no
13310 ;;
13311 lcc*)
13312 # Lucid
13313 # FIXME: insert proper C++ library support
13314 ld_shlibs_CXX=no
13315 ;;
13316 *)
13317 # FIXME: insert proper C++ library support
13318 ld_shlibs_CXX=no
13319 ;;
13320 esac
13321 ;;
13322
13323 solaris*)
13324 case $cc_basename in
13325 CC*)
13326 # Sun C++ 4.2, 5.x and Centerline C++
13327 archive_cmds_need_lc_CXX=yes
13328 no_undefined_flag_CXX=' -zdefs'
13329 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13330 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13331 $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'
13332
13333 hardcode_libdir_flag_spec_CXX='-R$libdir'
13334 hardcode_shlibpath_var_CXX=no
13335 case $host_os in
13336 solaris2.[0-5] | solaris2.[0-5].*) ;;
13337 *)
13338 # The compiler driver will combine and reorder linker options,
13339 # but understands `-z linker_flag'.
13340 # Supported since Solaris 2.6 (maybe 2.5.1?)
13341 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13342 ;;
13343 esac
13344 link_all_deplibs_CXX=yes
13345
13346 output_verbose_link_cmd='echo'
13347
13348 # Archives containing C++ object files must be created using
13349 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13350 # necessary to make sure instantiated templates are included
13351 # in the archive.
13352 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13353 ;;
13354 gcx*)
13355 # Green Hills C++ Compiler
13356 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13357
13358 # The C++ compiler must be used to create the archive.
13359 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13360 ;;
13361 *)
13362 # GNU C++ compiler with Solaris linker
13363 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13364 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13365 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13366 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13367 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13368 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13369
13370 # Commands to make compiler produce verbose output that lists
13371 # what "hidden" libraries, object files and flags are used when
13372 # linking a shared library.
13373 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13374 else
13375 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13376 # platform.
13377 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13378 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13379 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13380
13381 # Commands to make compiler produce verbose output that lists
13382 # what "hidden" libraries, object files and flags are used when
13383 # linking a shared library.
13384 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13385 fi
13386
13387 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13388 case $host_os in
13389 solaris2.[0-5] | solaris2.[0-5].*) ;;
13390 *)
13391 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13392 ;;
13393 esac
13394 fi
13395 ;;
13396 esac
13397 ;;
13398
13399 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13400 no_undefined_flag_CXX='${wl}-z,text'
13401 archive_cmds_need_lc_CXX=no
13402 hardcode_shlibpath_var_CXX=no
13403 runpath_var='LD_RUN_PATH'
13404
13405 case $cc_basename in
13406 CC*)
13407 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13408 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13409 ;;
13410 *)
13411 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13412 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13413 ;;
13414 esac
13415 ;;
13416
13417 sysv5* | sco3.2v5* | sco5v6*)
13418 # Note: We can NOT use -z defs as we might desire, because we do not
13419 # link with -lc, and that would cause any symbols used from libc to
13420 # always be unresolved, which means just about no library would
13421 # ever link correctly. If we're not using GNU ld we use -z text
13422 # though, which does catch some bad symbols but isn't as heavy-handed
13423 # as -z defs.
13424 no_undefined_flag_CXX='${wl}-z,text'
13425 allow_undefined_flag_CXX='${wl}-z,nodefs'
13426 archive_cmds_need_lc_CXX=no
13427 hardcode_shlibpath_var_CXX=no
13428 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13429 hardcode_libdir_separator_CXX=':'
13430 link_all_deplibs_CXX=yes
13431 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13432 runpath_var='LD_RUN_PATH'
13433
13434 case $cc_basename in
13435 CC*)
13436 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13437 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13438 ;;
13439 *)
13440 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13441 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13442 ;;
13443 esac
13444 ;;
13445
13446 tandem*)
13447 case $cc_basename in
13448 NCC*)
13449 # NonStop-UX NCC 3.20
13450 # FIXME: insert proper C++ library support
13451 ld_shlibs_CXX=no
13452 ;;
13453 *)
13454 # FIXME: insert proper C++ library support
13455 ld_shlibs_CXX=no
13456 ;;
13457 esac
13458 ;;
13459
13460 vxworks*)
13461 # FIXME: insert proper C++ library support
13462 ld_shlibs_CXX=no
13463 ;;
13464
13465 *)
13466 # FIXME: insert proper C++ library support
13467 ld_shlibs_CXX=no
13468 ;;
13469 esac
13470
13471 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13472$as_echo "$ld_shlibs_CXX" >&6; }
13473 test "$ld_shlibs_CXX" = no && can_build_shared=no
13474
13475 GCC_CXX="$GXX"
13476 LD_CXX="$LD"
13477
13478 ## CAVEAT EMPTOR:
13479 ## There is no encapsulation within the following macros, do not change
13480 ## the running order or otherwise move them around unless you know exactly
13481 ## what you are doing...
13482 # Dependencies to place before and after the object being linked:
13483predep_objects_CXX=
13484postdep_objects_CXX=
13485predeps_CXX=
13486postdeps_CXX=
13487compiler_lib_search_path_CXX=
13488
13489cat > conftest.$ac_ext <<_LT_EOF
13490class Foo
13491{
13492public:
13493 Foo (void) { a = 0; }
13494private:
13495 int a;
13496};
13497_LT_EOF
13498
13499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13500 (eval $ac_compile) 2>&5
13501 ac_status=$?
13502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503 (exit $ac_status); }; then
13504 # Parse the compiler output and extract the necessary
13505 # objects, libraries and library flags.
13506
13507 # Sentinel used to keep track of whether or not we are before
13508 # the conftest object file.
13509 pre_test_object_deps_done=no
13510
13511 for p in `eval "$output_verbose_link_cmd"`; do
13512 case $p in
13513
13514 -L* | -R* | -l*)
13515 # Some compilers place space between "-{L,R}" and the path.
13516 # Remove the space.
13517 if test $p = "-L" ||
13518 test $p = "-R"; then
13519 prev=$p
13520 continue
13521 else
13522 prev=
13523 fi
13524
13525 if test "$pre_test_object_deps_done" = no; then
13526 case $p in
13527 -L* | -R*)
13528 # Internal compiler library paths should come after those
13529 # provided the user. The postdeps already come after the
13530 # user supplied libs so there is no need to process them.
13531 if test -z "$compiler_lib_search_path_CXX"; then
13532 compiler_lib_search_path_CXX="${prev}${p}"
13533 else
13534 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13535 fi
13536 ;;
13537 # The "-l" case would never come before the object being
13538 # linked, so don't bother handling this case.
13539 esac
13540 else
13541 if test -z "$postdeps_CXX"; then
13542 postdeps_CXX="${prev}${p}"
13543 else
13544 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13545 fi
13546 fi
13547 ;;
13548
13549 *.$objext)
13550 # This assumes that the test object file only shows up
13551 # once in the compiler output.
13552 if test "$p" = "conftest.$objext"; then
13553 pre_test_object_deps_done=yes
13554 continue
13555 fi
13556
13557 if test "$pre_test_object_deps_done" = no; then
13558 if test -z "$predep_objects_CXX"; then
13559 predep_objects_CXX="$p"
13560 else
13561 predep_objects_CXX="$predep_objects_CXX $p"
13562 fi
13563 else
13564 if test -z "$postdep_objects_CXX"; then
13565 postdep_objects_CXX="$p"
13566 else
13567 postdep_objects_CXX="$postdep_objects_CXX $p"
13568 fi
13569 fi
13570 ;;
13571
13572 *) ;; # Ignore the rest.
13573
13574 esac
13575 done
13576
13577 # Clean up.
13578 rm -f a.out a.exe
13579else
13580 echo "libtool.m4: error: problem compiling CXX test program"
13581fi
13582
13583$RM -f confest.$objext
13584
13585# PORTME: override above test on systems where it is broken
13586case $host_os in
13587interix[3-9]*)
13588 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13589 # hack all around it, let's just trust "g++" to DTRT.
13590 predep_objects_CXX=
13591 postdep_objects_CXX=
13592 postdeps_CXX=
13593 ;;
13594
13595linux*)
13596 case `$CC -V 2>&1 | sed 5q` in
13597 *Sun\ C*)
13598 # Sun C++ 5.9
13599
13600 # The more standards-conforming stlport4 library is
13601 # incompatible with the Cstd library. Avoid specifying
13602 # it if it's in CXXFLAGS. Ignore libCrun as
13603 # -library=stlport4 depends on it.
13604 case " $CXX $CXXFLAGS " in
13605 *" -library=stlport4 "*)
13606 solaris_use_stlport4=yes
13607 ;;
13608 esac
13609
13610 if test "$solaris_use_stlport4" != yes; then
13611 postdeps_CXX='-library=Cstd -library=Crun'
13612 fi
13613 ;;
13614 esac
13615 ;;
13616
13617solaris*)
13618 case $cc_basename in
13619 CC*)
13620 # The more standards-conforming stlport4 library is
13621 # incompatible with the Cstd library. Avoid specifying
13622 # it if it's in CXXFLAGS. Ignore libCrun as
13623 # -library=stlport4 depends on it.
13624 case " $CXX $CXXFLAGS " in
13625 *" -library=stlport4 "*)
13626 solaris_use_stlport4=yes
13627 ;;
13628 esac
13629
13630 # Adding this requires a known-good setup of shared libraries for
13631 # Sun compiler versions before 5.6, else PIC objects from an old
13632 # archive will be linked into the output, leading to subtle bugs.
13633 if test "$solaris_use_stlport4" != yes; then
13634 postdeps_CXX='-library=Cstd -library=Crun'
13635 fi
13636 ;;
13637 esac
13638 ;;
13639esac
13640
13641
13642case " $postdeps_CXX " in
13643*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13644esac
13645 compiler_lib_search_dirs_CXX=
13646if test -n "${compiler_lib_search_path_CXX}"; then
13647 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13648fi
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680 lt_prog_compiler_wl_CXX=
13681lt_prog_compiler_pic_CXX=
13682lt_prog_compiler_static_CXX=
13683
13684{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13685$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13686
13687 # C++ specific cases for pic, static, wl, etc.
13688 if test "$GXX" = yes; then
13689 lt_prog_compiler_wl_CXX='-Wl,'
13690 lt_prog_compiler_static_CXX='-static'
13691
13692 case $host_os in
13693 aix*)
13694 # All AIX code is PIC.
13695 if test "$host_cpu" = ia64; then
13696 # AIX 5 now supports IA64 processor
13697 lt_prog_compiler_static_CXX='-Bstatic'
13698 fi
13699 ;;
13700
13701 amigaos*)
13702 case $host_cpu in
13703 powerpc)
13704 # see comment about AmigaOS4 .so support
13705 lt_prog_compiler_pic_CXX='-fPIC'
13706 ;;
13707 m68k)
13708 # FIXME: we need at least 68020 code to build shared libraries, but
13709 # adding the `-m68020' flag to GCC prevents building anything better,
13710 # like `-m68040'.
13711 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13712 ;;
13713 esac
13714 ;;
13715
13716 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13717 # PIC is the default for these OSes.
13718 ;;
13719 mingw* | cygwin* | os2* | pw32* | cegcc*)
13720 # This hack is so that the source file can tell whether it is being
13721 # built for inclusion in a dll (and should export symbols for example).
13722 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13723 # (--disable-auto-import) libraries
13724 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13725 ;;
13726 darwin* | rhapsody*)
13727 # PIC is the default on this platform
13728 # Common symbols not allowed in MH_DYLIB files
13729 lt_prog_compiler_pic_CXX='-fno-common'
13730 ;;
13731 *djgpp*)
13732 # DJGPP does not support shared libraries at all
13733 lt_prog_compiler_pic_CXX=
13734 ;;
13735 interix[3-9]*)
13736 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13737 # Instead, we relocate shared libraries at runtime.
13738 ;;
13739 sysv4*MP*)
13740 if test -d /usr/nec; then
13741 lt_prog_compiler_pic_CXX=-Kconform_pic
13742 fi
13743 ;;
13744 hpux*)
13745 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13746 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13747 # sets the default TLS model and affects inlining.
13748 case $host_cpu in
13749 hppa*64*)
13750 ;;
13751 *)
13752 lt_prog_compiler_pic_CXX='-fPIC'
13753 ;;
13754 esac
13755 ;;
13756 *qnx* | *nto*)
13757 # QNX uses GNU C++, but need to define -shared option too, otherwise
13758 # it will coredump.
13759 lt_prog_compiler_pic_CXX='-fPIC -shared'
13760 ;;
13761 *)
13762 lt_prog_compiler_pic_CXX='-fPIC'
13763 ;;
13764 esac
13765 else
13766 case $host_os in
13767 aix[4-9]*)
13768 # All AIX code is PIC.
13769 if test "$host_cpu" = ia64; then
13770 # AIX 5 now supports IA64 processor
13771 lt_prog_compiler_static_CXX='-Bstatic'
13772 else
13773 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13774 fi
13775 ;;
13776 chorus*)
13777 case $cc_basename in
13778 cxch68*)
13779 # Green Hills C++ Compiler
13780 # _LT_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"
13781 ;;
13782 esac
13783 ;;
13784 dgux*)
13785 case $cc_basename in
13786 ec++*)
13787 lt_prog_compiler_pic_CXX='-KPIC'
13788 ;;
13789 ghcx*)
13790 # Green Hills C++ Compiler
13791 lt_prog_compiler_pic_CXX='-pic'
13792 ;;
13793 *)
13794 ;;
13795 esac
13796 ;;
13797 freebsd* | dragonfly*)
13798 # FreeBSD uses GNU C++
13799 ;;
13800 hpux9* | hpux10* | hpux11*)
13801 case $cc_basename in
13802 CC*)
13803 lt_prog_compiler_wl_CXX='-Wl,'
13804 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13805 if test "$host_cpu" != ia64; then
13806 lt_prog_compiler_pic_CXX='+Z'
13807 fi
13808 ;;
13809 aCC*)
13810 lt_prog_compiler_wl_CXX='-Wl,'
13811 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13812 case $host_cpu in
13813 hppa*64*|ia64*)
13814 # +Z the default
13815 ;;
13816 *)
13817 lt_prog_compiler_pic_CXX='+Z'
13818 ;;
13819 esac
13820 ;;
13821 *)
13822 ;;
13823 esac
13824 ;;
13825 interix*)
13826 # This is c89, which is MS Visual C++ (no shared libs)
13827 # Anyone wants to do a port?
13828 ;;
13829 irix5* | irix6* | nonstopux*)
13830 case $cc_basename in
13831 CC*)
13832 lt_prog_compiler_wl_CXX='-Wl,'
13833 lt_prog_compiler_static_CXX='-non_shared'
13834 # CC pic flag -KPIC is the default.
13835 ;;
13836 *)
13837 ;;
13838 esac
13839 ;;
13840 linux* | k*bsd*-gnu)
13841 case $cc_basename in
13842 KCC*)
13843 # KAI C++ Compiler
13844 lt_prog_compiler_wl_CXX='--backend -Wl,'
13845 lt_prog_compiler_pic_CXX='-fPIC'
13846 ;;
13847 ecpc* )
13848 # old Intel C++ for x86_64 which still supported -KPIC.
13849 lt_prog_compiler_wl_CXX='-Wl,'
13850 lt_prog_compiler_pic_CXX='-KPIC'
13851 lt_prog_compiler_static_CXX='-static'
13852 ;;
13853 icpc* )
13854 # Intel C++, used to be incompatible with GCC.
13855 # ICC 10 doesn't accept -KPIC any more.
13856 lt_prog_compiler_wl_CXX='-Wl,'
13857 lt_prog_compiler_pic_CXX='-fPIC'
13858 lt_prog_compiler_static_CXX='-static'
13859 ;;
13860 pgCC* | pgcpp*)
13861 # Portland Group C++ compiler
13862 lt_prog_compiler_wl_CXX='-Wl,'
13863 lt_prog_compiler_pic_CXX='-fpic'
13864 lt_prog_compiler_static_CXX='-Bstatic'
13865 ;;
13866 cxx*)
13867 # Compaq C++
13868 # Make sure the PIC flag is empty. It appears that all Alpha
13869 # Linux and Compaq Tru64 Unix objects are PIC.
13870 lt_prog_compiler_pic_CXX=
13871 lt_prog_compiler_static_CXX='-non_shared'
13872 ;;
13873 xlc* | xlC*)
13874 # IBM XL 8.0 on PPC
13875 lt_prog_compiler_wl_CXX='-Wl,'
13876 lt_prog_compiler_pic_CXX='-qpic'
13877 lt_prog_compiler_static_CXX='-qstaticlink'
13878 ;;
13879 *)
13880 case `$CC -V 2>&1 | sed 5q` in
13881 *Sun\ C*)
13882 # Sun C++ 5.9
13883 lt_prog_compiler_pic_CXX='-KPIC'
13884 lt_prog_compiler_static_CXX='-Bstatic'
13885 lt_prog_compiler_wl_CXX='-Qoption ld '
13886 ;;
13887 esac
13888 ;;
13889 esac
13890 ;;
13891 lynxos*)
13892 ;;
13893 m88k*)
13894 ;;
13895 mvs*)
13896 case $cc_basename in
13897 cxx*)
13898 lt_prog_compiler_pic_CXX='-W c,exportall'
13899 ;;
13900 *)
13901 ;;
13902 esac
13903 ;;
13904 netbsd*)
13905 ;;
13906 *qnx* | *nto*)
13907 # QNX uses GNU C++, but need to define -shared option too, otherwise
13908 # it will coredump.
13909 lt_prog_compiler_pic_CXX='-fPIC -shared'
13910 ;;
13911 osf3* | osf4* | osf5*)
13912 case $cc_basename in
13913 KCC*)
13914 lt_prog_compiler_wl_CXX='--backend -Wl,'
13915 ;;
13916 RCC*)
13917 # Rational C++ 2.4.1
13918 lt_prog_compiler_pic_CXX='-pic'
13919 ;;
13920 cxx*)
13921 # Digital/Compaq C++
13922 lt_prog_compiler_wl_CXX='-Wl,'
13923 # Make sure the PIC flag is empty. It appears that all Alpha
13924 # Linux and Compaq Tru64 Unix objects are PIC.
13925 lt_prog_compiler_pic_CXX=
13926 lt_prog_compiler_static_CXX='-non_shared'
13927 ;;
13928 *)
13929 ;;
13930 esac
13931 ;;
13932 psos*)
13933 ;;
13934 solaris*)
13935 case $cc_basename in
13936 CC*)
13937 # Sun C++ 4.2, 5.x and Centerline C++
13938 lt_prog_compiler_pic_CXX='-KPIC'
13939 lt_prog_compiler_static_CXX='-Bstatic'
13940 lt_prog_compiler_wl_CXX='-Qoption ld '
13941 ;;
13942 gcx*)
13943 # Green Hills C++ Compiler
13944 lt_prog_compiler_pic_CXX='-PIC'
13945 ;;
13946 *)
13947 ;;
13948 esac
13949 ;;
13950 sunos4*)
13951 case $cc_basename in
13952 CC*)
13953 # Sun C++ 4.x
13954 lt_prog_compiler_pic_CXX='-pic'
13955 lt_prog_compiler_static_CXX='-Bstatic'
13956 ;;
13957 lcc*)
13958 # Lucid
13959 lt_prog_compiler_pic_CXX='-pic'
13960 ;;
13961 *)
13962 ;;
13963 esac
13964 ;;
13965 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13966 case $cc_basename in
13967 CC*)
13968 lt_prog_compiler_wl_CXX='-Wl,'
13969 lt_prog_compiler_pic_CXX='-KPIC'
13970 lt_prog_compiler_static_CXX='-Bstatic'
13971 ;;
13972 esac
13973 ;;
13974 tandem*)
13975 case $cc_basename in
13976 NCC*)
13977 # NonStop-UX NCC 3.20
13978 lt_prog_compiler_pic_CXX='-KPIC'
13979 ;;
13980 *)
13981 ;;
13982 esac
13983 ;;
13984 vxworks*)
13985 ;;
13986 *)
13987 lt_prog_compiler_can_build_shared_CXX=no
13988 ;;
13989 esac
13990 fi
13991
13992case $host_os in
13993 # For platforms which do not support PIC, -DPIC is meaningless:
13994 *djgpp*)
13995 lt_prog_compiler_pic_CXX=
13996 ;;
13997 *)
13998 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13999 ;;
14000esac
14001{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14002$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14003
14004
14005
14006#
14007# Check to make sure the PIC flag actually works.
14008#
14009if test -n "$lt_prog_compiler_pic_CXX"; then
14010 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14011$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14012if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14013 $as_echo_n "(cached) " >&6
14014else
14015 lt_cv_prog_compiler_pic_works_CXX=no
14016 ac_outfile=conftest.$ac_objext
14017 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14018 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14019 # Insert the option either (1) after the last *FLAGS variable, or
14020 # (2) before a word containing "conftest.", or (3) at the end.
14021 # Note that $ac_compile itself does not contain backslashes and begins
14022 # with a dollar sign (not a hyphen), so the echo should work correctly.
14023 # The option is referenced via a variable to avoid confusing sed.
14024 lt_compile=`echo "$ac_compile" | $SED \
14025 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14026 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14027 -e 's:$: $lt_compiler_flag:'`
Adam Tkaca4c2fae2009-03-12 18:21:41 +000014028 (eval echo "\"\$as_me:14028: $lt_compile\"" >&5)
Adam Tkacfc4cd712009-03-11 11:14:37 +000014029 (eval "$lt_compile" 2>conftest.err)
14030 ac_status=$?
14031 cat conftest.err >&5
Adam Tkaca4c2fae2009-03-12 18:21:41 +000014032 echo "$as_me:14032: \$? = $ac_status" >&5
Adam Tkacfc4cd712009-03-11 11:14:37 +000014033 if (exit $ac_status) && test -s "$ac_outfile"; then
14034 # The compiler can only warn and ignore the option if not recognized
14035 # So say no if there are warnings other than the usual output.
14036 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14037 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14038 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14039 lt_cv_prog_compiler_pic_works_CXX=yes
14040 fi
14041 fi
14042 $RM conftest*
14043
14044fi
14045{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14046$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14047
14048if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14049 case $lt_prog_compiler_pic_CXX in
14050 "" | " "*) ;;
14051 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14052 esac
14053else
14054 lt_prog_compiler_pic_CXX=
14055 lt_prog_compiler_can_build_shared_CXX=no
14056fi
14057
14058fi
14059
14060
14061
14062#
14063# Check to make sure the static flag actually works.
14064#
14065wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14066{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14067$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14068if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14069 $as_echo_n "(cached) " >&6
14070else
14071 lt_cv_prog_compiler_static_works_CXX=no
14072 save_LDFLAGS="$LDFLAGS"
14073 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14074 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14075 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14076 # The linker can only warn and ignore the option if not recognized
14077 # So say no if there are warnings
14078 if test -s conftest.err; then
14079 # Append any errors to the config.log.
14080 cat conftest.err 1>&5
14081 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14082 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14083 if diff conftest.exp conftest.er2 >/dev/null; then
14084 lt_cv_prog_compiler_static_works_CXX=yes
14085 fi
14086 else
14087 lt_cv_prog_compiler_static_works_CXX=yes
14088 fi
14089 fi
14090 $RM -r conftest*
14091 LDFLAGS="$save_LDFLAGS"
14092
14093fi
14094{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14095$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14096
14097if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14098 :
14099else
14100 lt_prog_compiler_static_CXX=
14101fi
14102
14103
14104
14105
14106 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14107$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14108if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14109 $as_echo_n "(cached) " >&6
14110else
14111 lt_cv_prog_compiler_c_o_CXX=no
14112 $RM -r conftest 2>/dev/null
14113 mkdir conftest
14114 cd conftest
14115 mkdir out
14116 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14117
14118 lt_compiler_flag="-o out/conftest2.$ac_objext"
14119 # Insert the option either (1) after the last *FLAGS variable, or
14120 # (2) before a word containing "conftest.", or (3) at the end.
14121 # Note that $ac_compile itself does not contain backslashes and begins
14122 # with a dollar sign (not a hyphen), so the echo should work correctly.
14123 lt_compile=`echo "$ac_compile" | $SED \
14124 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14125 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14126 -e 's:$: $lt_compiler_flag:'`
Adam Tkaca4c2fae2009-03-12 18:21:41 +000014127 (eval echo "\"\$as_me:14127: $lt_compile\"" >&5)
Adam Tkacfc4cd712009-03-11 11:14:37 +000014128 (eval "$lt_compile" 2>out/conftest.err)
14129 ac_status=$?
14130 cat out/conftest.err >&5
Adam Tkaca4c2fae2009-03-12 18:21:41 +000014131 echo "$as_me:14131: \$? = $ac_status" >&5
Adam Tkacfc4cd712009-03-11 11:14:37 +000014132 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14133 then
14134 # The compiler can only warn and ignore the option if not recognized
14135 # So say no if there are warnings
14136 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14137 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14138 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14139 lt_cv_prog_compiler_c_o_CXX=yes
14140 fi
14141 fi
14142 chmod u+w . 2>&5
14143 $RM conftest*
14144 # SGI C++ compiler will create directory out/ii_files/ for
14145 # template instantiation
14146 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14147 $RM out/* && rmdir out
14148 cd ..
14149 $RM -r conftest
14150 $RM conftest*
14151
14152fi
14153{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14154$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14155
14156
14157
14158 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14159$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14160if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14161 $as_echo_n "(cached) " >&6
14162else
14163 lt_cv_prog_compiler_c_o_CXX=no
14164 $RM -r conftest 2>/dev/null
14165 mkdir conftest
14166 cd conftest
14167 mkdir out
14168 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14169
14170 lt_compiler_flag="-o out/conftest2.$ac_objext"
14171 # Insert the option either (1) after the last *FLAGS variable, or
14172 # (2) before a word containing "conftest.", or (3) at the end.
14173 # Note that $ac_compile itself does not contain backslashes and begins
14174 # with a dollar sign (not a hyphen), so the echo should work correctly.
14175 lt_compile=`echo "$ac_compile" | $SED \
14176 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14177 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14178 -e 's:$: $lt_compiler_flag:'`
Adam Tkaca4c2fae2009-03-12 18:21:41 +000014179 (eval echo "\"\$as_me:14179: $lt_compile\"" >&5)
Adam Tkacfc4cd712009-03-11 11:14:37 +000014180 (eval "$lt_compile" 2>out/conftest.err)
14181 ac_status=$?
14182 cat out/conftest.err >&5
Adam Tkaca4c2fae2009-03-12 18:21:41 +000014183 echo "$as_me:14183: \$? = $ac_status" >&5
Adam Tkacfc4cd712009-03-11 11:14:37 +000014184 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14185 then
14186 # The compiler can only warn and ignore the option if not recognized
14187 # So say no if there are warnings
14188 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14189 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14190 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14191 lt_cv_prog_compiler_c_o_CXX=yes
14192 fi
14193 fi
14194 chmod u+w . 2>&5
14195 $RM conftest*
14196 # SGI C++ compiler will create directory out/ii_files/ for
14197 # template instantiation
14198 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14199 $RM out/* && rmdir out
14200 cd ..
14201 $RM -r conftest
14202 $RM conftest*
14203
14204fi
14205{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14206$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14207
14208
14209
14210
14211hard_links="nottested"
14212if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14213 # do not overwrite the value of need_locks provided by the user
14214 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14215$as_echo_n "checking if we can lock with hard links... " >&6; }
14216 hard_links=yes
14217 $RM conftest*
14218 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14219 touch conftest.a
14220 ln conftest.a conftest.b 2>&5 || hard_links=no
14221 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14222 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14223$as_echo "$hard_links" >&6; }
14224 if test "$hard_links" = no; then
14225 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14226$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14227 need_locks=warn
14228 fi
14229else
14230 need_locks=no
14231fi
14232
14233
14234
14235 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14236$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14237
14238 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14239 case $host_os in
14240 aix[4-9]*)
14241 # If we're using GNU nm, then we don't want the "-C" option.
14242 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14243 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14244 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'
14245 else
14246 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'
14247 fi
14248 ;;
14249 pw32*)
14250 export_symbols_cmds_CXX="$ltdll_cmds"
14251 ;;
14252 cygwin* | mingw* | cegcc*)
14253 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'
14254 ;;
14255 *)
14256 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14257 ;;
14258 esac
14259 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14260
14261{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14262$as_echo "$ld_shlibs_CXX" >&6; }
14263test "$ld_shlibs_CXX" = no && can_build_shared=no
14264
14265with_gnu_ld_CXX=$with_gnu_ld
14266
14267
14268
14269
14270
14271
14272#
14273# Do we need to explicitly link libc?
14274#
14275case "x$archive_cmds_need_lc_CXX" in
14276x|xyes)
14277 # Assume -lc should be added
14278 archive_cmds_need_lc_CXX=yes
14279
14280 if test "$enable_shared" = yes && test "$GCC" = yes; then
14281 case $archive_cmds_CXX in
14282 *'~'*)
14283 # FIXME: we may have to deal with multi-command sequences.
14284 ;;
14285 '$CC '*)
14286 # Test whether the compiler implicitly links with -lc since on some
14287 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14288 # to ld, don't add -lc before -lgcc.
14289 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14290$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14291 $RM conftest*
14292 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14293
14294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14295 (eval $ac_compile) 2>&5
14296 ac_status=$?
14297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298 (exit $ac_status); } 2>conftest.err; then
14299 soname=conftest
14300 lib=conftest
14301 libobjs=conftest.$ac_objext
14302 deplibs=
14303 wl=$lt_prog_compiler_wl_CXX
14304 pic_flag=$lt_prog_compiler_pic_CXX
14305 compiler_flags=-v
14306 linker_flags=-v
14307 verstring=
14308 output_objdir=.
14309 libname=conftest
14310 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14311 allow_undefined_flag_CXX=
14312 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
14313 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14314 ac_status=$?
14315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316 (exit $ac_status); }
14317 then
14318 archive_cmds_need_lc_CXX=no
14319 else
14320 archive_cmds_need_lc_CXX=yes
14321 fi
14322 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14323 else
14324 cat conftest.err 1>&5
14325 fi
14326 $RM conftest*
14327 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14328$as_echo "$archive_cmds_need_lc_CXX" >&6; }
14329 ;;
14330 esac
14331 fi
14332 ;;
14333esac
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14399$as_echo_n "checking dynamic linker characteristics... " >&6; }
14400
14401library_names_spec=
14402libname_spec='lib$name'
14403soname_spec=
14404shrext_cmds=".so"
14405postinstall_cmds=
14406postuninstall_cmds=
14407finish_cmds=
14408finish_eval=
14409shlibpath_var=
14410shlibpath_overrides_runpath=unknown
14411version_type=none
14412dynamic_linker="$host_os ld.so"
14413sys_lib_dlsearch_path_spec="/lib /usr/lib"
14414need_lib_prefix=unknown
14415hardcode_into_libs=no
14416
14417# when you set need_version to no, make sure it does not cause -set_version
14418# flags to be left without arguments
14419need_version=unknown
14420
14421case $host_os in
14422aix3*)
14423 version_type=linux
14424 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14425 shlibpath_var=LIBPATH
14426
14427 # AIX 3 has no versioning support, so we append a major version to the name.
14428 soname_spec='${libname}${release}${shared_ext}$major'
14429 ;;
14430
14431aix[4-9]*)
14432 version_type=linux
14433 need_lib_prefix=no
14434 need_version=no
14435 hardcode_into_libs=yes
14436 if test "$host_cpu" = ia64; then
14437 # AIX 5 supports IA64
14438 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14439 shlibpath_var=LD_LIBRARY_PATH
14440 else
14441 # With GCC up to 2.95.x, collect2 would create an import file
14442 # for dependence libraries. The import file would start with
14443 # the line `#! .'. This would cause the generated library to
14444 # depend on `.', always an invalid library. This was fixed in
14445 # development snapshots of GCC prior to 3.0.
14446 case $host_os in
14447 aix4 | aix4.[01] | aix4.[01].*)
14448 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14449 echo ' yes '
14450 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14451 :
14452 else
14453 can_build_shared=no
14454 fi
14455 ;;
14456 esac
14457 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14458 # soname into executable. Probably we can add versioning support to
14459 # collect2, so additional links can be useful in future.
14460 if test "$aix_use_runtimelinking" = yes; then
14461 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14462 # instead of lib<name>.a to let people know that these are not
14463 # typical AIX shared libraries.
14464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14465 else
14466 # We preserve .a as extension for shared libraries through AIX4.2
14467 # and later when we are not doing run time linking.
14468 library_names_spec='${libname}${release}.a $libname.a'
14469 soname_spec='${libname}${release}${shared_ext}$major'
14470 fi
14471 shlibpath_var=LIBPATH
14472 fi
14473 ;;
14474
14475amigaos*)
14476 case $host_cpu in
14477 powerpc)
14478 # Since July 2007 AmigaOS4 officially supports .so libraries.
14479 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14481 ;;
14482 m68k)
14483 library_names_spec='$libname.ixlibrary $libname.a'
14484 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14485 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'
14486 ;;
14487 esac
14488 ;;
14489
14490beos*)
14491 library_names_spec='${libname}${shared_ext}'
14492 dynamic_linker="$host_os ld.so"
14493 shlibpath_var=LIBRARY_PATH
14494 ;;
14495
14496bsdi[45]*)
14497 version_type=linux
14498 need_version=no
14499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14500 soname_spec='${libname}${release}${shared_ext}$major'
14501 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14502 shlibpath_var=LD_LIBRARY_PATH
14503 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14504 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14505 # the default ld.so.conf also contains /usr/contrib/lib and
14506 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14507 # libtool to hard-code these into programs
14508 ;;
14509
14510cygwin* | mingw* | pw32* | cegcc*)
14511 version_type=windows
14512 shrext_cmds=".dll"
14513 need_version=no
14514 need_lib_prefix=no
14515
14516 case $GCC,$host_os in
14517 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14518 library_names_spec='$libname.dll.a'
14519 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14520 postinstall_cmds='base_file=`basename \${file}`~
14521 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14522 dldir=$destdir/`dirname \$dlpath`~
14523 test -d \$dldir || mkdir -p \$dldir~
14524 $install_prog $dir/$dlname \$dldir/$dlname~
14525 chmod a+x \$dldir/$dlname~
14526 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14527 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14528 fi'
14529 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14530 dlpath=$dir/\$dldll~
14531 $RM \$dlpath'
14532 shlibpath_overrides_runpath=yes
14533
14534 case $host_os in
14535 cygwin*)
14536 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14537 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14538 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14539 ;;
14540 mingw* | cegcc*)
14541 # MinGW DLLs use traditional 'lib' prefix
14542 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14543 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14544 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14545 # It is most probably a Windows format PATH printed by
14546 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14547 # path with ; separators, and with drive letters. We can handle the
14548 # drive letters (cygwin fileutils understands them), so leave them,
14549 # especially as we might pass files found there to a mingw objdump,
14550 # which wouldn't understand a cygwinified path. Ahh.
14551 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14552 else
14553 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14554 fi
14555 ;;
14556 pw32*)
14557 # pw32 DLLs use 'pw' prefix rather than 'lib'
14558 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14559 ;;
14560 esac
14561 ;;
14562
14563 *)
14564 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14565 ;;
14566 esac
14567 dynamic_linker='Win32 ld.exe'
14568 # FIXME: first we should search . and the directory the executable is in
14569 shlibpath_var=PATH
14570 ;;
14571
14572darwin* | rhapsody*)
14573 dynamic_linker="$host_os dyld"
14574 version_type=darwin
14575 need_lib_prefix=no
14576 need_version=no
14577 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14578 soname_spec='${libname}${release}${major}$shared_ext'
14579 shlibpath_overrides_runpath=yes
14580 shlibpath_var=DYLD_LIBRARY_PATH
14581 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14582
14583 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14584 ;;
14585
14586dgux*)
14587 version_type=linux
14588 need_lib_prefix=no
14589 need_version=no
14590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14591 soname_spec='${libname}${release}${shared_ext}$major'
14592 shlibpath_var=LD_LIBRARY_PATH
14593 ;;
14594
14595freebsd1*)
14596 dynamic_linker=no
14597 ;;
14598
14599freebsd* | dragonfly*)
14600 # DragonFly does not have aout. When/if they implement a new
14601 # versioning mechanism, adjust this.
14602 if test -x /usr/bin/objformat; then
14603 objformat=`/usr/bin/objformat`
14604 else
14605 case $host_os in
14606 freebsd[123]*) objformat=aout ;;
14607 *) objformat=elf ;;
14608 esac
14609 fi
14610 version_type=freebsd-$objformat
14611 case $version_type in
14612 freebsd-elf*)
14613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14614 need_version=no
14615 need_lib_prefix=no
14616 ;;
14617 freebsd-*)
14618 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14619 need_version=yes
14620 ;;
14621 esac
14622 shlibpath_var=LD_LIBRARY_PATH
14623 case $host_os in
14624 freebsd2*)
14625 shlibpath_overrides_runpath=yes
14626 ;;
14627 freebsd3.[01]* | freebsdelf3.[01]*)
14628 shlibpath_overrides_runpath=yes
14629 hardcode_into_libs=yes
14630 ;;
14631 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14632 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14633 shlibpath_overrides_runpath=no
14634 hardcode_into_libs=yes
14635 ;;
14636 *) # from 4.6 on, and DragonFly
14637 shlibpath_overrides_runpath=yes
14638 hardcode_into_libs=yes
14639 ;;
14640 esac
14641 ;;
14642
14643gnu*)
14644 version_type=linux
14645 need_lib_prefix=no
14646 need_version=no
14647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14648 soname_spec='${libname}${release}${shared_ext}$major'
14649 shlibpath_var=LD_LIBRARY_PATH
14650 hardcode_into_libs=yes
14651 ;;
14652
14653hpux9* | hpux10* | hpux11*)
14654 # Give a soname corresponding to the major version so that dld.sl refuses to
14655 # link against other versions.
14656 version_type=sunos
14657 need_lib_prefix=no
14658 need_version=no
14659 case $host_cpu in
14660 ia64*)
14661 shrext_cmds='.so'
14662 hardcode_into_libs=yes
14663 dynamic_linker="$host_os dld.so"
14664 shlibpath_var=LD_LIBRARY_PATH
14665 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14667 soname_spec='${libname}${release}${shared_ext}$major'
14668 if test "X$HPUX_IA64_MODE" = X32; then
14669 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14670 else
14671 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14672 fi
14673 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14674 ;;
14675 hppa*64*)
14676 shrext_cmds='.sl'
14677 hardcode_into_libs=yes
14678 dynamic_linker="$host_os dld.sl"
14679 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14680 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14682 soname_spec='${libname}${release}${shared_ext}$major'
14683 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14684 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14685 ;;
14686 *)
14687 shrext_cmds='.sl'
14688 dynamic_linker="$host_os dld.sl"
14689 shlibpath_var=SHLIB_PATH
14690 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14692 soname_spec='${libname}${release}${shared_ext}$major'
14693 ;;
14694 esac
14695 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14696 postinstall_cmds='chmod 555 $lib'
14697 ;;
14698
14699interix[3-9]*)
14700 version_type=linux
14701 need_lib_prefix=no
14702 need_version=no
14703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14704 soname_spec='${libname}${release}${shared_ext}$major'
14705 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14706 shlibpath_var=LD_LIBRARY_PATH
14707 shlibpath_overrides_runpath=no
14708 hardcode_into_libs=yes
14709 ;;
14710
14711irix5* | irix6* | nonstopux*)
14712 case $host_os in
14713 nonstopux*) version_type=nonstopux ;;
14714 *)
14715 if test "$lt_cv_prog_gnu_ld" = yes; then
14716 version_type=linux
14717 else
14718 version_type=irix
14719 fi ;;
14720 esac
14721 need_lib_prefix=no
14722 need_version=no
14723 soname_spec='${libname}${release}${shared_ext}$major'
14724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14725 case $host_os in
14726 irix5* | nonstopux*)
14727 libsuff= shlibsuff=
14728 ;;
14729 *)
14730 case $LD in # libtool.m4 will add one of these switches to LD
14731 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14732 libsuff= shlibsuff= libmagic=32-bit;;
14733 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14734 libsuff=32 shlibsuff=N32 libmagic=N32;;
14735 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14736 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14737 *) libsuff= shlibsuff= libmagic=never-match;;
14738 esac
14739 ;;
14740 esac
14741 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14742 shlibpath_overrides_runpath=no
14743 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14744 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14745 hardcode_into_libs=yes
14746 ;;
14747
14748# No shared lib support for Linux oldld, aout, or coff.
14749linux*oldld* | linux*aout* | linux*coff*)
14750 dynamic_linker=no
14751 ;;
14752
14753# This must be Linux ELF.
14754linux* | k*bsd*-gnu)
14755 version_type=linux
14756 need_lib_prefix=no
14757 need_version=no
14758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14759 soname_spec='${libname}${release}${shared_ext}$major'
14760 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14761 shlibpath_var=LD_LIBRARY_PATH
14762 shlibpath_overrides_runpath=no
14763 # Some binutils ld are patched to set DT_RUNPATH
14764 save_LDFLAGS=$LDFLAGS
14765 save_libdir=$libdir
14766 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14767 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14768 cat >conftest.$ac_ext <<_ACEOF
14769/* confdefs.h. */
14770_ACEOF
14771cat confdefs.h >>conftest.$ac_ext
14772cat >>conftest.$ac_ext <<_ACEOF
14773/* end confdefs.h. */
14774
14775int
14776main ()
14777{
14778
14779 ;
14780 return 0;
14781}
14782_ACEOF
14783rm -f conftest.$ac_objext conftest$ac_exeext
14784if { (ac_try="$ac_link"
14785case "(($ac_try" in
14786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14787 *) ac_try_echo=$ac_try;;
14788esac
14789eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14790$as_echo "$ac_try_echo") >&5
14791 (eval "$ac_link") 2>conftest.er1
14792 ac_status=$?
14793 grep -v '^ *+' conftest.er1 >conftest.err
14794 rm -f conftest.er1
14795 cat conftest.err >&5
14796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797 (exit $ac_status); } && {
14798 test -z "$ac_cxx_werror_flag" ||
14799 test ! -s conftest.err
14800 } && test -s conftest$ac_exeext && {
14801 test "$cross_compiling" = yes ||
14802 $as_test_x conftest$ac_exeext
14803 }; then
14804 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
14805 shlibpath_overrides_runpath=yes
14806fi
14807
14808else
14809 $as_echo "$as_me: failed program was:" >&5
14810sed 's/^/| /' conftest.$ac_ext >&5
14811
14812
14813fi
14814
14815rm -rf conftest.dSYM
14816rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14817 conftest$ac_exeext conftest.$ac_ext
14818 LDFLAGS=$save_LDFLAGS
14819 libdir=$save_libdir
14820
14821 # This implies no fast_install, which is unacceptable.
14822 # Some rework will be needed to allow for fast_install
14823 # before this can be enabled.
14824 hardcode_into_libs=yes
14825
14826 # Add ABI-specific directories to the system library path.
14827 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
14828
14829 # Append ld.so.conf contents to the search path
14830 if test -f /etc/ld.so.conf; then
14831 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14832 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
14833 fi
14834
14835 # We used to test for /lib/ld.so.1 and disable shared libraries on
14836 # powerpc, because MkLinux only supported shared libraries with the
14837 # GNU dynamic linker. Since this was broken with cross compilers,
14838 # most powerpc-linux boxes support dynamic linking these days and
14839 # people can always --disable-shared, the test was removed, and we
14840 # assume the GNU/Linux dynamic linker is in use.
14841 dynamic_linker='GNU/Linux ld.so'
14842 ;;
14843
14844netbsd*)
14845 version_type=sunos
14846 need_lib_prefix=no
14847 need_version=no
14848 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14850 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14851 dynamic_linker='NetBSD (a.out) ld.so'
14852 else
14853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14854 soname_spec='${libname}${release}${shared_ext}$major'
14855 dynamic_linker='NetBSD ld.elf_so'
14856 fi
14857 shlibpath_var=LD_LIBRARY_PATH
14858 shlibpath_overrides_runpath=yes
14859 hardcode_into_libs=yes
14860 ;;
14861
14862newsos6)
14863 version_type=linux
14864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14865 shlibpath_var=LD_LIBRARY_PATH
14866 shlibpath_overrides_runpath=yes
14867 ;;
14868
14869*nto* | *qnx*)
14870 version_type=qnx
14871 need_lib_prefix=no
14872 need_version=no
14873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14874 soname_spec='${libname}${release}${shared_ext}$major'
14875 shlibpath_var=LD_LIBRARY_PATH
14876 shlibpath_overrides_runpath=no
14877 hardcode_into_libs=yes
14878 dynamic_linker='ldqnx.so'
14879 ;;
14880
14881openbsd*)
14882 version_type=sunos
14883 sys_lib_dlsearch_path_spec="/usr/lib"
14884 need_lib_prefix=no
14885 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14886 case $host_os in
14887 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14888 *) need_version=no ;;
14889 esac
14890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14891 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14892 shlibpath_var=LD_LIBRARY_PATH
14893 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14894 case $host_os in
14895 openbsd2.[89] | openbsd2.[89].*)
14896 shlibpath_overrides_runpath=no
14897 ;;
14898 *)
14899 shlibpath_overrides_runpath=yes
14900 ;;
14901 esac
14902 else
14903 shlibpath_overrides_runpath=yes
14904 fi
14905 ;;
14906
14907os2*)
14908 libname_spec='$name'
14909 shrext_cmds=".dll"
14910 need_lib_prefix=no
14911 library_names_spec='$libname${shared_ext} $libname.a'
14912 dynamic_linker='OS/2 ld.exe'
14913 shlibpath_var=LIBPATH
14914 ;;
14915
14916osf3* | osf4* | osf5*)
14917 version_type=osf
14918 need_lib_prefix=no
14919 need_version=no
14920 soname_spec='${libname}${release}${shared_ext}$major'
14921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14922 shlibpath_var=LD_LIBRARY_PATH
14923 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14924 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14925 ;;
14926
14927rdos*)
14928 dynamic_linker=no
14929 ;;
14930
14931solaris*)
14932 version_type=linux
14933 need_lib_prefix=no
14934 need_version=no
14935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14936 soname_spec='${libname}${release}${shared_ext}$major'
14937 shlibpath_var=LD_LIBRARY_PATH
14938 shlibpath_overrides_runpath=yes
14939 hardcode_into_libs=yes
14940 # ldd complains unless libraries are executable
14941 postinstall_cmds='chmod +x $lib'
14942 ;;
14943
14944sunos4*)
14945 version_type=sunos
14946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14947 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14948 shlibpath_var=LD_LIBRARY_PATH
14949 shlibpath_overrides_runpath=yes
14950 if test "$with_gnu_ld" = yes; then
14951 need_lib_prefix=no
14952 fi
14953 need_version=yes
14954 ;;
14955
14956sysv4 | sysv4.3*)
14957 version_type=linux
14958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14959 soname_spec='${libname}${release}${shared_ext}$major'
14960 shlibpath_var=LD_LIBRARY_PATH
14961 case $host_vendor in
14962 sni)
14963 shlibpath_overrides_runpath=no
14964 need_lib_prefix=no
14965 runpath_var=LD_RUN_PATH
14966 ;;
14967 siemens)
14968 need_lib_prefix=no
14969 ;;
14970 motorola)
14971 need_lib_prefix=no
14972 need_version=no
14973 shlibpath_overrides_runpath=no
14974 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14975 ;;
14976 esac
14977 ;;
14978
14979sysv4*MP*)
14980 if test -d /usr/nec ;then
14981 version_type=linux
14982 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14983 soname_spec='$libname${shared_ext}.$major'
14984 shlibpath_var=LD_LIBRARY_PATH
14985 fi
14986 ;;
14987
14988sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14989 version_type=freebsd-elf
14990 need_lib_prefix=no
14991 need_version=no
14992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14993 soname_spec='${libname}${release}${shared_ext}$major'
14994 shlibpath_var=LD_LIBRARY_PATH
14995 shlibpath_overrides_runpath=yes
14996 hardcode_into_libs=yes
14997 if test "$with_gnu_ld" = yes; then
14998 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14999 else
15000 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15001 case $host_os in
15002 sco3.2v5*)
15003 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15004 ;;
15005 esac
15006 fi
15007 sys_lib_dlsearch_path_spec='/usr/lib'
15008 ;;
15009
15010tpf*)
15011 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15012 version_type=linux
15013 need_lib_prefix=no
15014 need_version=no
15015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15016 shlibpath_var=LD_LIBRARY_PATH
15017 shlibpath_overrides_runpath=no
15018 hardcode_into_libs=yes
15019 ;;
15020
15021uts4*)
15022 version_type=linux
15023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15024 soname_spec='${libname}${release}${shared_ext}$major'
15025 shlibpath_var=LD_LIBRARY_PATH
15026 ;;
15027
15028*)
15029 dynamic_linker=no
15030 ;;
15031esac
15032{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15033$as_echo "$dynamic_linker" >&6; }
15034test "$dynamic_linker" = no && can_build_shared=no
15035
15036variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15037if test "$GCC" = yes; then
15038 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15039fi
15040
15041if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15042 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15043fi
15044if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15045 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15046fi
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15084$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15085hardcode_action_CXX=
15086if test -n "$hardcode_libdir_flag_spec_CXX" ||
15087 test -n "$runpath_var_CXX" ||
15088 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15089
15090 # We can hardcode non-existent directories.
15091 if test "$hardcode_direct_CXX" != no &&
15092 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15093 # have to relink, otherwise we might link with an installed library
15094 # when we should be linking with a yet-to-be-installed one
15095 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15096 test "$hardcode_minus_L_CXX" != no; then
15097 # Linking always hardcodes the temporary library directory.
15098 hardcode_action_CXX=relink
15099 else
15100 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15101 hardcode_action_CXX=immediate
15102 fi
15103else
15104 # We cannot hardcode anything, or else we can only hardcode existing
15105 # directories.
15106 hardcode_action_CXX=unsupported
15107fi
15108{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15109$as_echo "$hardcode_action_CXX" >&6; }
15110
15111if test "$hardcode_action_CXX" = relink ||
15112 test "$inherit_rpath_CXX" = yes; then
15113 # Fast installation is not supported
15114 enable_fast_install=no
15115elif test "$shlibpath_overrides_runpath" = yes ||
15116 test "$enable_shared" = no; then
15117 # Fast installation is not necessary
15118 enable_fast_install=needless
15119fi
15120
15121
15122
15123
15124
15125
15126
15127 fi # test -n "$compiler"
15128
15129 CC=$lt_save_CC
15130 LDCXX=$LD
15131 LD=$lt_save_LD
15132 GCC=$lt_save_GCC
15133 with_gnu_ld=$lt_save_with_gnu_ld
15134 lt_cv_path_LDCXX=$lt_cv_path_LD
15135 lt_cv_path_LD=$lt_save_path_LD
15136 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15137 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15138fi # test "$_lt_caught_CXX_error" != yes
15139
15140ac_ext=c
15141ac_cpp='$CPP $CPPFLAGS'
15142ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15143ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15144ac_compiler_gnu=$ac_cv_c_compiler_gnu
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158 ac_config_commands="$ac_config_commands libtool"
15159
15160
15161
15162
15163# Only expand once:
15164
15165
15166ac_ext=cpp
15167ac_cpp='$CXXCPP $CPPFLAGS'
15168ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15169ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15170ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15171
15172
15173ac_config_headers="$ac_config_headers common-config.h"
15174
15175CPPFLAGS="-DHAVE_COMMON_CONFIG_H $CPPFLAGS"
15176
15177case "`(uname -sr) 2>/dev/null`" in
15178"SunOS 5"*)
15179 SOLARIS=yes
15180 ;;
15181"IRIX 6"*)
15182 LDFLAGS="-L/usr/lib32 $LDFLAGS"
15183 ;;
15184"LynxOS 2"*)
15185 SJLJ_EXCEPTIONS=yes
15186 ;;
15187esac
15188
15189case "$host_os" in
15190 mingw*)
15191 CPPFLAGS="$CPPFLAGS -DWINVER=0x0500 -D_WIN32_IE=0x0500"
15192 CXXFLAGS="$CXXFLAGS -mthreads"
15193 ;;
15194esac
15195
15196if test "$GCC" = yes; then
15197 CFLAGS="$CFLAGS -Wall"
15198 if test "$SOLARIS" = yes; then
15199 CFLAGS="$CFLAGS -Wno-unknown-pragmas -Wno-implicit-int"
15200 fi
15201fi
15202if test "$GXX" = yes; then
15203 CXXFLAGS="$CXXFLAGS -Wall"
15204 if test "$SOLARIS" = yes; then
15205 CXXFLAGS="$CXXFLAGS -Wno-unknown-pragmas -fpermissive"
15206 fi
15207 if test "$SJLJ_EXCEPTIONS" = yes; then
15208 CXXFLAGS="$CXXFLAGS -fsjlj-exceptions"
15209 fi
15210fi
15211
Adam Tkacfc4cd712009-03-11 11:14:37 +000015212INCLUDED_ZLIB=no
15213
15214# Check whether --with-included-zlib was given.
15215if test "${with_included_zlib+set}" = set; then
15216 withval=$with_included_zlib; INCLUDED_ZLIB=yes
15217else
15218 { $as_echo "$as_me:$LINENO: checking for library containing inflateEnd" >&5
15219$as_echo_n "checking for library containing inflateEnd... " >&6; }
15220if test "${ac_cv_search_inflateEnd+set}" = set; then
15221 $as_echo_n "(cached) " >&6
15222else
15223 ac_func_search_save_LIBS=$LIBS
15224cat >conftest.$ac_ext <<_ACEOF
15225/* confdefs.h. */
15226_ACEOF
15227cat confdefs.h >>conftest.$ac_ext
15228cat >>conftest.$ac_ext <<_ACEOF
15229/* end confdefs.h. */
15230
15231/* Override any GCC internal prototype to avoid an error.
15232 Use char because int might match the return type of a GCC
15233 builtin and then its argument prototype would still apply. */
15234#ifdef __cplusplus
15235extern "C"
15236#endif
15237char inflateEnd ();
15238int
15239main ()
15240{
15241return inflateEnd ();
15242 ;
15243 return 0;
15244}
15245_ACEOF
15246for ac_lib in '' z; do
15247 if test -z "$ac_lib"; then
15248 ac_res="none required"
15249 else
15250 ac_res=-l$ac_lib
15251 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15252 fi
15253 rm -f conftest.$ac_objext conftest$ac_exeext
15254if { (ac_try="$ac_link"
15255case "(($ac_try" in
15256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15257 *) ac_try_echo=$ac_try;;
15258esac
15259eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15260$as_echo "$ac_try_echo") >&5
15261 (eval "$ac_link") 2>conftest.er1
15262 ac_status=$?
15263 grep -v '^ *+' conftest.er1 >conftest.err
15264 rm -f conftest.er1
15265 cat conftest.err >&5
15266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267 (exit $ac_status); } && {
15268 test -z "$ac_cxx_werror_flag" ||
15269 test ! -s conftest.err
15270 } && test -s conftest$ac_exeext && {
15271 test "$cross_compiling" = yes ||
15272 $as_test_x conftest$ac_exeext
15273 }; then
15274 ac_cv_search_inflateEnd=$ac_res
15275else
15276 $as_echo "$as_me: failed program was:" >&5
15277sed 's/^/| /' conftest.$ac_ext >&5
15278
15279
15280fi
15281
15282rm -rf conftest.dSYM
15283rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15284 conftest$ac_exeext
15285 if test "${ac_cv_search_inflateEnd+set}" = set; then
15286 break
15287fi
15288done
15289if test "${ac_cv_search_inflateEnd+set}" = set; then
15290 :
15291else
15292 ac_cv_search_inflateEnd=no
15293fi
15294rm conftest.$ac_ext
15295LIBS=$ac_func_search_save_LIBS
15296fi
15297{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_inflateEnd" >&5
15298$as_echo "$ac_cv_search_inflateEnd" >&6; }
15299ac_res=$ac_cv_search_inflateEnd
15300if test "$ac_res" != no; then
15301 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15302
15303else
15304 INCLUDED_ZLIB=yes
15305fi
15306
15307fi
15308
15309
15310 if test "x$INCLUDED_ZLIB" = xyes ; then
15311 INCLUDED_ZLIB_TRUE=
15312 INCLUDED_ZLIB_FALSE='#'
15313else
15314 INCLUDED_ZLIB_TRUE='#'
15315 INCLUDED_ZLIB_FALSE=
15316fi
15317
15318
15319
15320subdirs="$subdirs zlib"
15321
15322
15323INCLUDED_JPEG=no
15324
15325# Check whether --with-included-jpeg was given.
15326if test "${with_included_jpeg+set}" = set; then
15327 withval=$with_included_jpeg; INCLUDED_JPEG=yes
15328else
15329 { $as_echo "$as_me:$LINENO: checking for library containing jpeg_destroy_compress" >&5
15330$as_echo_n "checking for library containing jpeg_destroy_compress... " >&6; }
15331if test "${ac_cv_search_jpeg_destroy_compress+set}" = set; then
15332 $as_echo_n "(cached) " >&6
15333else
15334 ac_func_search_save_LIBS=$LIBS
15335cat >conftest.$ac_ext <<_ACEOF
15336/* confdefs.h. */
15337_ACEOF
15338cat confdefs.h >>conftest.$ac_ext
15339cat >>conftest.$ac_ext <<_ACEOF
15340/* end confdefs.h. */
15341
15342/* Override any GCC internal prototype to avoid an error.
15343 Use char because int might match the return type of a GCC
15344 builtin and then its argument prototype would still apply. */
15345#ifdef __cplusplus
15346extern "C"
15347#endif
15348char jpeg_destroy_compress ();
15349int
15350main ()
15351{
15352return jpeg_destroy_compress ();
15353 ;
15354 return 0;
15355}
15356_ACEOF
15357for ac_lib in '' jpeg; do
15358 if test -z "$ac_lib"; then
15359 ac_res="none required"
15360 else
15361 ac_res=-l$ac_lib
15362 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15363 fi
15364 rm -f conftest.$ac_objext conftest$ac_exeext
15365if { (ac_try="$ac_link"
15366case "(($ac_try" in
15367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15368 *) ac_try_echo=$ac_try;;
15369esac
15370eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15371$as_echo "$ac_try_echo") >&5
15372 (eval "$ac_link") 2>conftest.er1
15373 ac_status=$?
15374 grep -v '^ *+' conftest.er1 >conftest.err
15375 rm -f conftest.er1
15376 cat conftest.err >&5
15377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378 (exit $ac_status); } && {
15379 test -z "$ac_cxx_werror_flag" ||
15380 test ! -s conftest.err
15381 } && test -s conftest$ac_exeext && {
15382 test "$cross_compiling" = yes ||
15383 $as_test_x conftest$ac_exeext
15384 }; then
15385 ac_cv_search_jpeg_destroy_compress=$ac_res
15386else
15387 $as_echo "$as_me: failed program was:" >&5
15388sed 's/^/| /' conftest.$ac_ext >&5
15389
15390
15391fi
15392
15393rm -rf conftest.dSYM
15394rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15395 conftest$ac_exeext
15396 if test "${ac_cv_search_jpeg_destroy_compress+set}" = set; then
15397 break
15398fi
15399done
15400if test "${ac_cv_search_jpeg_destroy_compress+set}" = set; then
15401 :
15402else
15403 ac_cv_search_jpeg_destroy_compress=no
15404fi
15405rm conftest.$ac_ext
15406LIBS=$ac_func_search_save_LIBS
15407fi
15408{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_jpeg_destroy_compress" >&5
15409$as_echo "$ac_cv_search_jpeg_destroy_compress" >&6; }
15410ac_res=$ac_cv_search_jpeg_destroy_compress
15411if test "$ac_res" != no; then
15412 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15413
15414else
15415 INCLUDED_JPEG=yes
15416fi
15417
15418fi
15419
15420
15421 if test "x$INCLUDED_JPEG" = xyes ; then
15422 INCLUDED_JPEG_TRUE=
15423 INCLUDED_JPEG_FALSE='#'
15424else
15425 INCLUDED_JPEG_TRUE='#'
15426 INCLUDED_JPEG_FALSE=
15427fi
15428
15429subdirs="$subdirs jpeg"
15430
15431
15432
15433
15434
15435
15436for ac_func in $ac_func_list
15437do
15438as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15439{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15440$as_echo_n "checking for $ac_func... " >&6; }
15441if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15442 $as_echo_n "(cached) " >&6
15443else
15444 cat >conftest.$ac_ext <<_ACEOF
15445/* confdefs.h. */
15446_ACEOF
15447cat confdefs.h >>conftest.$ac_ext
15448cat >>conftest.$ac_ext <<_ACEOF
15449/* end confdefs.h. */
15450/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15451 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15452#define $ac_func innocuous_$ac_func
15453
15454/* System header to define __stub macros and hopefully few prototypes,
15455 which can conflict with char $ac_func (); below.
15456 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15457 <limits.h> exists even on freestanding compilers. */
15458
15459#ifdef __STDC__
15460# include <limits.h>
15461#else
15462# include <assert.h>
15463#endif
15464
15465#undef $ac_func
15466
15467/* Override any GCC internal prototype to avoid an error.
15468 Use char because int might match the return type of a GCC
15469 builtin and then its argument prototype would still apply. */
15470#ifdef __cplusplus
15471extern "C"
15472#endif
15473char $ac_func ();
15474/* The GNU C library defines this for functions which it implements
15475 to always fail with ENOSYS. Some functions are actually named
15476 something starting with __ and the normal name is an alias. */
15477#if defined __stub_$ac_func || defined __stub___$ac_func
15478choke me
15479#endif
15480
15481int
15482main ()
15483{
15484return $ac_func ();
15485 ;
15486 return 0;
15487}
15488_ACEOF
15489rm -f conftest.$ac_objext conftest$ac_exeext
15490if { (ac_try="$ac_link"
15491case "(($ac_try" in
15492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15493 *) ac_try_echo=$ac_try;;
15494esac
15495eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15496$as_echo "$ac_try_echo") >&5
15497 (eval "$ac_link") 2>conftest.er1
15498 ac_status=$?
15499 grep -v '^ *+' conftest.er1 >conftest.err
15500 rm -f conftest.er1
15501 cat conftest.err >&5
15502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503 (exit $ac_status); } && {
15504 test -z "$ac_cxx_werror_flag" ||
15505 test ! -s conftest.err
15506 } && test -s conftest$ac_exeext && {
15507 test "$cross_compiling" = yes ||
15508 $as_test_x conftest$ac_exeext
15509 }; then
15510 eval "$as_ac_var=yes"
15511else
15512 $as_echo "$as_me: failed program was:" >&5
15513sed 's/^/| /' conftest.$ac_ext >&5
15514
15515 eval "$as_ac_var=no"
15516fi
15517
15518rm -rf conftest.dSYM
15519rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15520 conftest$ac_exeext conftest.$ac_ext
15521fi
15522ac_res=`eval 'as_val=${'$as_ac_var'}
15523 $as_echo "$as_val"'`
15524 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15525$as_echo "$ac_res" >&6; }
15526as_val=`eval 'as_val=${'$as_ac_var'}
15527 $as_echo "$as_val"'`
15528 if test "x$as_val" = x""yes; then
15529 cat >>confdefs.h <<_ACEOF
15530#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15531_ACEOF
15532
15533fi
15534done
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557# IPv6 related functions
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571{ $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
15572$as_echo_n "checking for socklen_t... " >&6; }
15573if test "${ac_cv_type_socklen_t+set}" = set; then
15574 $as_echo_n "(cached) " >&6
15575else
15576 ac_cv_type_socklen_t=no
15577cat >conftest.$ac_ext <<_ACEOF
15578/* confdefs.h. */
15579_ACEOF
15580cat confdefs.h >>conftest.$ac_ext
15581cat >>conftest.$ac_ext <<_ACEOF
15582/* end confdefs.h. */
15583$ac_includes_default
15584int
15585main ()
15586{
15587if (sizeof (socklen_t))
15588 return 0;
15589 ;
15590 return 0;
15591}
15592_ACEOF
15593rm -f conftest.$ac_objext
15594if { (ac_try="$ac_compile"
15595case "(($ac_try" in
15596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15597 *) ac_try_echo=$ac_try;;
15598esac
15599eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15600$as_echo "$ac_try_echo") >&5
15601 (eval "$ac_compile") 2>conftest.er1
15602 ac_status=$?
15603 grep -v '^ *+' conftest.er1 >conftest.err
15604 rm -f conftest.er1
15605 cat conftest.err >&5
15606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607 (exit $ac_status); } && {
15608 test -z "$ac_cxx_werror_flag" ||
15609 test ! -s conftest.err
15610 } && test -s conftest.$ac_objext; then
15611 cat >conftest.$ac_ext <<_ACEOF
15612/* confdefs.h. */
15613_ACEOF
15614cat confdefs.h >>conftest.$ac_ext
15615cat >>conftest.$ac_ext <<_ACEOF
15616/* end confdefs.h. */
15617$ac_includes_default
15618int
15619main ()
15620{
15621if (sizeof ((socklen_t)))
15622 return 0;
15623 ;
15624 return 0;
15625}
15626_ACEOF
15627rm -f conftest.$ac_objext
15628if { (ac_try="$ac_compile"
15629case "(($ac_try" in
15630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15631 *) ac_try_echo=$ac_try;;
15632esac
15633eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15634$as_echo "$ac_try_echo") >&5
15635 (eval "$ac_compile") 2>conftest.er1
15636 ac_status=$?
15637 grep -v '^ *+' conftest.er1 >conftest.err
15638 rm -f conftest.er1
15639 cat conftest.err >&5
15640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15641 (exit $ac_status); } && {
15642 test -z "$ac_cxx_werror_flag" ||
15643 test ! -s conftest.err
15644 } && test -s conftest.$ac_objext; then
15645 :
15646else
15647 $as_echo "$as_me: failed program was:" >&5
15648sed 's/^/| /' conftest.$ac_ext >&5
15649
15650 ac_cv_type_socklen_t=yes
15651fi
15652
15653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15654else
15655 $as_echo "$as_me: failed program was:" >&5
15656sed 's/^/| /' conftest.$ac_ext >&5
15657
15658
15659fi
15660
15661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15662fi
15663{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
15664$as_echo "$ac_cv_type_socklen_t" >&6; }
15665if test "x$ac_cv_type_socklen_t" = x""yes; then
15666
15667cat >>confdefs.h <<_ACEOF
15668#define HAVE_SOCKLEN_T 1
15669_ACEOF
15670
15671
15672fi
15673
15674
15675
15676
15677for ac_header in sys/select.h
15678do
15679as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15680if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15681 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15682$as_echo_n "checking for $ac_header... " >&6; }
15683if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15684 $as_echo_n "(cached) " >&6
15685fi
15686ac_res=`eval 'as_val=${'$as_ac_Header'}
15687 $as_echo "$as_val"'`
15688 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15689$as_echo "$ac_res" >&6; }
15690else
15691 # Is the header compilable?
15692{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15693$as_echo_n "checking $ac_header usability... " >&6; }
15694cat >conftest.$ac_ext <<_ACEOF
15695/* confdefs.h. */
15696_ACEOF
15697cat confdefs.h >>conftest.$ac_ext
15698cat >>conftest.$ac_ext <<_ACEOF
15699/* end confdefs.h. */
15700$ac_includes_default
15701#include <$ac_header>
15702_ACEOF
15703rm -f conftest.$ac_objext
15704if { (ac_try="$ac_compile"
15705case "(($ac_try" in
15706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15707 *) ac_try_echo=$ac_try;;
15708esac
15709eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15710$as_echo "$ac_try_echo") >&5
15711 (eval "$ac_compile") 2>conftest.er1
15712 ac_status=$?
15713 grep -v '^ *+' conftest.er1 >conftest.err
15714 rm -f conftest.er1
15715 cat conftest.err >&5
15716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15717 (exit $ac_status); } && {
15718 test -z "$ac_cxx_werror_flag" ||
15719 test ! -s conftest.err
15720 } && test -s conftest.$ac_objext; then
15721 ac_header_compiler=yes
15722else
15723 $as_echo "$as_me: failed program was:" >&5
15724sed 's/^/| /' conftest.$ac_ext >&5
15725
15726 ac_header_compiler=no
15727fi
15728
15729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15730{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15731$as_echo "$ac_header_compiler" >&6; }
15732
15733# Is the header present?
15734{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15735$as_echo_n "checking $ac_header presence... " >&6; }
15736cat >conftest.$ac_ext <<_ACEOF
15737/* confdefs.h. */
15738_ACEOF
15739cat confdefs.h >>conftest.$ac_ext
15740cat >>conftest.$ac_ext <<_ACEOF
15741/* end confdefs.h. */
15742#include <$ac_header>
15743_ACEOF
15744if { (ac_try="$ac_cpp conftest.$ac_ext"
15745case "(($ac_try" in
15746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15747 *) ac_try_echo=$ac_try;;
15748esac
15749eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15750$as_echo "$ac_try_echo") >&5
15751 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15752 ac_status=$?
15753 grep -v '^ *+' conftest.er1 >conftest.err
15754 rm -f conftest.er1
15755 cat conftest.err >&5
15756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757 (exit $ac_status); } >/dev/null && {
15758 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
15759 test ! -s conftest.err
15760 }; then
15761 ac_header_preproc=yes
15762else
15763 $as_echo "$as_me: failed program was:" >&5
15764sed 's/^/| /' conftest.$ac_ext >&5
15765
15766 ac_header_preproc=no
15767fi
15768
15769rm -f conftest.err conftest.$ac_ext
15770{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15771$as_echo "$ac_header_preproc" >&6; }
15772
15773# So? What about this header?
15774case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
15775 yes:no: )
15776 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15777$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15778 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15779$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15780 ac_header_preproc=yes
15781 ;;
15782 no:yes:* )
15783 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15784$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15785 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15786$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15787 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15788$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15789 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15790$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15791 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15792$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15793 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15794$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15795 ( cat <<\_ASBOX
15796## -------------------------------------- ##
15797## Report this to http://www.tigervnc.org ##
15798## -------------------------------------- ##
15799_ASBOX
15800 ) | sed "s/^/$as_me: WARNING: /" >&2
15801 ;;
15802esac
15803{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15804$as_echo_n "checking for $ac_header... " >&6; }
15805if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15806 $as_echo_n "(cached) " >&6
15807else
15808 eval "$as_ac_Header=\$ac_header_preproc"
15809fi
15810ac_res=`eval 'as_val=${'$as_ac_Header'}
15811 $as_echo "$as_val"'`
15812 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15813$as_echo "$ac_res" >&6; }
15814
15815fi
15816as_val=`eval 'as_val=${'$as_ac_Header'}
15817 $as_echo "$as_val"'`
15818 if test "x$as_val" = x""yes; then
15819 cat >>confdefs.h <<_ACEOF
15820#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15821_ACEOF
15822
15823fi
15824
15825done
15826
15827
15828ac_config_files="$ac_config_files Makefile os/Makefile rdr/Makefile network/Makefile Xregion/Makefile rfb/Makefile"
15829
15830cat >confcache <<\_ACEOF
15831# This file is a shell script that caches the results of configure
15832# tests run on this system so they can be shared between configure
15833# scripts and configure runs, see configure's option --config-cache.
15834# It is not useful on other systems. If it contains results you don't
15835# want to keep, you may remove or edit it.
15836#
15837# config.status only pays attention to the cache file if you give it
15838# the --recheck option to rerun configure.
15839#
15840# `ac_cv_env_foo' variables (set or unset) will be overridden when
15841# loading this file, other *unset* `ac_cv_foo' will be assigned the
15842# following values.
15843
15844_ACEOF
15845
15846# The following way of writing the cache mishandles newlines in values,
15847# but we know of no workaround that is simple, portable, and efficient.
15848# So, we kill variables containing newlines.
15849# Ultrix sh set writes to stderr and can't be redirected directly,
15850# and sets the high bit in the cache file unless we assign to the vars.
15851(
15852 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15853 eval ac_val=\$$ac_var
15854 case $ac_val in #(
15855 *${as_nl}*)
15856 case $ac_var in #(
15857 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
15858$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15859 esac
15860 case $ac_var in #(
15861 _ | IFS | as_nl) ;; #(
15862 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15863 *) $as_unset $ac_var ;;
15864 esac ;;
15865 esac
15866 done
15867
15868 (set) 2>&1 |
15869 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15870 *${as_nl}ac_space=\ *)
15871 # `set' does not quote correctly, so add quotes (double-quote
15872 # substitution turns \\\\ into \\, and sed turns \\ into \).
15873 sed -n \
15874 "s/'/'\\\\''/g;
15875 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15876 ;; #(
15877 *)
15878 # `set' quotes correctly as required by POSIX, so do not add quotes.
15879 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15880 ;;
15881 esac |
15882 sort
15883) |
15884 sed '
15885 /^ac_cv_env_/b end
15886 t clear
15887 :clear
15888 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15889 t end
15890 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15891 :end' >>confcache
15892if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15893 if test -w "$cache_file"; then
15894 test "x$cache_file" != "x/dev/null" &&
15895 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
15896$as_echo "$as_me: updating cache $cache_file" >&6;}
15897 cat confcache >$cache_file
15898 else
15899 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15900$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15901 fi
15902fi
15903rm -f confcache
15904
15905test "x$prefix" = xNONE && prefix=$ac_default_prefix
15906# Let make expand exec_prefix.
15907test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15908
15909DEFS=-DHAVE_CONFIG_H
15910
15911ac_libobjs=
15912ac_ltlibobjs=
15913for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15914 # 1. Remove the extension, and $U if already installed.
15915 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15916 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15917 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15918 # will be set to the directory where LIBOBJS objects are built.
15919 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15920 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15921done
15922LIBOBJS=$ac_libobjs
15923
15924LTLIBOBJS=$ac_ltlibobjs
15925
15926
15927if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15928 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15929Usually this means the macro was only invoked conditionally." >&5
15930$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
15931Usually this means the macro was only invoked conditionally." >&2;}
15932 { (exit 1); exit 1; }; }
15933fi
15934if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15935 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15936Usually this means the macro was only invoked conditionally." >&5
15937$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15938Usually this means the macro was only invoked conditionally." >&2;}
15939 { (exit 1); exit 1; }; }
15940fi
15941if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15942 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
15943Usually this means the macro was only invoked conditionally." >&5
15944$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
15945Usually this means the macro was only invoked conditionally." >&2;}
15946 { (exit 1); exit 1; }; }
15947fi
15948if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15949 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
15950Usually this means the macro was only invoked conditionally." >&5
15951$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
15952Usually this means the macro was only invoked conditionally." >&2;}
15953 { (exit 1); exit 1; }; }
15954fi
Adam Tkacfc4cd712009-03-11 11:14:37 +000015955if test -z "${INCLUDED_ZLIB_TRUE}" && test -z "${INCLUDED_ZLIB_FALSE}"; then
15956 { { $as_echo "$as_me:$LINENO: error: conditional \"INCLUDED_ZLIB\" was never defined.
15957Usually this means the macro was only invoked conditionally." >&5
15958$as_echo "$as_me: error: conditional \"INCLUDED_ZLIB\" was never defined.
15959Usually this means the macro was only invoked conditionally." >&2;}
15960 { (exit 1); exit 1; }; }
15961fi
15962if test -z "${INCLUDED_JPEG_TRUE}" && test -z "${INCLUDED_JPEG_FALSE}"; then
15963 { { $as_echo "$as_me:$LINENO: error: conditional \"INCLUDED_JPEG\" was never defined.
15964Usually this means the macro was only invoked conditionally." >&5
15965$as_echo "$as_me: error: conditional \"INCLUDED_JPEG\" was never defined.
15966Usually this means the macro was only invoked conditionally." >&2;}
15967 { (exit 1); exit 1; }; }
15968fi
15969
15970: ${CONFIG_STATUS=./config.status}
15971ac_write_fail=0
15972ac_clean_files_save=$ac_clean_files
15973ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15974{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15975$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15976cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15977#! $SHELL
15978# Generated by $as_me.
15979# Run this file to recreate the current configuration.
15980# Compiler output produced by configure, useful for debugging
15981# configure, is in config.log if it exists.
15982
15983debug=false
15984ac_cs_recheck=false
15985ac_cs_silent=false
15986SHELL=\${CONFIG_SHELL-$SHELL}
15987_ACEOF
15988
15989cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15990## --------------------- ##
15991## M4sh Initialization. ##
15992## --------------------- ##
15993
15994# Be more Bourne compatible
15995DUALCASE=1; export DUALCASE # for MKS sh
15996if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15997 emulate sh
15998 NULLCMD=:
15999 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16000 # is contrary to our usage. Disable this feature.
16001 alias -g '${1+"$@"}'='"$@"'
16002 setopt NO_GLOB_SUBST
16003else
16004 case `(set -o) 2>/dev/null` in
16005 *posix*) set -o posix ;;
16006esac
16007
16008fi
16009
16010
16011
16012
16013# PATH needs CR
16014# Avoid depending upon Character Ranges.
16015as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16016as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16017as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16018as_cr_digits='0123456789'
16019as_cr_alnum=$as_cr_Letters$as_cr_digits
16020
16021as_nl='
16022'
16023export as_nl
16024# Printing a long string crashes Solaris 7 /usr/bin/printf.
16025as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16026as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16027as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16028if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16029 as_echo='printf %s\n'
16030 as_echo_n='printf %s'
16031else
16032 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16033 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16034 as_echo_n='/usr/ucb/echo -n'
16035 else
16036 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16037 as_echo_n_body='eval
16038 arg=$1;
16039 case $arg in
16040 *"$as_nl"*)
16041 expr "X$arg" : "X\\(.*\\)$as_nl";
16042 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16043 esac;
16044 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16045 '
16046 export as_echo_n_body
16047 as_echo_n='sh -c $as_echo_n_body as_echo'
16048 fi
16049 export as_echo_body
16050 as_echo='sh -c $as_echo_body as_echo'
16051fi
16052
16053# The user is always right.
16054if test "${PATH_SEPARATOR+set}" != set; then
16055 PATH_SEPARATOR=:
16056 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16057 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16058 PATH_SEPARATOR=';'
16059 }
16060fi
16061
16062# Support unset when possible.
16063if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16064 as_unset=unset
16065else
16066 as_unset=false
16067fi
16068
16069
16070# IFS
16071# We need space, tab and new line, in precisely that order. Quoting is
16072# there to prevent editors from complaining about space-tab.
16073# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16074# splitting by setting IFS to empty value.)
16075IFS=" "" $as_nl"
16076
16077# Find who we are. Look in the path if we contain no directory separator.
16078case $0 in
16079 *[\\/]* ) as_myself=$0 ;;
16080 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16081for as_dir in $PATH
16082do
16083 IFS=$as_save_IFS
16084 test -z "$as_dir" && as_dir=.
16085 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16086done
16087IFS=$as_save_IFS
16088
16089 ;;
16090esac
16091# We did not find ourselves, most probably we were run as `sh COMMAND'
16092# in which case we are not to be found in the path.
16093if test "x$as_myself" = x; then
16094 as_myself=$0
16095fi
16096if test ! -f "$as_myself"; then
16097 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16098 { (exit 1); exit 1; }
16099fi
16100
16101# Work around bugs in pre-3.0 UWIN ksh.
16102for as_var in ENV MAIL MAILPATH
16103do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
16104done
16105PS1='$ '
16106PS2='> '
16107PS4='+ '
16108
16109# NLS nuisances.
16110LC_ALL=C
16111export LC_ALL
16112LANGUAGE=C
16113export LANGUAGE
16114
16115# Required to use basename.
16116if expr a : '\(a\)' >/dev/null 2>&1 &&
16117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16118 as_expr=expr
16119else
16120 as_expr=false
16121fi
16122
16123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16124 as_basename=basename
16125else
16126 as_basename=false
16127fi
16128
16129
16130# Name of the executable.
16131as_me=`$as_basename -- "$0" ||
16132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16133 X"$0" : 'X\(//\)$' \| \
16134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16135$as_echo X/"$0" |
16136 sed '/^.*\/\([^/][^/]*\)\/*$/{
16137 s//\1/
16138 q
16139 }
16140 /^X\/\(\/\/\)$/{
16141 s//\1/
16142 q
16143 }
16144 /^X\/\(\/\).*/{
16145 s//\1/
16146 q
16147 }
16148 s/.*/./; q'`
16149
16150# CDPATH.
16151$as_unset CDPATH
16152
16153
16154
16155 as_lineno_1=$LINENO
16156 as_lineno_2=$LINENO
16157 test "x$as_lineno_1" != "x$as_lineno_2" &&
16158 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
16159
16160 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16161 # uniformly replaced by the line number. The first 'sed' inserts a
16162 # line-number line after each line using $LINENO; the second 'sed'
16163 # does the real work. The second script uses 'N' to pair each
16164 # line-number line with the line containing $LINENO, and appends
16165 # trailing '-' during substitution so that $LINENO is not a special
16166 # case at line end.
16167 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16168 # scripts with optimization help from Paolo Bonzini. Blame Lee
16169 # E. McMahon (1931-1989) for sed's syntax. :-)
16170 sed -n '
16171 p
16172 /[$]LINENO/=
16173 ' <$as_myself |
16174 sed '
16175 s/[$]LINENO.*/&-/
16176 t lineno
16177 b
16178 :lineno
16179 N
16180 :loop
16181 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
16182 t loop
16183 s/-\n.*//
16184 ' >$as_me.lineno &&
16185 chmod +x "$as_me.lineno" ||
16186 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
16187 { (exit 1); exit 1; }; }
16188
16189 # Don't try to exec as it changes $[0], causing all sort of problems
16190 # (the dirname of $[0] is not the place where we might find the
16191 # original and so on. Autoconf is especially sensitive to this).
16192 . "./$as_me.lineno"
16193 # Exit status is that of the last command.
16194 exit
16195}
16196
16197
16198if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16199 as_dirname=dirname
16200else
16201 as_dirname=false
16202fi
16203
16204ECHO_C= ECHO_N= ECHO_T=
16205case `echo -n x` in
16206-n*)
16207 case `echo 'x\c'` in
16208 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16209 *) ECHO_C='\c';;
16210 esac;;
16211*)
16212 ECHO_N='-n';;
16213esac
16214if expr a : '\(a\)' >/dev/null 2>&1 &&
16215 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16216 as_expr=expr
16217else
16218 as_expr=false
16219fi
16220
16221rm -f conf$$ conf$$.exe conf$$.file
16222if test -d conf$$.dir; then
16223 rm -f conf$$.dir/conf$$.file
16224else
16225 rm -f conf$$.dir
16226 mkdir conf$$.dir 2>/dev/null
16227fi
16228if (echo >conf$$.file) 2>/dev/null; then
16229 if ln -s conf$$.file conf$$ 2>/dev/null; then
16230 as_ln_s='ln -s'
16231 # ... but there are two gotchas:
16232 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16233 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16234 # In both cases, we have to default to `cp -p'.
16235 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16236 as_ln_s='cp -p'
16237 elif ln conf$$.file conf$$ 2>/dev/null; then
16238 as_ln_s=ln
16239 else
16240 as_ln_s='cp -p'
16241 fi
16242else
16243 as_ln_s='cp -p'
16244fi
16245rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16246rmdir conf$$.dir 2>/dev/null
16247
16248if mkdir -p . 2>/dev/null; then
16249 as_mkdir_p=:
16250else
16251 test -d ./-p && rmdir ./-p
16252 as_mkdir_p=false
16253fi
16254
16255if test -x / >/dev/null 2>&1; then
16256 as_test_x='test -x'
16257else
16258 if ls -dL / >/dev/null 2>&1; then
16259 as_ls_L_option=L
16260 else
16261 as_ls_L_option=
16262 fi
16263 as_test_x='
16264 eval sh -c '\''
16265 if test -d "$1"; then
16266 test -d "$1/.";
16267 else
16268 case $1 in
16269 -*)set "./$1";;
16270 esac;
16271 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
16272 ???[sx]*):;;*)false;;esac;fi
16273 '\'' sh
16274 '
16275fi
16276as_executable_p=$as_test_x
16277
16278# Sed expression to map a string onto a valid CPP name.
16279as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16280
16281# Sed expression to map a string onto a valid variable name.
16282as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16283
16284
16285exec 6>&1
16286
16287# Save the log message, to keep $[0] and so on meaningful, and to
16288# report actual input values of CONFIG_FILES etc. instead of their
16289# values after options handling.
16290ac_log="
16291This file was extended by librfb $as_me 0.0.90, which was
16292generated by GNU Autoconf 2.63. Invocation command line was
16293
16294 CONFIG_FILES = $CONFIG_FILES
16295 CONFIG_HEADERS = $CONFIG_HEADERS
16296 CONFIG_LINKS = $CONFIG_LINKS
16297 CONFIG_COMMANDS = $CONFIG_COMMANDS
16298 $ $0 $@
16299
16300on `(hostname || uname -n) 2>/dev/null | sed 1q`
16301"
16302
16303_ACEOF
16304
16305case $ac_config_files in *"
16306"*) set x $ac_config_files; shift; ac_config_files=$*;;
16307esac
16308
16309case $ac_config_headers in *"
16310"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16311esac
16312
16313
16314cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16315# Files that config.status was made for.
16316config_files="$ac_config_files"
16317config_headers="$ac_config_headers"
16318config_commands="$ac_config_commands"
16319
16320_ACEOF
16321
16322cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16323ac_cs_usage="\
16324\`$as_me' instantiates files from templates according to the
16325current configuration.
16326
16327Usage: $0 [OPTION]... [FILE]...
16328
16329 -h, --help print this help, then exit
16330 -V, --version print version number and configuration settings, then exit
16331 -q, --quiet, --silent
16332 do not print progress messages
16333 -d, --debug don't remove temporary files
16334 --recheck update $as_me by reconfiguring in the same conditions
16335 --file=FILE[:TEMPLATE]
16336 instantiate the configuration file FILE
16337 --header=FILE[:TEMPLATE]
16338 instantiate the configuration header FILE
16339
16340Configuration files:
16341$config_files
16342
16343Configuration headers:
16344$config_headers
16345
16346Configuration commands:
16347$config_commands
16348
16349Report bugs to <bug-autoconf@gnu.org>."
16350
16351_ACEOF
16352cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16353ac_cs_version="\\
16354librfb config.status 0.0.90
16355configured by $0, generated by GNU Autoconf 2.63,
16356 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16357
16358Copyright (C) 2008 Free Software Foundation, Inc.
16359This config.status script is free software; the Free Software Foundation
16360gives unlimited permission to copy, distribute and modify it."
16361
16362ac_pwd='$ac_pwd'
16363srcdir='$srcdir'
16364INSTALL='$INSTALL'
16365MKDIR_P='$MKDIR_P'
16366AWK='$AWK'
16367test -n "\$AWK" || AWK=awk
16368_ACEOF
16369
16370cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16371# The default lists apply if the user does not specify any file.
16372ac_need_defaults=:
16373while test $# != 0
16374do
16375 case $1 in
16376 --*=*)
16377 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16378 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16379 ac_shift=:
16380 ;;
16381 *)
16382 ac_option=$1
16383 ac_optarg=$2
16384 ac_shift=shift
16385 ;;
16386 esac
16387
16388 case $ac_option in
16389 # Handling of the options.
16390 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16391 ac_cs_recheck=: ;;
16392 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16393 $as_echo "$ac_cs_version"; exit ;;
16394 --debug | --debu | --deb | --de | --d | -d )
16395 debug=: ;;
16396 --file | --fil | --fi | --f )
16397 $ac_shift
16398 case $ac_optarg in
16399 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16400 esac
16401 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
16402 ac_need_defaults=false;;
16403 --header | --heade | --head | --hea )
16404 $ac_shift
16405 case $ac_optarg in
16406 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16407 esac
16408 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
16409 ac_need_defaults=false;;
16410 --he | --h)
16411 # Conflict between --help and --header
16412 { $as_echo "$as_me: error: ambiguous option: $1
16413Try \`$0 --help' for more information." >&2
16414 { (exit 1); exit 1; }; };;
16415 --help | --hel | -h )
16416 $as_echo "$ac_cs_usage"; exit ;;
16417 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16418 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16419 ac_cs_silent=: ;;
16420
16421 # This is an error.
16422 -*) { $as_echo "$as_me: error: unrecognized option: $1
16423Try \`$0 --help' for more information." >&2
16424 { (exit 1); exit 1; }; } ;;
16425
16426 *) ac_config_targets="$ac_config_targets $1"
16427 ac_need_defaults=false ;;
16428
16429 esac
16430 shift
16431done
16432
16433ac_configure_extra_args=
16434
16435if $ac_cs_silent; then
16436 exec 6>/dev/null
16437 ac_configure_extra_args="$ac_configure_extra_args --silent"
16438fi
16439
16440_ACEOF
16441cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16442if \$ac_cs_recheck; then
16443 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16444 shift
16445 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16446 CONFIG_SHELL='$SHELL'
16447 export CONFIG_SHELL
16448 exec "\$@"
16449fi
16450
16451_ACEOF
16452cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16453exec 5>>config.log
16454{
16455 echo
16456 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16457## Running $as_me. ##
16458_ASBOX
16459 $as_echo "$ac_log"
16460} >&5
16461
16462_ACEOF
16463cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16464#
16465# INIT-COMMANDS
16466#
16467AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16468
16469
16470# The HP-UX ksh and POSIX shell print the target directory to stdout
16471# if CDPATH is set.
16472(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16473
16474sed_quote_subst='$sed_quote_subst'
16475double_quote_subst='$double_quote_subst'
16476delay_variable_subst='$delay_variable_subst'
16477macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
16478macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
16479enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
16480enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
16481pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
16482enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
16483host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
16484host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
16485host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
16486build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
16487build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
16488build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
16489SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
16490Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
16491GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
16492EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
16493FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
16494LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
16495NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
16496LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
16497max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
16498ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
16499exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
16500lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
16501lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
16502lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
16503reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
16504reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16505OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
16506deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
16507file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
16508AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
16509AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16510STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16511RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16512old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16513old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16514old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16515CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
16516CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16517compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
16518GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
16519lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16520lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16521lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
16522lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16523objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
16524SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
16525ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
16526MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
16527lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
16528lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
16529lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
16530lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
16531lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
16532need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
16533DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
16534NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
16535LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
16536OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16537OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
16538libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
16539shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16540extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16541archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
16542enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
16543export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16544whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16545compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
16546old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16547old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16548archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16549archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16550module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16551module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16552with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
16553allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16554no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16555hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16556hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
16557hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
16558hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
16559hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
16560hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
16561hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16562hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
16563inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
16564link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
16565fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
16566always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
16567export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16568exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16569include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16570prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16571file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
16572variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
16573need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16574need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
16575version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
16576runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16577shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16578shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
16579libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16580library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
16581soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16582postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16583postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16584finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16585finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
16586hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
16587sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16588sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16589hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
16590enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
16591enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
16592enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
16593old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
16594striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
16595compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
16596predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16597postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16598predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
16599postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
16600compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
16601LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16602old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16603compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16604GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16605lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16606lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16607lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16608lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16609lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16610archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16611enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16612export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16613whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16614compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16615old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16616old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16617archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16618archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16619module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16620module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16621with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16622allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16623no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16624hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16625hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16626hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16627hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16628hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16629hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16630hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16631hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16632inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16633link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16634fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16635always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16636export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16637exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16638include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16639prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16640file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16641hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16642compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16643predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16644postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16645predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16646postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16647compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16648
16649LTCC='$LTCC'
16650LTCFLAGS='$LTCFLAGS'
16651compiler='$compiler_DEFAULT'
16652
16653# Quote evaled strings.
16654for var in SED \
16655GREP \
16656EGREP \
16657FGREP \
16658LD \
16659NM \
16660LN_S \
16661lt_SP2NL \
16662lt_NL2SP \
16663reload_flag \
16664OBJDUMP \
16665deplibs_check_method \
16666file_magic_cmd \
16667AR \
16668AR_FLAGS \
16669STRIP \
16670RANLIB \
16671CC \
16672CFLAGS \
16673compiler \
16674lt_cv_sys_global_symbol_pipe \
16675lt_cv_sys_global_symbol_to_cdecl \
16676lt_cv_sys_global_symbol_to_c_name_address \
16677lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16678SHELL \
16679ECHO \
16680lt_prog_compiler_no_builtin_flag \
16681lt_prog_compiler_wl \
16682lt_prog_compiler_pic \
16683lt_prog_compiler_static \
16684lt_cv_prog_compiler_c_o \
16685need_locks \
16686DSYMUTIL \
16687NMEDIT \
16688LIPO \
16689OTOOL \
16690OTOOL64 \
16691shrext_cmds \
16692export_dynamic_flag_spec \
16693whole_archive_flag_spec \
16694compiler_needs_object \
16695with_gnu_ld \
16696allow_undefined_flag \
16697no_undefined_flag \
16698hardcode_libdir_flag_spec \
16699hardcode_libdir_flag_spec_ld \
16700hardcode_libdir_separator \
16701fix_srcfile_path \
16702exclude_expsyms \
16703include_expsyms \
16704file_list_spec \
16705variables_saved_for_relink \
16706libname_spec \
16707library_names_spec \
16708soname_spec \
16709finish_eval \
16710old_striplib \
16711striplib \
16712compiler_lib_search_dirs \
16713predep_objects \
16714postdep_objects \
16715predeps \
16716postdeps \
16717compiler_lib_search_path \
16718LD_CXX \
16719compiler_CXX \
16720lt_prog_compiler_no_builtin_flag_CXX \
16721lt_prog_compiler_wl_CXX \
16722lt_prog_compiler_pic_CXX \
16723lt_prog_compiler_static_CXX \
16724lt_cv_prog_compiler_c_o_CXX \
16725export_dynamic_flag_spec_CXX \
16726whole_archive_flag_spec_CXX \
16727compiler_needs_object_CXX \
16728with_gnu_ld_CXX \
16729allow_undefined_flag_CXX \
16730no_undefined_flag_CXX \
16731hardcode_libdir_flag_spec_CXX \
16732hardcode_libdir_flag_spec_ld_CXX \
16733hardcode_libdir_separator_CXX \
16734fix_srcfile_path_CXX \
16735exclude_expsyms_CXX \
16736include_expsyms_CXX \
16737file_list_spec_CXX \
16738compiler_lib_search_dirs_CXX \
16739predep_objects_CXX \
16740postdep_objects_CXX \
16741predeps_CXX \
16742postdeps_CXX \
16743compiler_lib_search_path_CXX; do
16744 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16745 *[\\\\\\\`\\"\\\$]*)
16746 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16747 ;;
16748 *)
16749 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16750 ;;
16751 esac
16752done
16753
16754# Double-quote double-evaled strings.
16755for var in reload_cmds \
16756old_postinstall_cmds \
16757old_postuninstall_cmds \
16758old_archive_cmds \
16759extract_expsyms_cmds \
16760old_archive_from_new_cmds \
16761old_archive_from_expsyms_cmds \
16762archive_cmds \
16763archive_expsym_cmds \
16764module_cmds \
16765module_expsym_cmds \
16766export_symbols_cmds \
16767prelink_cmds \
16768postinstall_cmds \
16769postuninstall_cmds \
16770finish_cmds \
16771sys_lib_search_path_spec \
16772sys_lib_dlsearch_path_spec \
16773old_archive_cmds_CXX \
16774old_archive_from_new_cmds_CXX \
16775old_archive_from_expsyms_cmds_CXX \
16776archive_cmds_CXX \
16777archive_expsym_cmds_CXX \
16778module_cmds_CXX \
16779module_expsym_cmds_CXX \
16780export_symbols_cmds_CXX \
16781prelink_cmds_CXX; do
16782 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16783 *[\\\\\\\`\\"\\\$]*)
16784 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16785 ;;
16786 *)
16787 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16788 ;;
16789 esac
16790done
16791
16792# Fix-up fallback echo if it was mangled by the above quoting rules.
16793case \$lt_ECHO in
16794*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
16795 ;;
16796esac
16797
16798ac_aux_dir='$ac_aux_dir'
16799xsi_shell='$xsi_shell'
16800lt_shell_append='$lt_shell_append'
16801
16802# See if we are running on zsh, and set the options which allow our
16803# commands through without removal of \ escapes INIT.
16804if test -n "\${ZSH_VERSION+set}" ; then
16805 setopt NO_GLOB_SUBST
16806fi
16807
16808
16809 PACKAGE='$PACKAGE'
16810 VERSION='$VERSION'
16811 TIMESTAMP='$TIMESTAMP'
16812 RM='$RM'
16813 ofile='$ofile'
16814
16815
16816
16817
16818
16819
16820_ACEOF
16821
16822cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16823
16824# Handling of arguments.
16825for ac_config_target in $ac_config_targets
16826do
16827 case $ac_config_target in
16828 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16829 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16830 "common-config.h") CONFIG_HEADERS="$CONFIG_HEADERS common-config.h" ;;
16831 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16832 "os/Makefile") CONFIG_FILES="$CONFIG_FILES os/Makefile" ;;
16833 "rdr/Makefile") CONFIG_FILES="$CONFIG_FILES rdr/Makefile" ;;
16834 "network/Makefile") CONFIG_FILES="$CONFIG_FILES network/Makefile" ;;
16835 "Xregion/Makefile") CONFIG_FILES="$CONFIG_FILES Xregion/Makefile" ;;
16836 "rfb/Makefile") CONFIG_FILES="$CONFIG_FILES rfb/Makefile" ;;
16837
16838 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16839$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16840 { (exit 1); exit 1; }; };;
16841 esac
16842done
16843
16844
16845# If the user did not use the arguments to specify the items to instantiate,
16846# then the envvar interface is used. Set only those that are not.
16847# We use the long form for the default assignment because of an extremely
16848# bizarre bug on SunOS 4.1.3.
16849if $ac_need_defaults; then
16850 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16851 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16852 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16853fi
16854
16855# Have a temporary directory for convenience. Make it in the build tree
16856# simply because there is no reason against having it here, and in addition,
16857# creating and moving files from /tmp can sometimes cause problems.
16858# Hook for its removal unless debugging.
16859# Note that there is a small window in which the directory will not be cleaned:
16860# after its creation but before its name has been assigned to `$tmp'.
16861$debug ||
16862{
16863 tmp=
16864 trap 'exit_status=$?
16865 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16866' 0
16867 trap '{ (exit 1); exit 1; }' 1 2 13 15
16868}
16869# Create a (secure) tmp directory for tmp files.
16870
16871{
16872 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16873 test -n "$tmp" && test -d "$tmp"
16874} ||
16875{
16876 tmp=./conf$$-$RANDOM
16877 (umask 077 && mkdir "$tmp")
16878} ||
16879{
16880 $as_echo "$as_me: cannot create a temporary directory in ." >&2
16881 { (exit 1); exit 1; }
16882}
16883
16884# Set up the scripts for CONFIG_FILES section.
16885# No need to generate them if there are no CONFIG_FILES.
16886# This happens for instance with `./config.status config.h'.
16887if test -n "$CONFIG_FILES"; then
16888
16889
16890ac_cr=' '
16891ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16892if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16893 ac_cs_awk_cr='\\r'
16894else
16895 ac_cs_awk_cr=$ac_cr
16896fi
16897
16898echo 'BEGIN {' >"$tmp/subs1.awk" &&
16899_ACEOF
16900
16901
16902{
16903 echo "cat >conf$$subs.awk <<_ACEOF" &&
16904 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16905 echo "_ACEOF"
16906} >conf$$subs.sh ||
16907 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16908$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16909 { (exit 1); exit 1; }; }
16910ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16911ac_delim='%!_!# '
16912for ac_last_try in false false false false false :; do
16913 . ./conf$$subs.sh ||
16914 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16915$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16916 { (exit 1); exit 1; }; }
16917
16918 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16919 if test $ac_delim_n = $ac_delim_num; then
16920 break
16921 elif $ac_last_try; then
16922 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16923$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16924 { (exit 1); exit 1; }; }
16925 else
16926 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16927 fi
16928done
16929rm -f conf$$subs.sh
16930
16931cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16932cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16933_ACEOF
16934sed -n '
16935h
16936s/^/S["/; s/!.*/"]=/
16937p
16938g
16939s/^[^!]*!//
16940:repl
16941t repl
16942s/'"$ac_delim"'$//
16943t delim
16944:nl
16945h
16946s/\(.\{148\}\).*/\1/
16947t more1
16948s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16949p
16950n
16951b repl
16952:more1
16953s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16954p
16955g
16956s/.\{148\}//
16957t nl
16958:delim
16959h
16960s/\(.\{148\}\).*/\1/
16961t more2
16962s/["\\]/\\&/g; s/^/"/; s/$/"/
16963p
16964b
16965:more2
16966s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16967p
16968g
16969s/.\{148\}//
16970t delim
16971' <conf$$subs.awk | sed '
16972/^[^""]/{
16973 N
16974 s/\n//
16975}
16976' >>$CONFIG_STATUS || ac_write_fail=1
16977rm -f conf$$subs.awk
16978cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16979_ACAWK
16980cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16981 for (key in S) S_is_set[key] = 1
16982 FS = ""
16983
16984}
16985{
16986 line = $ 0
16987 nfields = split(line, field, "@")
16988 substed = 0
16989 len = length(field[1])
16990 for (i = 2; i < nfields; i++) {
16991 key = field[i]
16992 keylen = length(key)
16993 if (S_is_set[key]) {
16994 value = S[key]
16995 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16996 len += length(value) + length(field[++i])
16997 substed = 1
16998 } else
16999 len += 1 + keylen
17000 }
17001
17002 print line
17003}
17004
17005_ACAWK
17006_ACEOF
17007cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17008if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17009 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17010else
17011 cat
17012fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17013 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
17014$as_echo "$as_me: error: could not setup config files machinery" >&2;}
17015 { (exit 1); exit 1; }; }
17016_ACEOF
17017
17018# VPATH may cause trouble with some makes, so we remove $(srcdir),
17019# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17020# trailing colons and then remove the whole line if VPATH becomes empty
17021# (actually we leave an empty line to preserve line numbers).
17022if test "x$srcdir" = x.; then
17023 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17024s/:*\$(srcdir):*/:/
17025s/:*\${srcdir}:*/:/
17026s/:*@srcdir@:*/:/
17027s/^\([^=]*=[ ]*\):*/\1/
17028s/:*$//
17029s/^[^=]*=[ ]*$//
17030}'
17031fi
17032
17033cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17034fi # test -n "$CONFIG_FILES"
17035
17036# Set up the scripts for CONFIG_HEADERS section.
17037# No need to generate them if there are no CONFIG_HEADERS.
17038# This happens for instance with `./config.status Makefile'.
17039if test -n "$CONFIG_HEADERS"; then
17040cat >"$tmp/defines.awk" <<\_ACAWK ||
17041BEGIN {
17042_ACEOF
17043
17044# Transform confdefs.h into an awk script `defines.awk', embedded as
17045# here-document in config.status, that substitutes the proper values into
17046# config.h.in to produce config.h.
17047
17048# Create a delimiter string that does not exist in confdefs.h, to ease
17049# handling of long lines.
17050ac_delim='%!_!# '
17051for ac_last_try in false false :; do
17052 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17053 if test -z "$ac_t"; then
17054 break
17055 elif $ac_last_try; then
17056 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
17057$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
17058 { (exit 1); exit 1; }; }
17059 else
17060 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17061 fi
17062done
17063
17064# For the awk script, D is an array of macro values keyed by name,
17065# likewise P contains macro parameters if any. Preserve backslash
17066# newline sequences.
17067
17068ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17069sed -n '
17070s/.\{148\}/&'"$ac_delim"'/g
17071t rset
17072:rset
17073s/^[ ]*#[ ]*define[ ][ ]*/ /
17074t def
17075d
17076:def
17077s/\\$//
17078t bsnl
17079s/["\\]/\\&/g
17080s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17081D["\1"]=" \3"/p
17082s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17083d
17084:bsnl
17085s/["\\]/\\&/g
17086s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17087D["\1"]=" \3\\\\\\n"\\/p
17088t cont
17089s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17090t cont
17091d
17092:cont
17093n
17094s/.\{148\}/&'"$ac_delim"'/g
17095t clear
17096:clear
17097s/\\$//
17098t bsnlc
17099s/["\\]/\\&/g; s/^/"/; s/$/"/p
17100d
17101:bsnlc
17102s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17103b cont
17104' <confdefs.h | sed '
17105s/'"$ac_delim"'/"\\\
17106"/g' >>$CONFIG_STATUS || ac_write_fail=1
17107
17108cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17109 for (key in D) D_is_set[key] = 1
17110 FS = ""
17111}
17112/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17113 line = \$ 0
17114 split(line, arg, " ")
17115 if (arg[1] == "#") {
17116 defundef = arg[2]
17117 mac1 = arg[3]
17118 } else {
17119 defundef = substr(arg[1], 2)
17120 mac1 = arg[2]
17121 }
17122 split(mac1, mac2, "(") #)
17123 macro = mac2[1]
17124 prefix = substr(line, 1, index(line, defundef) - 1)
17125 if (D_is_set[macro]) {
17126 # Preserve the white space surrounding the "#".
17127 print prefix "define", macro P[macro] D[macro]
17128 next
17129 } else {
17130 # Replace #undef with comments. This is necessary, for example,
17131 # in the case of _POSIX_SOURCE, which is predefined and required
17132 # on some systems where configure will not decide to define it.
17133 if (defundef == "undef") {
17134 print "/*", prefix defundef, macro, "*/"
17135 next
17136 }
17137 }
17138}
17139{ print }
17140_ACAWK
17141_ACEOF
17142cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17143 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
17144$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
17145 { (exit 1); exit 1; }; }
17146fi # test -n "$CONFIG_HEADERS"
17147
17148
17149eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17150shift
17151for ac_tag
17152do
17153 case $ac_tag in
17154 :[FHLC]) ac_mode=$ac_tag; continue;;
17155 esac
17156 case $ac_mode$ac_tag in
17157 :[FHL]*:*);;
17158 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
17159$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
17160 { (exit 1); exit 1; }; };;
17161 :[FH]-) ac_tag=-:-;;
17162 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17163 esac
17164 ac_save_IFS=$IFS
17165 IFS=:
17166 set x $ac_tag
17167 IFS=$ac_save_IFS
17168 shift
17169 ac_file=$1
17170 shift
17171
17172 case $ac_mode in
17173 :L) ac_source=$1;;
17174 :[FH])
17175 ac_file_inputs=
17176 for ac_f
17177 do
17178 case $ac_f in
17179 -) ac_f="$tmp/stdin";;
17180 *) # Look for the file first in the build tree, then in the source tree
17181 # (if the path is not absolute). The absolute path cannot be DOS-style,
17182 # because $ac_f cannot contain `:'.
17183 test -f "$ac_f" ||
17184 case $ac_f in
17185 [\\/$]*) false;;
17186 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17187 esac ||
17188 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
17189$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
17190 { (exit 1); exit 1; }; };;
17191 esac
17192 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17193 ac_file_inputs="$ac_file_inputs '$ac_f'"
17194 done
17195
17196 # Let's still pretend it is `configure' which instantiates (i.e., don't
17197 # use $as_me), people would be surprised to read:
17198 # /* config.h. Generated by config.status. */
17199 configure_input='Generated from '`
17200 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17201 `' by configure.'
17202 if test x"$ac_file" != x-; then
17203 configure_input="$ac_file. $configure_input"
17204 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
17205$as_echo "$as_me: creating $ac_file" >&6;}
17206 fi
17207 # Neutralize special characters interpreted by sed in replacement strings.
17208 case $configure_input in #(
17209 *\&* | *\|* | *\\* )
17210 ac_sed_conf_input=`$as_echo "$configure_input" |
17211 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17212 *) ac_sed_conf_input=$configure_input;;
17213 esac
17214
17215 case $ac_tag in
17216 *:-:* | *:-) cat >"$tmp/stdin" \
17217 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17218$as_echo "$as_me: error: could not create $ac_file" >&2;}
17219 { (exit 1); exit 1; }; } ;;
17220 esac
17221 ;;
17222 esac
17223
17224 ac_dir=`$as_dirname -- "$ac_file" ||
17225$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17226 X"$ac_file" : 'X\(//\)[^/]' \| \
17227 X"$ac_file" : 'X\(//\)$' \| \
17228 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17229$as_echo X"$ac_file" |
17230 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17231 s//\1/
17232 q
17233 }
17234 /^X\(\/\/\)[^/].*/{
17235 s//\1/
17236 q
17237 }
17238 /^X\(\/\/\)$/{
17239 s//\1/
17240 q
17241 }
17242 /^X\(\/\).*/{
17243 s//\1/
17244 q
17245 }
17246 s/.*/./; q'`
17247 { as_dir="$ac_dir"
17248 case $as_dir in #(
17249 -*) as_dir=./$as_dir;;
17250 esac
17251 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17252 as_dirs=
17253 while :; do
17254 case $as_dir in #(
17255 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17256 *) as_qdir=$as_dir;;
17257 esac
17258 as_dirs="'$as_qdir' $as_dirs"
17259 as_dir=`$as_dirname -- "$as_dir" ||
17260$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17261 X"$as_dir" : 'X\(//\)[^/]' \| \
17262 X"$as_dir" : 'X\(//\)$' \| \
17263 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17264$as_echo X"$as_dir" |
17265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17266 s//\1/
17267 q
17268 }
17269 /^X\(\/\/\)[^/].*/{
17270 s//\1/
17271 q
17272 }
17273 /^X\(\/\/\)$/{
17274 s//\1/
17275 q
17276 }
17277 /^X\(\/\).*/{
17278 s//\1/
17279 q
17280 }
17281 s/.*/./; q'`
17282 test -d "$as_dir" && break
17283 done
17284 test -z "$as_dirs" || eval "mkdir $as_dirs"
17285 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17286$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
17287 { (exit 1); exit 1; }; }; }
17288 ac_builddir=.
17289
17290case "$ac_dir" in
17291.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17292*)
17293 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17294 # A ".." for each directory in $ac_dir_suffix.
17295 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17296 case $ac_top_builddir_sub in
17297 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17298 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17299 esac ;;
17300esac
17301ac_abs_top_builddir=$ac_pwd
17302ac_abs_builddir=$ac_pwd$ac_dir_suffix
17303# for backward compatibility:
17304ac_top_builddir=$ac_top_build_prefix
17305
17306case $srcdir in
17307 .) # We are building in place.
17308 ac_srcdir=.
17309 ac_top_srcdir=$ac_top_builddir_sub
17310 ac_abs_top_srcdir=$ac_pwd ;;
17311 [\\/]* | ?:[\\/]* ) # Absolute name.
17312 ac_srcdir=$srcdir$ac_dir_suffix;
17313 ac_top_srcdir=$srcdir
17314 ac_abs_top_srcdir=$srcdir ;;
17315 *) # Relative name.
17316 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17317 ac_top_srcdir=$ac_top_build_prefix$srcdir
17318 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17319esac
17320ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17321
17322
17323 case $ac_mode in
17324 :F)
17325 #
17326 # CONFIG_FILE
17327 #
17328
17329 case $INSTALL in
17330 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17331 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17332 esac
17333 ac_MKDIR_P=$MKDIR_P
17334 case $MKDIR_P in
17335 [\\/$]* | ?:[\\/]* ) ;;
17336 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17337 esac
17338_ACEOF
17339
17340cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17341# If the template does not know about datarootdir, expand it.
17342# FIXME: This hack should be removed a few years after 2.60.
17343ac_datarootdir_hack=; ac_datarootdir_seen=
17344
17345ac_sed_dataroot='
17346/datarootdir/ {
17347 p
17348 q
17349}
17350/@datadir@/p
17351/@docdir@/p
17352/@infodir@/p
17353/@localedir@/p
17354/@mandir@/p
17355'
17356case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17357*datarootdir*) ac_datarootdir_seen=yes;;
17358*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17359 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17360$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17361_ACEOF
17362cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17363 ac_datarootdir_hack='
17364 s&@datadir@&$datadir&g
17365 s&@docdir@&$docdir&g
17366 s&@infodir@&$infodir&g
17367 s&@localedir@&$localedir&g
17368 s&@mandir@&$mandir&g
17369 s&\\\${datarootdir}&$datarootdir&g' ;;
17370esac
17371_ACEOF
17372
17373# Neutralize VPATH when `$srcdir' = `.'.
17374# Shell code in configure.ac might set extrasub.
17375# FIXME: do we really want to maintain this feature?
17376cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17377ac_sed_extra="$ac_vpsub
17378$extrasub
17379_ACEOF
17380cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17381:t
17382/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17383s|@configure_input@|$ac_sed_conf_input|;t t
17384s&@top_builddir@&$ac_top_builddir_sub&;t t
17385s&@top_build_prefix@&$ac_top_build_prefix&;t t
17386s&@srcdir@&$ac_srcdir&;t t
17387s&@abs_srcdir@&$ac_abs_srcdir&;t t
17388s&@top_srcdir@&$ac_top_srcdir&;t t
17389s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17390s&@builddir@&$ac_builddir&;t t
17391s&@abs_builddir@&$ac_abs_builddir&;t t
17392s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17393s&@INSTALL@&$ac_INSTALL&;t t
17394s&@MKDIR_P@&$ac_MKDIR_P&;t t
17395$ac_datarootdir_hack
17396"
17397eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17398 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17399$as_echo "$as_me: error: could not create $ac_file" >&2;}
17400 { (exit 1); exit 1; }; }
17401
17402test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17403 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17404 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17405 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17406which seems to be undefined. Please make sure it is defined." >&5
17407$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17408which seems to be undefined. Please make sure it is defined." >&2;}
17409
17410 rm -f "$tmp/stdin"
17411 case $ac_file in
17412 -) cat "$tmp/out" && rm -f "$tmp/out";;
17413 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17414 esac \
17415 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17416$as_echo "$as_me: error: could not create $ac_file" >&2;}
17417 { (exit 1); exit 1; }; }
17418 ;;
17419 :H)
17420 #
17421 # CONFIG_HEADER
17422 #
17423 if test x"$ac_file" != x-; then
17424 {
17425 $as_echo "/* $configure_input */" \
17426 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17427 } >"$tmp/config.h" \
17428 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17429$as_echo "$as_me: error: could not create $ac_file" >&2;}
17430 { (exit 1); exit 1; }; }
17431 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17432 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17433$as_echo "$as_me: $ac_file is unchanged" >&6;}
17434 else
17435 rm -f "$ac_file"
17436 mv "$tmp/config.h" "$ac_file" \
17437 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17438$as_echo "$as_me: error: could not create $ac_file" >&2;}
17439 { (exit 1); exit 1; }; }
17440 fi
17441 else
17442 $as_echo "/* $configure_input */" \
17443 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17444 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
17445$as_echo "$as_me: error: could not create -" >&2;}
17446 { (exit 1); exit 1; }; }
17447 fi
17448# Compute "$ac_file"'s index in $config_headers.
17449_am_arg="$ac_file"
17450_am_stamp_count=1
17451for _am_header in $config_headers :; do
17452 case $_am_header in
17453 $_am_arg | $_am_arg:* )
17454 break ;;
17455 * )
17456 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17457 esac
17458done
17459echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17460$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17461 X"$_am_arg" : 'X\(//\)[^/]' \| \
17462 X"$_am_arg" : 'X\(//\)$' \| \
17463 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17464$as_echo X"$_am_arg" |
17465 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17466 s//\1/
17467 q
17468 }
17469 /^X\(\/\/\)[^/].*/{
17470 s//\1/
17471 q
17472 }
17473 /^X\(\/\/\)$/{
17474 s//\1/
17475 q
17476 }
17477 /^X\(\/\).*/{
17478 s//\1/
17479 q
17480 }
17481 s/.*/./; q'`/stamp-h$_am_stamp_count
17482 ;;
17483
17484 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
17485$as_echo "$as_me: executing $ac_file commands" >&6;}
17486 ;;
17487 esac
17488
17489
17490 case $ac_file$ac_mode in
17491 "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
17492# are listed without --file. Let's play safe and only enable the eval
17493# if we detect the quoting.
17494case $CONFIG_FILES in
17495*\'*) eval set x "$CONFIG_FILES" ;;
17496*) set x $CONFIG_FILES ;;
17497esac
17498shift
17499for mf
17500do
17501 # Strip MF so we end up with the name of the file.
17502 mf=`echo "$mf" | sed -e 's/:.*$//'`
17503 # Check whether this is an Automake generated Makefile or not.
17504 # We used to match only the files named `Makefile.in', but
17505 # some people rename them; so instead we look at the file content.
17506 # Grep'ing the first line is not enough: some people post-process
17507 # each Makefile.in and add a new line on top of each file to say so.
17508 # Grep'ing the whole file is not good either: AIX grep has a line
17509 # limit of 2048, but all sed's we know have understand at least 4000.
17510 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17511 dirpart=`$as_dirname -- "$mf" ||
17512$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17513 X"$mf" : 'X\(//\)[^/]' \| \
17514 X"$mf" : 'X\(//\)$' \| \
17515 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17516$as_echo X"$mf" |
17517 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17518 s//\1/
17519 q
17520 }
17521 /^X\(\/\/\)[^/].*/{
17522 s//\1/
17523 q
17524 }
17525 /^X\(\/\/\)$/{
17526 s//\1/
17527 q
17528 }
17529 /^X\(\/\).*/{
17530 s//\1/
17531 q
17532 }
17533 s/.*/./; q'`
17534 else
17535 continue
17536 fi
17537 # Extract the definition of DEPDIR, am__include, and am__quote
17538 # from the Makefile without running `make'.
17539 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17540 test -z "$DEPDIR" && continue
17541 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17542 test -z "am__include" && continue
17543 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17544 # When using ansi2knr, U may be empty or an underscore; expand it
17545 U=`sed -n 's/^U = //p' < "$mf"`
17546 # Find all dependency output files, they are included files with
17547 # $(DEPDIR) in their names. We invoke sed twice because it is the
17548 # simplest approach to changing $(DEPDIR) to its actual value in the
17549 # expansion.
17550 for file in `sed -n "
17551 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17552 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17553 # Make sure the directory exists.
17554 test -f "$dirpart/$file" && continue
17555 fdir=`$as_dirname -- "$file" ||
17556$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17557 X"$file" : 'X\(//\)[^/]' \| \
17558 X"$file" : 'X\(//\)$' \| \
17559 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17560$as_echo X"$file" |
17561 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17562 s//\1/
17563 q
17564 }
17565 /^X\(\/\/\)[^/].*/{
17566 s//\1/
17567 q
17568 }
17569 /^X\(\/\/\)$/{
17570 s//\1/
17571 q
17572 }
17573 /^X\(\/\).*/{
17574 s//\1/
17575 q
17576 }
17577 s/.*/./; q'`
17578 { as_dir=$dirpart/$fdir
17579 case $as_dir in #(
17580 -*) as_dir=./$as_dir;;
17581 esac
17582 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17583 as_dirs=
17584 while :; do
17585 case $as_dir in #(
17586 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17587 *) as_qdir=$as_dir;;
17588 esac
17589 as_dirs="'$as_qdir' $as_dirs"
17590 as_dir=`$as_dirname -- "$as_dir" ||
17591$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17592 X"$as_dir" : 'X\(//\)[^/]' \| \
17593 X"$as_dir" : 'X\(//\)$' \| \
17594 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17595$as_echo X"$as_dir" |
17596 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17597 s//\1/
17598 q
17599 }
17600 /^X\(\/\/\)[^/].*/{
17601 s//\1/
17602 q
17603 }
17604 /^X\(\/\/\)$/{
17605 s//\1/
17606 q
17607 }
17608 /^X\(\/\).*/{
17609 s//\1/
17610 q
17611 }
17612 s/.*/./; q'`
17613 test -d "$as_dir" && break
17614 done
17615 test -z "$as_dirs" || eval "mkdir $as_dirs"
17616 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17617$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
17618 { (exit 1); exit 1; }; }; }
17619 # echo "creating $dirpart/$file"
17620 echo '# dummy' > "$dirpart/$file"
17621 done
17622done
17623 ;;
17624 "libtool":C)
17625
17626 # See if we are running on zsh, and set the options which allow our
17627 # commands through without removal of \ escapes.
17628 if test -n "${ZSH_VERSION+set}" ; then
17629 setopt NO_GLOB_SUBST
17630 fi
17631
17632 cfgfile="${ofile}T"
17633 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17634 $RM "$cfgfile"
17635
17636 cat <<_LT_EOF >> "$cfgfile"
17637#! $SHELL
17638
17639# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17640# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17641# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17642# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17643#
17644# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17645# 2006, 2007, 2008 Free Software Foundation, Inc.
17646# Written by Gordon Matzigkeit, 1996
17647#
17648# This file is part of GNU Libtool.
17649#
17650# GNU Libtool is free software; you can redistribute it and/or
17651# modify it under the terms of the GNU General Public License as
17652# published by the Free Software Foundation; either version 2 of
17653# the License, or (at your option) any later version.
17654#
17655# As a special exception to the GNU General Public License,
17656# if you distribute this file as part of a program or library that
17657# is built using GNU Libtool, you may include this file under the
17658# same distribution terms that you use for the rest of that program.
17659#
17660# GNU Libtool is distributed in the hope that it will be useful,
17661# but WITHOUT ANY WARRANTY; without even the implied warranty of
17662# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17663# GNU General Public License for more details.
17664#
17665# You should have received a copy of the GNU General Public License
17666# along with GNU Libtool; see the file COPYING. If not, a copy
17667# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17668# obtained by writing to the Free Software Foundation, Inc.,
17669# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17670
17671
17672# The names of the tagged configurations supported by this script.
17673available_tags="CXX "
17674
17675# ### BEGIN LIBTOOL CONFIG
17676
17677# Which release of libtool.m4 was used?
17678macro_version=$macro_version
17679macro_revision=$macro_revision
17680
17681# Whether or not to build shared libraries.
17682build_libtool_libs=$enable_shared
17683
17684# Whether or not to build static libraries.
17685build_old_libs=$enable_static
17686
17687# What type of objects to build.
17688pic_mode=$pic_mode
17689
17690# Whether or not to optimize for fast installation.
17691fast_install=$enable_fast_install
17692
17693# The host system.
17694host_alias=$host_alias
17695host=$host
17696host_os=$host_os
17697
17698# The build system.
17699build_alias=$build_alias
17700build=$build
17701build_os=$build_os
17702
17703# A sed program that does not truncate output.
17704SED=$lt_SED
17705
17706# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17707Xsed="\$SED -e 1s/^X//"
17708
17709# A grep program that handles long lines.
17710GREP=$lt_GREP
17711
17712# An ERE matcher.
17713EGREP=$lt_EGREP
17714
17715# A literal string matcher.
17716FGREP=$lt_FGREP
17717
17718# A BSD- or MS-compatible name lister.
17719NM=$lt_NM
17720
17721# Whether we need soft or hard links.
17722LN_S=$lt_LN_S
17723
17724# What is the maximum length of a command?
17725max_cmd_len=$max_cmd_len
17726
17727# Object file suffix (normally "o").
17728objext=$ac_objext
17729
17730# Executable file suffix (normally "").
17731exeext=$exeext
17732
17733# whether the shell understands "unset".
17734lt_unset=$lt_unset
17735
17736# turn spaces into newlines.
17737SP2NL=$lt_lt_SP2NL
17738
17739# turn newlines into spaces.
17740NL2SP=$lt_lt_NL2SP
17741
17742# How to create reloadable object files.
17743reload_flag=$lt_reload_flag
17744reload_cmds=$lt_reload_cmds
17745
17746# An object symbol dumper.
17747OBJDUMP=$lt_OBJDUMP
17748
17749# Method to check whether dependent libraries are shared objects.
17750deplibs_check_method=$lt_deplibs_check_method
17751
17752# Command to use when deplibs_check_method == "file_magic".
17753file_magic_cmd=$lt_file_magic_cmd
17754
17755# The archiver.
17756AR=$lt_AR
17757AR_FLAGS=$lt_AR_FLAGS
17758
17759# A symbol stripping program.
17760STRIP=$lt_STRIP
17761
17762# Commands used to install an old-style archive.
17763RANLIB=$lt_RANLIB
17764old_postinstall_cmds=$lt_old_postinstall_cmds
17765old_postuninstall_cmds=$lt_old_postuninstall_cmds
17766
17767# A C compiler.
17768LTCC=$lt_CC
17769
17770# LTCC compiler flags.
17771LTCFLAGS=$lt_CFLAGS
17772
17773# Take the output of nm and produce a listing of raw symbols and C names.
17774global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17775
17776# Transform the output of nm in a proper C declaration.
17777global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17778
17779# Transform the output of nm in a C name address pair.
17780global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17781
17782# Transform the output of nm in a C name address pair when lib prefix is needed.
17783global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17784
17785# The name of the directory that contains temporary libtool files.
17786objdir=$objdir
17787
17788# Shell to use when invoking shell scripts.
17789SHELL=$lt_SHELL
17790
17791# An echo program that does not interpret backslashes.
17792ECHO=$lt_ECHO
17793
17794# Used to examine libraries when file_magic_cmd begins with "file".
17795MAGIC_CMD=$MAGIC_CMD
17796
17797# Must we lock files when doing compilation?
17798need_locks=$lt_need_locks
17799
17800# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17801DSYMUTIL=$lt_DSYMUTIL
17802
17803# Tool to change global to local symbols on Mac OS X.
17804NMEDIT=$lt_NMEDIT
17805
17806# Tool to manipulate fat objects and archives on Mac OS X.
17807LIPO=$lt_LIPO
17808
17809# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17810OTOOL=$lt_OTOOL
17811
17812# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17813OTOOL64=$lt_OTOOL64
17814
17815# Old archive suffix (normally "a").
17816libext=$libext
17817
17818# Shared library suffix (normally ".so").
17819shrext_cmds=$lt_shrext_cmds
17820
17821# The commands to extract the exported symbol list from a shared archive.
17822extract_expsyms_cmds=$lt_extract_expsyms_cmds
17823
17824# Variables whose values should be saved in libtool wrapper scripts and
17825# restored at link time.
17826variables_saved_for_relink=$lt_variables_saved_for_relink
17827
17828# Do we need the "lib" prefix for modules?
17829need_lib_prefix=$need_lib_prefix
17830
17831# Do we need a version for libraries?
17832need_version=$need_version
17833
17834# Library versioning type.
17835version_type=$version_type
17836
17837# Shared library runtime path variable.
17838runpath_var=$runpath_var
17839
17840# Shared library path variable.
17841shlibpath_var=$shlibpath_var
17842
17843# Is shlibpath searched before the hard-coded library search path?
17844shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17845
17846# Format of library name prefix.
17847libname_spec=$lt_libname_spec
17848
17849# List of archive names. First name is the real one, the rest are links.
17850# The last name is the one that the linker finds with -lNAME
17851library_names_spec=$lt_library_names_spec
17852
17853# The coded name of the library, if different from the real name.
17854soname_spec=$lt_soname_spec
17855
17856# Command to use after installation of a shared archive.
17857postinstall_cmds=$lt_postinstall_cmds
17858
17859# Command to use after uninstallation of a shared archive.
17860postuninstall_cmds=$lt_postuninstall_cmds
17861
17862# Commands used to finish a libtool library installation in a directory.
17863finish_cmds=$lt_finish_cmds
17864
17865# As "finish_cmds", except a single script fragment to be evaled but
17866# not shown.
17867finish_eval=$lt_finish_eval
17868
17869# Whether we should hardcode library paths into libraries.
17870hardcode_into_libs=$hardcode_into_libs
17871
17872# Compile-time system search path for libraries.
17873sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17874
17875# Run-time system search path for libraries.
17876sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17877
17878# Whether dlopen is supported.
17879dlopen_support=$enable_dlopen
17880
17881# Whether dlopen of programs is supported.
17882dlopen_self=$enable_dlopen_self
17883
17884# Whether dlopen of statically linked programs is supported.
17885dlopen_self_static=$enable_dlopen_self_static
17886
17887# Commands to strip libraries.
17888old_striplib=$lt_old_striplib
17889striplib=$lt_striplib
17890
17891
17892# The linker used to build libraries.
17893LD=$lt_LD
17894
17895# Commands used to build an old-style archive.
17896old_archive_cmds=$lt_old_archive_cmds
17897
17898# A language specific compiler.
17899CC=$lt_compiler
17900
17901# Is the compiler the GNU compiler?
17902with_gcc=$GCC
17903
17904# Compiler flag to turn off builtin functions.
17905no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17906
17907# How to pass a linker flag through the compiler.
17908wl=$lt_lt_prog_compiler_wl
17909
17910# Additional compiler flags for building library objects.
17911pic_flag=$lt_lt_prog_compiler_pic
17912
17913# Compiler flag to prevent dynamic linking.
17914link_static_flag=$lt_lt_prog_compiler_static
17915
17916# Does compiler simultaneously support -c and -o options?
17917compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17918
17919# Whether or not to add -lc for building shared libraries.
17920build_libtool_need_lc=$archive_cmds_need_lc
17921
17922# Whether or not to disallow shared libs when runtime libs are static.
17923allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17924
17925# Compiler flag to allow reflexive dlopens.
17926export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17927
17928# Compiler flag to generate shared objects directly from archives.
17929whole_archive_flag_spec=$lt_whole_archive_flag_spec
17930
17931# Whether the compiler copes with passing no objects directly.
17932compiler_needs_object=$lt_compiler_needs_object
17933
17934# Create an old-style archive from a shared archive.
17935old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17936
17937# Create a temporary old-style archive to link instead of a shared archive.
17938old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17939
17940# Commands used to build a shared archive.
17941archive_cmds=$lt_archive_cmds
17942archive_expsym_cmds=$lt_archive_expsym_cmds
17943
17944# Commands used to build a loadable module if different from building
17945# a shared archive.
17946module_cmds=$lt_module_cmds
17947module_expsym_cmds=$lt_module_expsym_cmds
17948
17949# Whether we are building with GNU ld or not.
17950with_gnu_ld=$lt_with_gnu_ld
17951
17952# Flag that allows shared libraries with undefined symbols to be built.
17953allow_undefined_flag=$lt_allow_undefined_flag
17954
17955# Flag that enforces no undefined symbols.
17956no_undefined_flag=$lt_no_undefined_flag
17957
17958# Flag to hardcode \$libdir into a binary during linking.
17959# This must work even if \$libdir does not exist
17960hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17961
17962# If ld is used when linking, flag to hardcode \$libdir into a binary
17963# during linking. This must work even if \$libdir does not exist.
17964hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17965
17966# Whether we need a single "-rpath" flag with a separated argument.
17967hardcode_libdir_separator=$lt_hardcode_libdir_separator
17968
17969# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17970# DIR into the resulting binary.
17971hardcode_direct=$hardcode_direct
17972
17973# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17974# DIR into the resulting binary and the resulting library dependency is
17975# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17976# library is relocated.
17977hardcode_direct_absolute=$hardcode_direct_absolute
17978
17979# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17980# into the resulting binary.
17981hardcode_minus_L=$hardcode_minus_L
17982
17983# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17984# into the resulting binary.
17985hardcode_shlibpath_var=$hardcode_shlibpath_var
17986
17987# Set to "yes" if building a shared library automatically hardcodes DIR
17988# into the library and all subsequent libraries and executables linked
17989# against it.
17990hardcode_automatic=$hardcode_automatic
17991
17992# Set to yes if linker adds runtime paths of dependent libraries
17993# to runtime path list.
17994inherit_rpath=$inherit_rpath
17995
17996# Whether libtool must link a program against all its dependency libraries.
17997link_all_deplibs=$link_all_deplibs
17998
17999# Fix the shell variable \$srcfile for the compiler.
18000fix_srcfile_path=$lt_fix_srcfile_path
18001
18002# Set to "yes" if exported symbols are required.
18003always_export_symbols=$always_export_symbols
18004
18005# The commands to list exported symbols.
18006export_symbols_cmds=$lt_export_symbols_cmds
18007
18008# Symbols that should not be listed in the preloaded symbols.
18009exclude_expsyms=$lt_exclude_expsyms
18010
18011# Symbols that must always be exported.
18012include_expsyms=$lt_include_expsyms
18013
18014# Commands necessary for linking programs (against libraries) with templates.
18015prelink_cmds=$lt_prelink_cmds
18016
18017# Specify filename containing input files.
18018file_list_spec=$lt_file_list_spec
18019
18020# How to hardcode a shared library path into an executable.
18021hardcode_action=$hardcode_action
18022
18023# The directories searched by this compiler when creating a shared library.
18024compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18025
18026# Dependencies to place before and after the objects being linked to
18027# create a shared library.
18028predep_objects=$lt_predep_objects
18029postdep_objects=$lt_postdep_objects
18030predeps=$lt_predeps
18031postdeps=$lt_postdeps
18032
18033# The library search path used internally by the compiler when linking
18034# a shared library.
18035compiler_lib_search_path=$lt_compiler_lib_search_path
18036
18037# ### END LIBTOOL CONFIG
18038
18039_LT_EOF
18040
18041 case $host_os in
18042 aix3*)
18043 cat <<\_LT_EOF >> "$cfgfile"
18044# AIX sometimes has problems with the GCC collect2 program. For some
18045# reason, if we set the COLLECT_NAMES environment variable, the problems
18046# vanish in a puff of smoke.
18047if test "X${COLLECT_NAMES+set}" != Xset; then
18048 COLLECT_NAMES=
18049 export COLLECT_NAMES
18050fi
18051_LT_EOF
18052 ;;
18053 esac
18054
18055
18056ltmain="$ac_aux_dir/ltmain.sh"
18057
18058
18059 # We use sed instead of cat because bash on DJGPP gets confused if
18060 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18061 # text mode, it properly converts lines to CR/LF. This bash problem
18062 # is reportedly fixed, but why not run on old versions too?
18063 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18064 || (rm -f "$cfgfile"; exit 1)
18065
18066 case $xsi_shell in
18067 yes)
18068 cat << \_LT_EOF >> "$cfgfile"
18069
18070# func_dirname file append nondir_replacement
18071# Compute the dirname of FILE. If nonempty, add APPEND to the result,
18072# otherwise set result to NONDIR_REPLACEMENT.
18073func_dirname ()
18074{
18075 case ${1} in
18076 */*) func_dirname_result="${1%/*}${2}" ;;
18077 * ) func_dirname_result="${3}" ;;
18078 esac
18079}
18080
18081# func_basename file
18082func_basename ()
18083{
18084 func_basename_result="${1##*/}"
18085}
18086
18087# func_dirname_and_basename file append nondir_replacement
18088# perform func_basename and func_dirname in a single function
18089# call:
18090# dirname: Compute the dirname of FILE. If nonempty,
18091# add APPEND to the result, otherwise set result
18092# to NONDIR_REPLACEMENT.
18093# value returned in "$func_dirname_result"
18094# basename: Compute filename of FILE.
18095# value retuned in "$func_basename_result"
18096# Implementation must be kept synchronized with func_dirname
18097# and func_basename. For efficiency, we do not delegate to
18098# those functions but instead duplicate the functionality here.
18099func_dirname_and_basename ()
18100{
18101 case ${1} in
18102 */*) func_dirname_result="${1%/*}${2}" ;;
18103 * ) func_dirname_result="${3}" ;;
18104 esac
18105 func_basename_result="${1##*/}"
18106}
18107
18108# func_stripname prefix suffix name
18109# strip PREFIX and SUFFIX off of NAME.
18110# PREFIX and SUFFIX must not contain globbing or regex special
18111# characters, hashes, percent signs, but SUFFIX may contain a leading
18112# dot (in which case that matches only a dot).
18113func_stripname ()
18114{
18115 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18116 # positional parameters, so assign one to ordinary parameter first.
18117 func_stripname_result=${3}
18118 func_stripname_result=${func_stripname_result#"${1}"}
18119 func_stripname_result=${func_stripname_result%"${2}"}
18120}
18121
18122# func_opt_split
18123func_opt_split ()
18124{
18125 func_opt_split_opt=${1%%=*}
18126 func_opt_split_arg=${1#*=}
18127}
18128
18129# func_lo2o object
18130func_lo2o ()
18131{
18132 case ${1} in
18133 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18134 *) func_lo2o_result=${1} ;;
18135 esac
18136}
18137
18138# func_xform libobj-or-source
18139func_xform ()
18140{
18141 func_xform_result=${1%.*}.lo
18142}
18143
18144# func_arith arithmetic-term...
18145func_arith ()
18146{
18147 func_arith_result=$(( $* ))
18148}
18149
18150# func_len string
18151# STRING may not start with a hyphen.
18152func_len ()
18153{
18154 func_len_result=${#1}
18155}
18156
18157_LT_EOF
18158 ;;
18159 *) # Bourne compatible functions.
18160 cat << \_LT_EOF >> "$cfgfile"
18161
18162# func_dirname file append nondir_replacement
18163# Compute the dirname of FILE. If nonempty, add APPEND to the result,
18164# otherwise set result to NONDIR_REPLACEMENT.
18165func_dirname ()
18166{
18167 # Extract subdirectory from the argument.
18168 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
18169 if test "X$func_dirname_result" = "X${1}"; then
18170 func_dirname_result="${3}"
18171 else
18172 func_dirname_result="$func_dirname_result${2}"
18173 fi
18174}
18175
18176# func_basename file
18177func_basename ()
18178{
18179 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
18180}
18181
18182
18183# func_stripname prefix suffix name
18184# strip PREFIX and SUFFIX off of NAME.
18185# PREFIX and SUFFIX must not contain globbing or regex special
18186# characters, hashes, percent signs, but SUFFIX may contain a leading
18187# dot (in which case that matches only a dot).
18188# func_strip_suffix prefix name
18189func_stripname ()
18190{
18191 case ${2} in
18192 .*) func_stripname_result=`$ECHO "X${3}" \
18193 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
18194 *) func_stripname_result=`$ECHO "X${3}" \
18195 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
18196 esac
18197}
18198
18199# sed scripts:
18200my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18201my_sed_long_arg='1s/^-[^=]*=//'
18202
18203# func_opt_split
18204func_opt_split ()
18205{
18206 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
18207 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
18208}
18209
18210# func_lo2o object
18211func_lo2o ()
18212{
18213 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
18214}
18215
18216# func_xform libobj-or-source
18217func_xform ()
18218{
18219 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
18220}
18221
18222# func_arith arithmetic-term...
18223func_arith ()
18224{
18225 func_arith_result=`expr "$@"`
18226}
18227
18228# func_len string
18229# STRING may not start with a hyphen.
18230func_len ()
18231{
18232 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18233}
18234
18235_LT_EOF
18236esac
18237
18238case $lt_shell_append in
18239 yes)
18240 cat << \_LT_EOF >> "$cfgfile"
18241
18242# func_append var value
18243# Append VALUE to the end of shell variable VAR.
18244func_append ()
18245{
18246 eval "$1+=\$2"
18247}
18248_LT_EOF
18249 ;;
18250 *)
18251 cat << \_LT_EOF >> "$cfgfile"
18252
18253# func_append var value
18254# Append VALUE to the end of shell variable VAR.
18255func_append ()
18256{
18257 eval "$1=\$$1\$2"
18258}
18259
18260_LT_EOF
18261 ;;
18262 esac
18263
18264
18265 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18266 || (rm -f "$cfgfile"; exit 1)
18267
18268 mv -f "$cfgfile" "$ofile" ||
18269 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18270 chmod +x "$ofile"
18271
18272
18273 cat <<_LT_EOF >> "$ofile"
18274
18275# ### BEGIN LIBTOOL TAG CONFIG: CXX
18276
18277# The linker used to build libraries.
18278LD=$lt_LD_CXX
18279
18280# Commands used to build an old-style archive.
18281old_archive_cmds=$lt_old_archive_cmds_CXX
18282
18283# A language specific compiler.
18284CC=$lt_compiler_CXX
18285
18286# Is the compiler the GNU compiler?
18287with_gcc=$GCC_CXX
18288
18289# Compiler flag to turn off builtin functions.
18290no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18291
18292# How to pass a linker flag through the compiler.
18293wl=$lt_lt_prog_compiler_wl_CXX
18294
18295# Additional compiler flags for building library objects.
18296pic_flag=$lt_lt_prog_compiler_pic_CXX
18297
18298# Compiler flag to prevent dynamic linking.
18299link_static_flag=$lt_lt_prog_compiler_static_CXX
18300
18301# Does compiler simultaneously support -c and -o options?
18302compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18303
18304# Whether or not to add -lc for building shared libraries.
18305build_libtool_need_lc=$archive_cmds_need_lc_CXX
18306
18307# Whether or not to disallow shared libs when runtime libs are static.
18308allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18309
18310# Compiler flag to allow reflexive dlopens.
18311export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18312
18313# Compiler flag to generate shared objects directly from archives.
18314whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18315
18316# Whether the compiler copes with passing no objects directly.
18317compiler_needs_object=$lt_compiler_needs_object_CXX
18318
18319# Create an old-style archive from a shared archive.
18320old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18321
18322# Create a temporary old-style archive to link instead of a shared archive.
18323old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18324
18325# Commands used to build a shared archive.
18326archive_cmds=$lt_archive_cmds_CXX
18327archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18328
18329# Commands used to build a loadable module if different from building
18330# a shared archive.
18331module_cmds=$lt_module_cmds_CXX
18332module_expsym_cmds=$lt_module_expsym_cmds_CXX
18333
18334# Whether we are building with GNU ld or not.
18335with_gnu_ld=$lt_with_gnu_ld_CXX
18336
18337# Flag that allows shared libraries with undefined symbols to be built.
18338allow_undefined_flag=$lt_allow_undefined_flag_CXX
18339
18340# Flag that enforces no undefined symbols.
18341no_undefined_flag=$lt_no_undefined_flag_CXX
18342
18343# Flag to hardcode \$libdir into a binary during linking.
18344# This must work even if \$libdir does not exist
18345hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18346
18347# If ld is used when linking, flag to hardcode \$libdir into a binary
18348# during linking. This must work even if \$libdir does not exist.
18349hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18350
18351# Whether we need a single "-rpath" flag with a separated argument.
18352hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18353
18354# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18355# DIR into the resulting binary.
18356hardcode_direct=$hardcode_direct_CXX
18357
18358# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18359# DIR into the resulting binary and the resulting library dependency is
18360# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18361# library is relocated.
18362hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18363
18364# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18365# into the resulting binary.
18366hardcode_minus_L=$hardcode_minus_L_CXX
18367
18368# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18369# into the resulting binary.
18370hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18371
18372# Set to "yes" if building a shared library automatically hardcodes DIR
18373# into the library and all subsequent libraries and executables linked
18374# against it.
18375hardcode_automatic=$hardcode_automatic_CXX
18376
18377# Set to yes if linker adds runtime paths of dependent libraries
18378# to runtime path list.
18379inherit_rpath=$inherit_rpath_CXX
18380
18381# Whether libtool must link a program against all its dependency libraries.
18382link_all_deplibs=$link_all_deplibs_CXX
18383
18384# Fix the shell variable \$srcfile for the compiler.
18385fix_srcfile_path=$lt_fix_srcfile_path_CXX
18386
18387# Set to "yes" if exported symbols are required.
18388always_export_symbols=$always_export_symbols_CXX
18389
18390# The commands to list exported symbols.
18391export_symbols_cmds=$lt_export_symbols_cmds_CXX
18392
18393# Symbols that should not be listed in the preloaded symbols.
18394exclude_expsyms=$lt_exclude_expsyms_CXX
18395
18396# Symbols that must always be exported.
18397include_expsyms=$lt_include_expsyms_CXX
18398
18399# Commands necessary for linking programs (against libraries) with templates.
18400prelink_cmds=$lt_prelink_cmds_CXX
18401
18402# Specify filename containing input files.
18403file_list_spec=$lt_file_list_spec_CXX
18404
18405# How to hardcode a shared library path into an executable.
18406hardcode_action=$hardcode_action_CXX
18407
18408# The directories searched by this compiler when creating a shared library.
18409compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18410
18411# Dependencies to place before and after the objects being linked to
18412# create a shared library.
18413predep_objects=$lt_predep_objects_CXX
18414postdep_objects=$lt_postdep_objects_CXX
18415predeps=$lt_predeps_CXX
18416postdeps=$lt_postdeps_CXX
18417
18418# The library search path used internally by the compiler when linking
18419# a shared library.
18420compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18421
18422# ### END LIBTOOL TAG CONFIG: CXX
18423_LT_EOF
18424
18425 ;;
18426
18427 esac
18428done # for ac_tag
18429
18430
18431{ (exit 0); exit 0; }
18432_ACEOF
18433chmod +x $CONFIG_STATUS
18434ac_clean_files=$ac_clean_files_save
18435
18436test $ac_write_fail = 0 ||
18437 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
18438$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
18439 { (exit 1); exit 1; }; }
18440
18441
18442# configure is writing to config.log, and then calls config.status.
18443# config.status does its own redirection, appending to config.log.
18444# Unfortunately, on DOS this fails, as config.log is still kept open
18445# by configure, so config.status won't be able to write to it; its
18446# output is simply discarded. So we exec the FD to /dev/null,
18447# effectively closing config.log, so it can be properly (re)opened and
18448# appended to by config.status. When coming back to configure, we
18449# need to make the FD available again.
18450if test "$no_create" != yes; then
18451 ac_cs_success=:
18452 ac_config_status_args=
18453 test "$silent" = yes &&
18454 ac_config_status_args="$ac_config_status_args --quiet"
18455 exec 5>/dev/null
18456 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18457 exec 5>>config.log
18458 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18459 # would make configure fail if this is the last instruction.
18460 $ac_cs_success || { (exit 1); exit 1; }
18461fi
18462
18463#
18464# CONFIG_SUBDIRS section.
18465#
18466if test "$no_recursion" != yes; then
18467
18468 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
18469 # so they do not pile up.
18470 ac_sub_configure_args=
18471 ac_prev=
18472 eval "set x $ac_configure_args"
18473 shift
18474 for ac_arg
18475 do
18476 if test -n "$ac_prev"; then
18477 ac_prev=
18478 continue
18479 fi
18480 case $ac_arg in
18481 -cache-file | --cache-file | --cache-fil | --cache-fi \
18482 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18483 ac_prev=cache_file ;;
18484 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18485 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
18486 | --c=*)
18487 ;;
18488 --config-cache | -C)
18489 ;;
18490 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18491 ac_prev=srcdir ;;
18492 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18493 ;;
18494 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
18495 ac_prev=prefix ;;
18496 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
18497 ;;
18498 --disable-option-checking)
18499 ;;
18500 *)
18501 case $ac_arg in
18502 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18503 esac
18504 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
18505 esac
18506 done
18507
18508 # Always prepend --prefix to ensure using the same prefix
18509 # in subdir configurations.
18510 ac_arg="--prefix=$prefix"
18511 case $ac_arg in
18512 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18513 esac
18514 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
18515
18516 # Pass --silent
18517 if test "$silent" = yes; then
18518 ac_sub_configure_args="--silent $ac_sub_configure_args"
18519 fi
18520
18521 # Always prepend --disable-option-checking to silence warnings, since
18522 # different subdirs can have different --enable and --with options.
18523 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
18524
18525 ac_popdir=`pwd`
18526 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
18527
18528 # Do not complain, so a configure script can configure whichever
18529 # parts of a large source tree are present.
18530 test -d "$srcdir/$ac_dir" || continue
18531
18532 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
18533 $as_echo "$as_me:$LINENO: $ac_msg" >&5
18534 $as_echo "$ac_msg" >&6
18535 { as_dir="$ac_dir"
18536 case $as_dir in #(
18537 -*) as_dir=./$as_dir;;
18538 esac
18539 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
18540 as_dirs=
18541 while :; do
18542 case $as_dir in #(
18543 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18544 *) as_qdir=$as_dir;;
18545 esac
18546 as_dirs="'$as_qdir' $as_dirs"
18547 as_dir=`$as_dirname -- "$as_dir" ||
18548$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18549 X"$as_dir" : 'X\(//\)[^/]' \| \
18550 X"$as_dir" : 'X\(//\)$' \| \
18551 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18552$as_echo X"$as_dir" |
18553 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18554 s//\1/
18555 q
18556 }
18557 /^X\(\/\/\)[^/].*/{
18558 s//\1/
18559 q
18560 }
18561 /^X\(\/\/\)$/{
18562 s//\1/
18563 q
18564 }
18565 /^X\(\/\).*/{
18566 s//\1/
18567 q
18568 }
18569 s/.*/./; q'`
18570 test -d "$as_dir" && break
18571 done
18572 test -z "$as_dirs" || eval "mkdir $as_dirs"
18573 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
18574$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
18575 { (exit 1); exit 1; }; }; }
18576 ac_builddir=.
18577
18578case "$ac_dir" in
18579.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18580*)
18581 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18582 # A ".." for each directory in $ac_dir_suffix.
18583 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18584 case $ac_top_builddir_sub in
18585 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18586 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18587 esac ;;
18588esac
18589ac_abs_top_builddir=$ac_pwd
18590ac_abs_builddir=$ac_pwd$ac_dir_suffix
18591# for backward compatibility:
18592ac_top_builddir=$ac_top_build_prefix
18593
18594case $srcdir in
18595 .) # We are building in place.
18596 ac_srcdir=.
18597 ac_top_srcdir=$ac_top_builddir_sub
18598 ac_abs_top_srcdir=$ac_pwd ;;
18599 [\\/]* | ?:[\\/]* ) # Absolute name.
18600 ac_srcdir=$srcdir$ac_dir_suffix;
18601 ac_top_srcdir=$srcdir
18602 ac_abs_top_srcdir=$srcdir ;;
18603 *) # Relative name.
18604 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18605 ac_top_srcdir=$ac_top_build_prefix$srcdir
18606 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18607esac
18608ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18609
18610
18611 cd "$ac_dir"
18612
18613 # Check for guested configure; otherwise get Cygnus style configure.
18614 if test -f "$ac_srcdir/configure.gnu"; then
18615 ac_sub_configure=$ac_srcdir/configure.gnu
18616 elif test -f "$ac_srcdir/configure"; then
18617 ac_sub_configure=$ac_srcdir/configure
18618 elif test -f "$ac_srcdir/configure.in"; then
18619 # This should be Cygnus configure.
18620 ac_sub_configure=$ac_aux_dir/configure
18621 else
18622 { $as_echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
18623$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
18624 ac_sub_configure=
18625 fi
18626
18627 # The recursion is here.
18628 if test -n "$ac_sub_configure"; then
18629 # Make the cache file name correct relative to the subdirectory.
18630 case $cache_file in
18631 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
18632 *) # Relative name.
18633 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
18634 esac
18635
18636 { $as_echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
18637$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
18638 # The eval makes quoting arguments work.
18639 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
18640 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
18641 { { $as_echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
18642$as_echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
18643 { (exit 1); exit 1; }; }
18644 fi
18645
18646 cd "$ac_popdir"
18647 done
18648fi
18649if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18650 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18651$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18652fi
18653