blob: 3a2a1d3cb4f3dc82b8d8ee58c92f8eb5ab5a99d3 [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 tigervnc 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='tigervnc'
747PACKAGE_TARNAME='tigervnc'
748PACKAGE_VERSION='0.0.90'
749PACKAGE_STRING='tigervnc 0.0.90'
750PACKAGE_BUGREPORT='http://www.tigervnc.org'
751
752enable_option_checking=no
753# Factoring default headers for most tests.
754ac_includes_default="\
755#include <stdio.h>
756#ifdef HAVE_SYS_TYPES_H
757# include <sys/types.h>
758#endif
759#ifdef HAVE_SYS_STAT_H
760# include <sys/stat.h>
761#endif
762#ifdef STDC_HEADERS
763# include <stdlib.h>
764# include <stddef.h>
765#else
766# ifdef HAVE_STDLIB_H
767# include <stdlib.h>
768# endif
769#endif
770#ifdef HAVE_STRING_H
771# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
772# include <memory.h>
773# endif
774# include <string.h>
775#endif
776#ifdef HAVE_STRINGS_H
777# include <strings.h>
778#endif
779#ifdef HAVE_INTTYPES_H
780# include <inttypes.h>
781#endif
782#ifdef HAVE_STDINT_H
783# include <stdint.h>
784#endif
785#ifdef HAVE_UNISTD_H
786# include <unistd.h>
787#endif"
788
789ac_subst_vars='LTLIBOBJS
790LIBOBJS
791INET_LIB
792READDISPLAY_DEFINE
793XTEST_LIB
794XTEST_DEFINE
795VNCCONFIG_DIR
796X_EXTRA_LIBS
797X_LIBS
798X_PRE_LIBS
799X_CFLAGS
800XMKMF
801MITSHM_DEFINE
802POSUB
803LTLIBINTL
804LIBINTL
805INTLLIBS
806LTLIBICONV
807LIBICONV
808INTL_MACOSX_LIBS
809MSGMERGE
810XGETTEXT
811GMSGFMT
812MSGFMT
813USE_NLS
814MKINSTALLDIRS
815CXXCPP
816CPP
817OTOOL64
818OTOOL
819LIPO
820NMEDIT
821DSYMUTIL
822lt_ECHO
823RANLIB
824AR
825OBJDUMP
826LN_S
827NM
828ac_ct_DUMPBIN
829DUMPBIN
830LD
831FGREP
832EGREP
833GREP
834SED
835host_os
836host_vendor
837host_cpu
838host
839build_os
840build_vendor
841build_cpu
842build
843LIBTOOL
844am__fastdepCXX_FALSE
845am__fastdepCXX_TRUE
846CXXDEPMODE
847ac_ct_CXX
848CXXFLAGS
849CXX
850am__fastdepCC_FALSE
851am__fastdepCC_TRUE
852CCDEPMODE
853AMDEPBACKSLASH
854AMDEP_FALSE
855AMDEP_TRUE
856am__quote
857am__include
858DEPDIR
859OBJEXT
860EXEEXT
861ac_ct_CC
862CPPFLAGS
863LDFLAGS
864CFLAGS
865CC
866subdirs
867COMMON_DIR
868am__untar
869am__tar
870AMTAR
871am__leading_dot
872SET_MAKE
873AWK
874mkdir_p
875MKDIR_P
876INSTALL_STRIP_PROGRAM
877STRIP
878install_sh
879MAKEINFO
880AUTOHEADER
881AUTOMAKE
882AUTOCONF
883ACLOCAL
884VERSION
885PACKAGE
886CYGPATH_W
887am__isrc
888INSTALL_DATA
889INSTALL_SCRIPT
890INSTALL_PROGRAM
891target_alias
892host_alias
893build_alias
894LIBS
895ECHO_T
896ECHO_N
897ECHO_C
898DEFS
899mandir
900localedir
901libdir
902psdir
903pdfdir
904dvidir
905htmldir
906infodir
907docdir
908oldincludedir
909includedir
910localstatedir
911sharedstatedir
912sysconfdir
913datadir
914datarootdir
915libexecdir
916sbindir
917bindir
918program_transform_name
919prefix
920exec_prefix
921PACKAGE_BUGREPORT
922PACKAGE_STRING
923PACKAGE_VERSION
924PACKAGE_TARNAME
925PACKAGE_NAME
926PATH_SEPARATOR
927SHELL'
928ac_subst_files=''
929ac_user_opts='
930enable_option_checking
931enable_dependency_tracking
932enable_shared
933enable_static
934with_pic
935enable_fast_install
936with_gnu_ld
937enable_libtool_lock
938enable_nls
939enable_rpath
940with_libiconv_prefix
941with_libintl_prefix
942with_x
943enable_vncconfig
944'
945 ac_precious_vars='build_alias
946host_alias
947target_alias
948CC
949CFLAGS
950LDFLAGS
951LIBS
952CPPFLAGS
953CXX
954CXXFLAGS
955CCC
956CPP
957CXXCPP
958XMKMF'
959ac_subdirs_all='../common'
960
961# Initialize some variables set by options.
962ac_init_help=
963ac_init_version=false
964ac_unrecognized_opts=
965ac_unrecognized_sep=
966# The variables have the same names as the options, with
967# dashes changed to underlines.
968cache_file=/dev/null
969exec_prefix=NONE
970no_create=
971no_recursion=
972prefix=NONE
973program_prefix=NONE
974program_suffix=NONE
975program_transform_name=s,x,x,
976silent=
977site=
978srcdir=
979verbose=
980x_includes=NONE
981x_libraries=NONE
982
983# Installation directory options.
984# These are left unexpanded so users can "make install exec_prefix=/foo"
985# and all the variables that are supposed to be based on exec_prefix
986# by default will actually change.
987# Use braces instead of parens because sh, perl, etc. also accept them.
988# (The list follows the same order as the GNU Coding Standards.)
989bindir='${exec_prefix}/bin'
990sbindir='${exec_prefix}/sbin'
991libexecdir='${exec_prefix}/libexec'
992datarootdir='${prefix}/share'
993datadir='${datarootdir}'
994sysconfdir='${prefix}/etc'
995sharedstatedir='${prefix}/com'
996localstatedir='${prefix}/var'
997includedir='${prefix}/include'
998oldincludedir='/usr/include'
999docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1000infodir='${datarootdir}/info'
1001htmldir='${docdir}'
1002dvidir='${docdir}'
1003pdfdir='${docdir}'
1004psdir='${docdir}'
1005libdir='${exec_prefix}/lib'
1006localedir='${datarootdir}/locale'
1007mandir='${datarootdir}/man'
1008
1009ac_prev=
1010ac_dashdash=
1011for ac_option
1012do
1013 # If the previous option needs an argument, assign it.
1014 if test -n "$ac_prev"; then
1015 eval $ac_prev=\$ac_option
1016 ac_prev=
1017 continue
1018 fi
1019
1020 case $ac_option in
1021 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1022 *) ac_optarg=yes ;;
1023 esac
1024
1025 # Accept the important Cygnus configure options, so we can diagnose typos.
1026
1027 case $ac_dashdash$ac_option in
1028 --)
1029 ac_dashdash=yes ;;
1030
1031 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1032 ac_prev=bindir ;;
1033 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1034 bindir=$ac_optarg ;;
1035
1036 -build | --build | --buil | --bui | --bu)
1037 ac_prev=build_alias ;;
1038 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1039 build_alias=$ac_optarg ;;
1040
1041 -cache-file | --cache-file | --cache-fil | --cache-fi \
1042 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1043 ac_prev=cache_file ;;
1044 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1045 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1046 cache_file=$ac_optarg ;;
1047
1048 --config-cache | -C)
1049 cache_file=config.cache ;;
1050
1051 -datadir | --datadir | --datadi | --datad)
1052 ac_prev=datadir ;;
1053 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1054 datadir=$ac_optarg ;;
1055
1056 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1057 | --dataroo | --dataro | --datar)
1058 ac_prev=datarootdir ;;
1059 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1060 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1061 datarootdir=$ac_optarg ;;
1062
1063 -disable-* | --disable-*)
1064 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1065 # Reject names that are not valid shell variable names.
1066 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1067 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1068 { (exit 1); exit 1; }; }
1069 ac_useropt_orig=$ac_useropt
1070 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1071 case $ac_user_opts in
1072 *"
1073"enable_$ac_useropt"
1074"*) ;;
1075 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1076 ac_unrecognized_sep=', ';;
1077 esac
1078 eval enable_$ac_useropt=no ;;
1079
1080 -docdir | --docdir | --docdi | --doc | --do)
1081 ac_prev=docdir ;;
1082 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1083 docdir=$ac_optarg ;;
1084
1085 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1086 ac_prev=dvidir ;;
1087 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1088 dvidir=$ac_optarg ;;
1089
1090 -enable-* | --enable-*)
1091 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1092 # Reject names that are not valid shell variable names.
1093 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1094 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1095 { (exit 1); exit 1; }; }
1096 ac_useropt_orig=$ac_useropt
1097 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1098 case $ac_user_opts in
1099 *"
1100"enable_$ac_useropt"
1101"*) ;;
1102 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1103 ac_unrecognized_sep=', ';;
1104 esac
1105 eval enable_$ac_useropt=\$ac_optarg ;;
1106
1107 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1108 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1109 | --exec | --exe | --ex)
1110 ac_prev=exec_prefix ;;
1111 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1112 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1113 | --exec=* | --exe=* | --ex=*)
1114 exec_prefix=$ac_optarg ;;
1115
1116 -gas | --gas | --ga | --g)
1117 # Obsolete; use --with-gas.
1118 with_gas=yes ;;
1119
1120 -help | --help | --hel | --he | -h)
1121 ac_init_help=long ;;
1122 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1123 ac_init_help=recursive ;;
1124 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1125 ac_init_help=short ;;
1126
1127 -host | --host | --hos | --ho)
1128 ac_prev=host_alias ;;
1129 -host=* | --host=* | --hos=* | --ho=*)
1130 host_alias=$ac_optarg ;;
1131
1132 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1133 ac_prev=htmldir ;;
1134 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1135 | --ht=*)
1136 htmldir=$ac_optarg ;;
1137
1138 -includedir | --includedir | --includedi | --included | --include \
1139 | --includ | --inclu | --incl | --inc)
1140 ac_prev=includedir ;;
1141 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1142 | --includ=* | --inclu=* | --incl=* | --inc=*)
1143 includedir=$ac_optarg ;;
1144
1145 -infodir | --infodir | --infodi | --infod | --info | --inf)
1146 ac_prev=infodir ;;
1147 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1148 infodir=$ac_optarg ;;
1149
1150 -libdir | --libdir | --libdi | --libd)
1151 ac_prev=libdir ;;
1152 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1153 libdir=$ac_optarg ;;
1154
1155 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1156 | --libexe | --libex | --libe)
1157 ac_prev=libexecdir ;;
1158 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1159 | --libexe=* | --libex=* | --libe=*)
1160 libexecdir=$ac_optarg ;;
1161
1162 -localedir | --localedir | --localedi | --localed | --locale)
1163 ac_prev=localedir ;;
1164 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1165 localedir=$ac_optarg ;;
1166
1167 -localstatedir | --localstatedir | --localstatedi | --localstated \
1168 | --localstate | --localstat | --localsta | --localst | --locals)
1169 ac_prev=localstatedir ;;
1170 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1171 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1172 localstatedir=$ac_optarg ;;
1173
1174 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1175 ac_prev=mandir ;;
1176 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1177 mandir=$ac_optarg ;;
1178
1179 -nfp | --nfp | --nf)
1180 # Obsolete; use --without-fp.
1181 with_fp=no ;;
1182
1183 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1184 | --no-cr | --no-c | -n)
1185 no_create=yes ;;
1186
1187 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1188 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1189 no_recursion=yes ;;
1190
1191 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1192 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1193 | --oldin | --oldi | --old | --ol | --o)
1194 ac_prev=oldincludedir ;;
1195 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1196 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1197 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1198 oldincludedir=$ac_optarg ;;
1199
1200 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1201 ac_prev=prefix ;;
1202 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1203 prefix=$ac_optarg ;;
1204
1205 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1206 | --program-pre | --program-pr | --program-p)
1207 ac_prev=program_prefix ;;
1208 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1209 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1210 program_prefix=$ac_optarg ;;
1211
1212 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1213 | --program-suf | --program-su | --program-s)
1214 ac_prev=program_suffix ;;
1215 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1216 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1217 program_suffix=$ac_optarg ;;
1218
1219 -program-transform-name | --program-transform-name \
1220 | --program-transform-nam | --program-transform-na \
1221 | --program-transform-n | --program-transform- \
1222 | --program-transform | --program-transfor \
1223 | --program-transfo | --program-transf \
1224 | --program-trans | --program-tran \
1225 | --progr-tra | --program-tr | --program-t)
1226 ac_prev=program_transform_name ;;
1227 -program-transform-name=* | --program-transform-name=* \
1228 | --program-transform-nam=* | --program-transform-na=* \
1229 | --program-transform-n=* | --program-transform-=* \
1230 | --program-transform=* | --program-transfor=* \
1231 | --program-transfo=* | --program-transf=* \
1232 | --program-trans=* | --program-tran=* \
1233 | --progr-tra=* | --program-tr=* | --program-t=*)
1234 program_transform_name=$ac_optarg ;;
1235
1236 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1237 ac_prev=pdfdir ;;
1238 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1239 pdfdir=$ac_optarg ;;
1240
1241 -psdir | --psdir | --psdi | --psd | --ps)
1242 ac_prev=psdir ;;
1243 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1244 psdir=$ac_optarg ;;
1245
1246 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1247 | -silent | --silent | --silen | --sile | --sil)
1248 silent=yes ;;
1249
1250 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1251 ac_prev=sbindir ;;
1252 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1253 | --sbi=* | --sb=*)
1254 sbindir=$ac_optarg ;;
1255
1256 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1257 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1258 | --sharedst | --shareds | --shared | --share | --shar \
1259 | --sha | --sh)
1260 ac_prev=sharedstatedir ;;
1261 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1262 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1263 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1264 | --sha=* | --sh=*)
1265 sharedstatedir=$ac_optarg ;;
1266
1267 -site | --site | --sit)
1268 ac_prev=site ;;
1269 -site=* | --site=* | --sit=*)
1270 site=$ac_optarg ;;
1271
1272 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1273 ac_prev=srcdir ;;
1274 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1275 srcdir=$ac_optarg ;;
1276
1277 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1278 | --syscon | --sysco | --sysc | --sys | --sy)
1279 ac_prev=sysconfdir ;;
1280 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1281 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1282 sysconfdir=$ac_optarg ;;
1283
1284 -target | --target | --targe | --targ | --tar | --ta | --t)
1285 ac_prev=target_alias ;;
1286 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1287 target_alias=$ac_optarg ;;
1288
1289 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1290 verbose=yes ;;
1291
1292 -version | --version | --versio | --versi | --vers | -V)
1293 ac_init_version=: ;;
1294
1295 -with-* | --with-*)
1296 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1297 # Reject names that are not valid shell variable names.
1298 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1299 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1300 { (exit 1); exit 1; }; }
1301 ac_useropt_orig=$ac_useropt
1302 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1303 case $ac_user_opts in
1304 *"
1305"with_$ac_useropt"
1306"*) ;;
1307 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1308 ac_unrecognized_sep=', ';;
1309 esac
1310 eval with_$ac_useropt=\$ac_optarg ;;
1311
1312 -without-* | --without-*)
1313 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1314 # Reject names that are not valid shell variable names.
1315 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1316 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1317 { (exit 1); exit 1; }; }
1318 ac_useropt_orig=$ac_useropt
1319 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1320 case $ac_user_opts in
1321 *"
1322"with_$ac_useropt"
1323"*) ;;
1324 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1325 ac_unrecognized_sep=', ';;
1326 esac
1327 eval with_$ac_useropt=no ;;
1328
1329 --x)
1330 # Obsolete; use --with-x.
1331 with_x=yes ;;
1332
1333 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1334 | --x-incl | --x-inc | --x-in | --x-i)
1335 ac_prev=x_includes ;;
1336 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1337 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1338 x_includes=$ac_optarg ;;
1339
1340 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1341 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1342 ac_prev=x_libraries ;;
1343 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1344 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1345 x_libraries=$ac_optarg ;;
1346
1347 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1348Try \`$0 --help' for more information." >&2
1349 { (exit 1); exit 1; }; }
1350 ;;
1351
1352 *=*)
1353 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1354 # Reject names that are not valid shell variable names.
1355 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1356 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1357 { (exit 1); exit 1; }; }
1358 eval $ac_envvar=\$ac_optarg
1359 export $ac_envvar ;;
1360
1361 *)
1362 # FIXME: should be removed in autoconf 3.0.
1363 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1364 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1365 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1366 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1367 ;;
1368
1369 esac
1370done
1371
1372if test -n "$ac_prev"; then
1373 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1374 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1375 { (exit 1); exit 1; }; }
1376fi
1377
1378if test -n "$ac_unrecognized_opts"; then
1379 case $enable_option_checking in
1380 no) ;;
1381 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1382 { (exit 1); exit 1; }; } ;;
1383 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1384 esac
1385fi
1386
1387# Check all directory arguments for consistency.
1388for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1389 datadir sysconfdir sharedstatedir localstatedir includedir \
1390 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1391 libdir localedir mandir
1392do
1393 eval ac_val=\$$ac_var
1394 # Remove trailing slashes.
1395 case $ac_val in
1396 */ )
1397 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1398 eval $ac_var=\$ac_val;;
1399 esac
1400 # Be sure to have absolute directory names.
1401 case $ac_val in
1402 [\\/$]* | ?:[\\/]* ) continue;;
1403 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1404 esac
1405 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1406 { (exit 1); exit 1; }; }
1407done
1408
1409# There might be people who depend on the old broken behavior: `$host'
1410# used to hold the argument of --host etc.
1411# FIXME: To remove some day.
1412build=$build_alias
1413host=$host_alias
1414target=$target_alias
1415
1416# FIXME: To remove some day.
1417if test "x$host_alias" != x; then
1418 if test "x$build_alias" = x; then
1419 cross_compiling=maybe
1420 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1421 If a cross compiler is detected then cross compile mode will be used." >&2
1422 elif test "x$build_alias" != "x$host_alias"; then
1423 cross_compiling=yes
1424 fi
1425fi
1426
1427ac_tool_prefix=
1428test -n "$host_alias" && ac_tool_prefix=$host_alias-
1429
1430test "$silent" = yes && exec 6>/dev/null
1431
1432
1433ac_pwd=`pwd` && test -n "$ac_pwd" &&
1434ac_ls_di=`ls -di .` &&
1435ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1436 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1437 { (exit 1); exit 1; }; }
1438test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1439 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1440 { (exit 1); exit 1; }; }
1441
1442
1443# Find the source files, if location was not specified.
1444if test -z "$srcdir"; then
1445 ac_srcdir_defaulted=yes
1446 # Try the directory containing this script, then the parent directory.
1447 ac_confdir=`$as_dirname -- "$as_myself" ||
1448$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1449 X"$as_myself" : 'X\(//\)[^/]' \| \
1450 X"$as_myself" : 'X\(//\)$' \| \
1451 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1452$as_echo X"$as_myself" |
1453 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1454 s//\1/
1455 q
1456 }
1457 /^X\(\/\/\)[^/].*/{
1458 s//\1/
1459 q
1460 }
1461 /^X\(\/\/\)$/{
1462 s//\1/
1463 q
1464 }
1465 /^X\(\/\).*/{
1466 s//\1/
1467 q
1468 }
1469 s/.*/./; q'`
1470 srcdir=$ac_confdir
1471 if test ! -r "$srcdir/$ac_unique_file"; then
1472 srcdir=..
1473 fi
1474else
1475 ac_srcdir_defaulted=no
1476fi
1477if test ! -r "$srcdir/$ac_unique_file"; then
1478 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1479 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1480 { (exit 1); exit 1; }; }
1481fi
1482ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1483ac_abs_confdir=`(
1484 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1485 { (exit 1); exit 1; }; }
1486 pwd)`
1487# When building in place, set srcdir=.
1488if test "$ac_abs_confdir" = "$ac_pwd"; then
1489 srcdir=.
1490fi
1491# Remove unnecessary trailing slashes from srcdir.
1492# Double slashes in file names in object file debugging info
1493# mess up M-x gdb in Emacs.
1494case $srcdir in
1495*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1496esac
1497for ac_var in $ac_precious_vars; do
1498 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1499 eval ac_env_${ac_var}_value=\$${ac_var}
1500 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1501 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1502done
1503
1504#
1505# Report the --help message.
1506#
1507if test "$ac_init_help" = "long"; then
1508 # Omit some internal or obsolete options to make the list less imposing.
1509 # This message is too long to be a string in the A/UX 3.1 sh.
1510 cat <<_ACEOF
1511\`configure' configures tigervnc 0.0.90 to adapt to many kinds of systems.
1512
1513Usage: $0 [OPTION]... [VAR=VALUE]...
1514
1515To assign environment variables (e.g., CC, CFLAGS...), specify them as
1516VAR=VALUE. See below for descriptions of some of the useful variables.
1517
1518Defaults for the options are specified in brackets.
1519
1520Configuration:
1521 -h, --help display this help and exit
1522 --help=short display options specific to this package
1523 --help=recursive display the short help of all the included packages
1524 -V, --version display version information and exit
1525 -q, --quiet, --silent do not print \`checking...' messages
1526 --cache-file=FILE cache test results in FILE [disabled]
1527 -C, --config-cache alias for \`--cache-file=config.cache'
1528 -n, --no-create do not create output files
1529 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1530
1531Installation directories:
1532 --prefix=PREFIX install architecture-independent files in PREFIX
1533 [$ac_default_prefix]
1534 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1535 [PREFIX]
1536
1537By default, \`make install' will install all the files in
1538\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1539an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1540for instance \`--prefix=\$HOME'.
1541
1542For better control, use the options below.
1543
1544Fine tuning of the installation directories:
1545 --bindir=DIR user executables [EPREFIX/bin]
1546 --sbindir=DIR system admin executables [EPREFIX/sbin]
1547 --libexecdir=DIR program executables [EPREFIX/libexec]
1548 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1549 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1550 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1551 --libdir=DIR object code libraries [EPREFIX/lib]
1552 --includedir=DIR C header files [PREFIX/include]
1553 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1554 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1555 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1556 --infodir=DIR info documentation [DATAROOTDIR/info]
1557 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1558 --mandir=DIR man documentation [DATAROOTDIR/man]
1559 --docdir=DIR documentation root [DATAROOTDIR/doc/tigervnc]
1560 --htmldir=DIR html documentation [DOCDIR]
1561 --dvidir=DIR dvi documentation [DOCDIR]
1562 --pdfdir=DIR pdf documentation [DOCDIR]
1563 --psdir=DIR ps documentation [DOCDIR]
1564_ACEOF
1565
1566 cat <<\_ACEOF
1567
1568Program names:
1569 --program-prefix=PREFIX prepend PREFIX to installed program names
1570 --program-suffix=SUFFIX append SUFFIX to installed program names
1571 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1572
1573X features:
1574 --x-includes=DIR X include files are in DIR
1575 --x-libraries=DIR X library files are in DIR
1576
1577System types:
1578 --build=BUILD configure for building on BUILD [guessed]
1579 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1580_ACEOF
1581fi
1582
1583if test -n "$ac_init_help"; then
1584 case $ac_init_help in
1585 short | recursive ) echo "Configuration of tigervnc 0.0.90:";;
1586 esac
1587 cat <<\_ACEOF
1588
1589Optional Features:
1590 --disable-option-checking ignore unrecognized --enable/--with options
1591 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1592 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1593 --disable-dependency-tracking speeds up one-time build
1594 --enable-dependency-tracking do not reject slow dependency extractors
1595 --enable-shared[=PKGS] build shared libraries [default=yes]
1596 --enable-static[=PKGS] build static libraries [default=yes]
1597 --enable-fast-install[=PKGS]
1598 optimize for fast installation [default=yes]
1599 --disable-libtool-lock avoid locking (might break parallel builds)
1600 --disable-nls do not use Native Language Support
1601 --disable-rpath do not hardcode runtime library paths
1602 --enable-vncconfig build the vncconfig utility (assumed by default),
1603 use --disable-vncconfig to skip building vncconfig
1604
1605Optional Packages:
1606 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1607 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1608 --with-pic try to use only PIC/non-PIC objects [default=use
1609 both]
1610 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1611 --with-gnu-ld assume the C compiler uses GNU ld default=no
1612 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1613 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1614 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1615 --without-libintl-prefix don't search for libintl in includedir and libdir
1616 --with-x use the X Window System
1617
1618Some influential environment variables:
1619 CC C compiler command
1620 CFLAGS C compiler flags
1621 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1622 nonstandard directory <lib dir>
1623 LIBS libraries to pass to the linker, e.g. -l<library>
1624 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1625 you have headers in a nonstandard directory <include dir>
1626 CXX C++ compiler command
1627 CXXFLAGS C++ compiler flags
1628 CPP C preprocessor
1629 CXXCPP C++ preprocessor
1630 XMKMF Path to xmkmf, Makefile generator for X Window System
1631
1632Use these variables to override the choices made by `configure' or to help
1633it to find libraries and programs with nonstandard names/locations.
1634
1635Report bugs to <http://www.tigervnc.org>.
1636_ACEOF
1637ac_status=$?
1638fi
1639
1640if test "$ac_init_help" = "recursive"; then
1641 # If there are subdirs, report their specific --help.
1642 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1643 test -d "$ac_dir" ||
1644 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1645 continue
1646 ac_builddir=.
1647
1648case "$ac_dir" in
1649.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1650*)
1651 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1652 # A ".." for each directory in $ac_dir_suffix.
1653 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1654 case $ac_top_builddir_sub in
1655 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1656 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1657 esac ;;
1658esac
1659ac_abs_top_builddir=$ac_pwd
1660ac_abs_builddir=$ac_pwd$ac_dir_suffix
1661# for backward compatibility:
1662ac_top_builddir=$ac_top_build_prefix
1663
1664case $srcdir in
1665 .) # We are building in place.
1666 ac_srcdir=.
1667 ac_top_srcdir=$ac_top_builddir_sub
1668 ac_abs_top_srcdir=$ac_pwd ;;
1669 [\\/]* | ?:[\\/]* ) # Absolute name.
1670 ac_srcdir=$srcdir$ac_dir_suffix;
1671 ac_top_srcdir=$srcdir
1672 ac_abs_top_srcdir=$srcdir ;;
1673 *) # Relative name.
1674 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1675 ac_top_srcdir=$ac_top_build_prefix$srcdir
1676 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1677esac
1678ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1679
1680 cd "$ac_dir" || { ac_status=$?; continue; }
1681 # Check for guested configure.
1682 if test -f "$ac_srcdir/configure.gnu"; then
1683 echo &&
1684 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1685 elif test -f "$ac_srcdir/configure"; then
1686 echo &&
1687 $SHELL "$ac_srcdir/configure" --help=recursive
1688 else
1689 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1690 fi || ac_status=$?
1691 cd "$ac_pwd" || { ac_status=$?; break; }
1692 done
1693fi
1694
1695test -n "$ac_init_help" && exit $ac_status
1696if $ac_init_version; then
1697 cat <<\_ACEOF
1698tigervnc configure 0.0.90
1699generated by GNU Autoconf 2.63
1700
1701Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
17022002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1703This configure script is free software; the Free Software Foundation
1704gives unlimited permission to copy, distribute and modify it.
1705_ACEOF
1706 exit
1707fi
1708cat >config.log <<_ACEOF
1709This file contains any messages produced by compilers while
1710running configure, to aid debugging if configure makes a mistake.
1711
1712It was created by tigervnc $as_me 0.0.90, which was
1713generated by GNU Autoconf 2.63. Invocation command line was
1714
1715 $ $0 $@
1716
1717_ACEOF
1718exec 5>>config.log
1719{
1720cat <<_ASUNAME
1721## --------- ##
1722## Platform. ##
1723## --------- ##
1724
1725hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1726uname -m = `(uname -m) 2>/dev/null || echo unknown`
1727uname -r = `(uname -r) 2>/dev/null || echo unknown`
1728uname -s = `(uname -s) 2>/dev/null || echo unknown`
1729uname -v = `(uname -v) 2>/dev/null || echo unknown`
1730
1731/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1732/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1733
1734/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1735/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1736/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1737/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1738/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1739/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1740/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1741
1742_ASUNAME
1743
1744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1745for as_dir in $PATH
1746do
1747 IFS=$as_save_IFS
1748 test -z "$as_dir" && as_dir=.
1749 $as_echo "PATH: $as_dir"
1750done
1751IFS=$as_save_IFS
1752
1753} >&5
1754
1755cat >&5 <<_ACEOF
1756
1757
1758## ----------- ##
1759## Core tests. ##
1760## ----------- ##
1761
1762_ACEOF
1763
1764
1765# Keep a trace of the command line.
1766# Strip out --no-create and --no-recursion so they do not pile up.
1767# Strip out --silent because we don't want to record it for future runs.
1768# Also quote any args containing shell meta-characters.
1769# Make two passes to allow for proper duplicate-argument suppression.
1770ac_configure_args=
1771ac_configure_args0=
1772ac_configure_args1=
1773ac_must_keep_next=false
1774for ac_pass in 1 2
1775do
1776 for ac_arg
1777 do
1778 case $ac_arg in
1779 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1780 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1781 | -silent | --silent | --silen | --sile | --sil)
1782 continue ;;
1783 *\'*)
1784 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1785 esac
1786 case $ac_pass in
1787 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1788 2)
1789 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1790 if test $ac_must_keep_next = true; then
1791 ac_must_keep_next=false # Got value, back to normal.
1792 else
1793 case $ac_arg in
1794 *=* | --config-cache | -C | -disable-* | --disable-* \
1795 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1796 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1797 | -with-* | --with-* | -without-* | --without-* | --x)
1798 case "$ac_configure_args0 " in
1799 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1800 esac
1801 ;;
1802 -* ) ac_must_keep_next=true ;;
1803 esac
1804 fi
1805 ac_configure_args="$ac_configure_args '$ac_arg'"
1806 ;;
1807 esac
1808 done
1809done
1810$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1811$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1812
1813# When interrupted or exit'd, cleanup temporary files, and complete
1814# config.log. We remove comments because anyway the quotes in there
1815# would cause problems or look ugly.
1816# WARNING: Use '\'' to represent an apostrophe within the trap.
1817# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1818trap 'exit_status=$?
1819 # Save into config.log some information that might help in debugging.
1820 {
1821 echo
1822
1823 cat <<\_ASBOX
1824## ---------------- ##
1825## Cache variables. ##
1826## ---------------- ##
1827_ASBOX
1828 echo
1829 # The following way of writing the cache mishandles newlines in values,
1830(
1831 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1832 eval ac_val=\$$ac_var
1833 case $ac_val in #(
1834 *${as_nl}*)
1835 case $ac_var in #(
1836 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1837$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1838 esac
1839 case $ac_var in #(
1840 _ | IFS | as_nl) ;; #(
1841 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1842 *) $as_unset $ac_var ;;
1843 esac ;;
1844 esac
1845 done
1846 (set) 2>&1 |
1847 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1848 *${as_nl}ac_space=\ *)
1849 sed -n \
1850 "s/'\''/'\''\\\\'\'''\''/g;
1851 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1852 ;; #(
1853 *)
1854 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1855 ;;
1856 esac |
1857 sort
1858)
1859 echo
1860
1861 cat <<\_ASBOX
1862## ----------------- ##
1863## Output variables. ##
1864## ----------------- ##
1865_ASBOX
1866 echo
1867 for ac_var in $ac_subst_vars
1868 do
1869 eval ac_val=\$$ac_var
1870 case $ac_val in
1871 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1872 esac
1873 $as_echo "$ac_var='\''$ac_val'\''"
1874 done | sort
1875 echo
1876
1877 if test -n "$ac_subst_files"; then
1878 cat <<\_ASBOX
1879## ------------------- ##
1880## File substitutions. ##
1881## ------------------- ##
1882_ASBOX
1883 echo
1884 for ac_var in $ac_subst_files
1885 do
1886 eval ac_val=\$$ac_var
1887 case $ac_val in
1888 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1889 esac
1890 $as_echo "$ac_var='\''$ac_val'\''"
1891 done | sort
1892 echo
1893 fi
1894
1895 if test -s confdefs.h; then
1896 cat <<\_ASBOX
1897## ----------- ##
1898## confdefs.h. ##
1899## ----------- ##
1900_ASBOX
1901 echo
1902 cat confdefs.h
1903 echo
1904 fi
1905 test "$ac_signal" != 0 &&
1906 $as_echo "$as_me: caught signal $ac_signal"
1907 $as_echo "$as_me: exit $exit_status"
1908 } >&5
1909 rm -f core *.core core.conftest.* &&
1910 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1911 exit $exit_status
1912' 0
1913for ac_signal in 1 2 13 15; do
1914 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1915done
1916ac_signal=0
1917
1918# confdefs.h avoids OS command line length limits that DEFS can exceed.
1919rm -f -r conftest* confdefs.h
1920
1921# Predefined preprocessor variables.
1922
1923cat >>confdefs.h <<_ACEOF
1924#define PACKAGE_NAME "$PACKAGE_NAME"
1925_ACEOF
1926
1927
1928cat >>confdefs.h <<_ACEOF
1929#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1930_ACEOF
1931
1932
1933cat >>confdefs.h <<_ACEOF
1934#define PACKAGE_VERSION "$PACKAGE_VERSION"
1935_ACEOF
1936
1937
1938cat >>confdefs.h <<_ACEOF
1939#define PACKAGE_STRING "$PACKAGE_STRING"
1940_ACEOF
1941
1942
1943cat >>confdefs.h <<_ACEOF
1944#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1945_ACEOF
1946
1947
1948# Let the site file select an alternate cache file if it wants to.
1949# Prefer an explicitly selected file to automatically selected ones.
1950ac_site_file1=NONE
1951ac_site_file2=NONE
1952if test -n "$CONFIG_SITE"; then
1953 ac_site_file1=$CONFIG_SITE
1954elif test "x$prefix" != xNONE; then
1955 ac_site_file1=$prefix/share/config.site
1956 ac_site_file2=$prefix/etc/config.site
1957else
1958 ac_site_file1=$ac_default_prefix/share/config.site
1959 ac_site_file2=$ac_default_prefix/etc/config.site
1960fi
1961for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1962do
1963 test "x$ac_site_file" = xNONE && continue
1964 if test -r "$ac_site_file"; then
1965 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1966$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1967 sed 's/^/| /' "$ac_site_file" >&5
1968 . "$ac_site_file"
1969 fi
1970done
1971
1972if test -r "$cache_file"; then
1973 # Some versions of bash will fail to source /dev/null (special
1974 # files actually), so we avoid doing that.
1975 if test -f "$cache_file"; then
1976 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1977$as_echo "$as_me: loading cache $cache_file" >&6;}
1978 case $cache_file in
1979 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1980 *) . "./$cache_file";;
1981 esac
1982 fi
1983else
1984 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1985$as_echo "$as_me: creating cache $cache_file" >&6;}
1986 >$cache_file
1987fi
1988
1989# Check that the precious variables saved in the cache have kept the same
1990# value.
1991ac_cache_corrupted=false
1992for ac_var in $ac_precious_vars; do
1993 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1994 eval ac_new_set=\$ac_env_${ac_var}_set
1995 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1996 eval ac_new_val=\$ac_env_${ac_var}_value
1997 case $ac_old_set,$ac_new_set in
1998 set,)
1999 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2000$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2001 ac_cache_corrupted=: ;;
2002 ,set)
2003 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2004$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2005 ac_cache_corrupted=: ;;
2006 ,);;
2007 *)
2008 if test "x$ac_old_val" != "x$ac_new_val"; then
2009 # differences in whitespace do not lead to failure.
2010 ac_old_val_w=`echo x $ac_old_val`
2011 ac_new_val_w=`echo x $ac_new_val`
2012 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2013 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2014$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2015 ac_cache_corrupted=:
2016 else
2017 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2018$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2019 eval $ac_var=\$ac_old_val
2020 fi
2021 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2022$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2023 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2024$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2025 fi;;
2026 esac
2027 # Pass precious variables to config.status.
2028 if test "$ac_new_set" = set; then
2029 case $ac_new_val in
2030 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2031 *) ac_arg=$ac_var=$ac_new_val ;;
2032 esac
2033 case " $ac_configure_args " in
2034 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2035 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2036 esac
2037 fi
2038done
2039if $ac_cache_corrupted; then
2040 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2041$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2042 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2043$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2044 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2045$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2046 { (exit 1); exit 1; }; }
2047fi
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073ac_ext=c
2074ac_cpp='$CPP $CPPFLAGS'
2075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2077ac_compiler_gnu=$ac_cv_c_compiler_gnu
2078
2079
2080am__api_version='1.10'
2081
2082ac_aux_dir=
2083for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2084 if test -f "$ac_dir/install-sh"; then
2085 ac_aux_dir=$ac_dir
2086 ac_install_sh="$ac_aux_dir/install-sh -c"
2087 break
2088 elif test -f "$ac_dir/install.sh"; then
2089 ac_aux_dir=$ac_dir
2090 ac_install_sh="$ac_aux_dir/install.sh -c"
2091 break
2092 elif test -f "$ac_dir/shtool"; then
2093 ac_aux_dir=$ac_dir
2094 ac_install_sh="$ac_aux_dir/shtool install -c"
2095 break
2096 fi
2097done
2098if test -z "$ac_aux_dir"; then
2099 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2100$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2101 { (exit 1); exit 1; }; }
2102fi
2103
2104# These three variables are undocumented and unsupported,
2105# and are intended to be withdrawn in a future Autoconf release.
2106# They can cause serious problems if a builder's source tree is in a directory
2107# whose full name contains unusual characters.
2108ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2109ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2110ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2111
2112
2113# Find a good install program. We prefer a C program (faster),
2114# so one script is as good as another. But avoid the broken or
2115# incompatible versions:
2116# SysV /etc/install, /usr/sbin/install
2117# SunOS /usr/etc/install
2118# IRIX /sbin/install
2119# AIX /bin/install
2120# AmigaOS /C/install, which installs bootblocks on floppy discs
2121# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2122# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2123# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2124# OS/2's system install, which has a completely different semantic
2125# ./install, which can be erroneously created by make from ./install.sh.
2126# Reject install programs that cannot install multiple files.
2127{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2128$as_echo_n "checking for a BSD-compatible install... " >&6; }
2129if test -z "$INSTALL"; then
2130if test "${ac_cv_path_install+set}" = set; then
2131 $as_echo_n "(cached) " >&6
2132else
2133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2134for as_dir in $PATH
2135do
2136 IFS=$as_save_IFS
2137 test -z "$as_dir" && as_dir=.
2138 # Account for people who put trailing slashes in PATH elements.
2139case $as_dir/ in
2140 ./ | .// | /cC/* | \
2141 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2142 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2143 /usr/ucb/* ) ;;
2144 *)
2145 # OSF1 and SCO ODT 3.0 have their own names for install.
2146 # Don't use installbsd from OSF since it installs stuff as root
2147 # by default.
2148 for ac_prog in ginstall scoinst install; do
2149 for ac_exec_ext in '' $ac_executable_extensions; do
2150 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2151 if test $ac_prog = install &&
2152 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2153 # AIX install. It has an incompatible calling convention.
2154 :
2155 elif test $ac_prog = install &&
2156 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2157 # program-specific install script used by HP pwplus--don't use.
2158 :
2159 else
2160 rm -rf conftest.one conftest.two conftest.dir
2161 echo one > conftest.one
2162 echo two > conftest.two
2163 mkdir conftest.dir
2164 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2165 test -s conftest.one && test -s conftest.two &&
2166 test -s conftest.dir/conftest.one &&
2167 test -s conftest.dir/conftest.two
2168 then
2169 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2170 break 3
2171 fi
2172 fi
2173 fi
2174 done
2175 done
2176 ;;
2177esac
2178
2179done
2180IFS=$as_save_IFS
2181
2182rm -rf conftest.one conftest.two conftest.dir
2183
2184fi
2185 if test "${ac_cv_path_install+set}" = set; then
2186 INSTALL=$ac_cv_path_install
2187 else
2188 # As a last resort, use the slow shell script. Don't cache a
2189 # value for INSTALL within a source directory, because that will
2190 # break other packages using the cache if that directory is
2191 # removed, or if the value is a relative name.
2192 INSTALL=$ac_install_sh
2193 fi
2194fi
2195{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2196$as_echo "$INSTALL" >&6; }
2197
2198# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2199# It thinks the first close brace ends the variable substitution.
2200test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2201
2202test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2203
2204test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2205
2206{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2207$as_echo_n "checking whether build environment is sane... " >&6; }
2208# Just in case
2209sleep 1
2210echo timestamp > conftest.file
2211# Do `set' in a subshell so we don't clobber the current shell's
2212# arguments. Must try -L first in case configure is actually a
2213# symlink; some systems play weird games with the mod time of symlinks
2214# (eg FreeBSD returns the mod time of the symlink's containing
2215# directory).
2216if (
2217 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2218 if test "$*" = "X"; then
2219 # -L didn't work.
2220 set X `ls -t $srcdir/configure conftest.file`
2221 fi
2222 rm -f conftest.file
2223 if test "$*" != "X $srcdir/configure conftest.file" \
2224 && test "$*" != "X conftest.file $srcdir/configure"; then
2225
2226 # If neither matched, then we have a broken ls. This can happen
2227 # if, for instance, CONFIG_SHELL is bash and it inherits a
2228 # broken ls alias from the environment. This has actually
2229 # happened. Such a system could not be considered "sane".
2230 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2231alias in your environment" >&5
2232$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2233alias in your environment" >&2;}
2234 { (exit 1); exit 1; }; }
2235 fi
2236
2237 test "$2" = conftest.file
2238 )
2239then
2240 # Ok.
2241 :
2242else
2243 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2244Check your system clock" >&5
2245$as_echo "$as_me: error: newly created file is older than distributed files!
2246Check your system clock" >&2;}
2247 { (exit 1); exit 1; }; }
2248fi
2249{ $as_echo "$as_me:$LINENO: result: yes" >&5
2250$as_echo "yes" >&6; }
2251test "$program_prefix" != NONE &&
2252 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2253# Use a double $ so make ignores it.
2254test "$program_suffix" != NONE &&
2255 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2256# Double any \ or $.
2257# By default was `s,x,x', remove it if useless.
2258ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2259program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2260
2261# expand $ac_aux_dir to an absolute path
2262am_aux_dir=`cd $ac_aux_dir && pwd`
2263
2264test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2265# Use eval to expand $SHELL
2266if eval "$MISSING --run true"; then
2267 am_missing_run="$MISSING --run "
2268else
2269 am_missing_run=
2270 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2271$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2272fi
2273
2274{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2275$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2276if test -z "$MKDIR_P"; then
2277 if test "${ac_cv_path_mkdir+set}" = set; then
2278 $as_echo_n "(cached) " >&6
2279else
2280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2281for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2282do
2283 IFS=$as_save_IFS
2284 test -z "$as_dir" && as_dir=.
2285 for ac_prog in mkdir gmkdir; do
2286 for ac_exec_ext in '' $ac_executable_extensions; do
2287 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2288 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2289 'mkdir (GNU coreutils) '* | \
2290 'mkdir (coreutils) '* | \
2291 'mkdir (fileutils) '4.1*)
2292 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2293 break 3;;
2294 esac
2295 done
2296 done
2297done
2298IFS=$as_save_IFS
2299
2300fi
2301
2302 if test "${ac_cv_path_mkdir+set}" = set; then
2303 MKDIR_P="$ac_cv_path_mkdir -p"
2304 else
2305 # As a last resort, use the slow shell script. Don't cache a
2306 # value for MKDIR_P within a source directory, because that will
2307 # break other packages using the cache if that directory is
2308 # removed, or if the value is a relative name.
2309 test -d ./--version && rmdir ./--version
2310 MKDIR_P="$ac_install_sh -d"
2311 fi
2312fi
2313{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2314$as_echo "$MKDIR_P" >&6; }
2315
2316mkdir_p="$MKDIR_P"
2317case $mkdir_p in
2318 [\\/$]* | ?:[\\/]*) ;;
2319 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2320esac
2321
2322for ac_prog in gawk mawk nawk awk
2323do
2324 # Extract the first word of "$ac_prog", so it can be a program name with args.
2325set dummy $ac_prog; ac_word=$2
2326{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2327$as_echo_n "checking for $ac_word... " >&6; }
2328if test "${ac_cv_prog_AWK+set}" = set; then
2329 $as_echo_n "(cached) " >&6
2330else
2331 if test -n "$AWK"; then
2332 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2333else
2334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2335for as_dir in $PATH
2336do
2337 IFS=$as_save_IFS
2338 test -z "$as_dir" && as_dir=.
2339 for ac_exec_ext in '' $ac_executable_extensions; do
2340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2341 ac_cv_prog_AWK="$ac_prog"
2342 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2343 break 2
2344 fi
2345done
2346done
2347IFS=$as_save_IFS
2348
2349fi
2350fi
2351AWK=$ac_cv_prog_AWK
2352if test -n "$AWK"; then
2353 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2354$as_echo "$AWK" >&6; }
2355else
2356 { $as_echo "$as_me:$LINENO: result: no" >&5
2357$as_echo "no" >&6; }
2358fi
2359
2360
2361 test -n "$AWK" && break
2362done
2363
2364{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2365$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2366set x ${MAKE-make}
2367ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2368if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2369 $as_echo_n "(cached) " >&6
2370else
2371 cat >conftest.make <<\_ACEOF
2372SHELL = /bin/sh
2373all:
2374 @echo '@@@%%%=$(MAKE)=@@@%%%'
2375_ACEOF
2376# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2377case `${MAKE-make} -f conftest.make 2>/dev/null` in
2378 *@@@%%%=?*=@@@%%%*)
2379 eval ac_cv_prog_make_${ac_make}_set=yes;;
2380 *)
2381 eval ac_cv_prog_make_${ac_make}_set=no;;
2382esac
2383rm -f conftest.make
2384fi
2385if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2386 { $as_echo "$as_me:$LINENO: result: yes" >&5
2387$as_echo "yes" >&6; }
2388 SET_MAKE=
2389else
2390 { $as_echo "$as_me:$LINENO: result: no" >&5
2391$as_echo "no" >&6; }
2392 SET_MAKE="MAKE=${MAKE-make}"
2393fi
2394
2395rm -rf .tst 2>/dev/null
2396mkdir .tst 2>/dev/null
2397if test -d .tst; then
2398 am__leading_dot=.
2399else
2400 am__leading_dot=_
2401fi
2402rmdir .tst 2>/dev/null
2403
2404if test "`cd $srcdir && pwd`" != "`pwd`"; then
2405 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2406 # is not polluted with repeated "-I."
2407 am__isrc=' -I$(srcdir)'
2408 # test to see if srcdir already configured
2409 if test -f $srcdir/config.status; then
2410 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2411$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2412 { (exit 1); exit 1; }; }
2413 fi
2414fi
2415
2416# test whether we have cygpath
2417if test -z "$CYGPATH_W"; then
2418 if (cygpath --version) >/dev/null 2>/dev/null; then
2419 CYGPATH_W='cygpath -w'
2420 else
2421 CYGPATH_W=echo
2422 fi
2423fi
2424
2425
2426# Define the identity of the package.
2427 PACKAGE='tigervnc'
2428 VERSION='0.0.90'
2429
2430
2431cat >>confdefs.h <<_ACEOF
2432#define PACKAGE "$PACKAGE"
2433_ACEOF
2434
2435
2436cat >>confdefs.h <<_ACEOF
2437#define VERSION "$VERSION"
2438_ACEOF
2439
2440# Some tools Automake needs.
2441
2442ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2443
2444
2445AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2446
2447
2448AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2449
2450
2451AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2452
2453
2454MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2455
2456install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2457
2458# Installed binaries are usually stripped using `strip' when the user
2459# run `make install-strip'. However `strip' might not be the right
2460# tool to use in cross-compilation environments, therefore Automake
2461# will honor the `STRIP' environment variable to overrule this program.
2462if test "$cross_compiling" != no; then
2463 if test -n "$ac_tool_prefix"; then
2464 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2465set dummy ${ac_tool_prefix}strip; ac_word=$2
2466{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2467$as_echo_n "checking for $ac_word... " >&6; }
2468if test "${ac_cv_prog_STRIP+set}" = set; then
2469 $as_echo_n "(cached) " >&6
2470else
2471 if test -n "$STRIP"; then
2472 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2473else
2474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2475for as_dir in $PATH
2476do
2477 IFS=$as_save_IFS
2478 test -z "$as_dir" && as_dir=.
2479 for ac_exec_ext in '' $ac_executable_extensions; do
2480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2481 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2482 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2483 break 2
2484 fi
2485done
2486done
2487IFS=$as_save_IFS
2488
2489fi
2490fi
2491STRIP=$ac_cv_prog_STRIP
2492if test -n "$STRIP"; then
2493 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2494$as_echo "$STRIP" >&6; }
2495else
2496 { $as_echo "$as_me:$LINENO: result: no" >&5
2497$as_echo "no" >&6; }
2498fi
2499
2500
2501fi
2502if test -z "$ac_cv_prog_STRIP"; then
2503 ac_ct_STRIP=$STRIP
2504 # Extract the first word of "strip", so it can be a program name with args.
2505set dummy strip; ac_word=$2
2506{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2507$as_echo_n "checking for $ac_word... " >&6; }
2508if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2509 $as_echo_n "(cached) " >&6
2510else
2511 if test -n "$ac_ct_STRIP"; then
2512 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2513else
2514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2515for as_dir in $PATH
2516do
2517 IFS=$as_save_IFS
2518 test -z "$as_dir" && as_dir=.
2519 for ac_exec_ext in '' $ac_executable_extensions; do
2520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2521 ac_cv_prog_ac_ct_STRIP="strip"
2522 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2523 break 2
2524 fi
2525done
2526done
2527IFS=$as_save_IFS
2528
2529fi
2530fi
2531ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2532if test -n "$ac_ct_STRIP"; then
2533 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2534$as_echo "$ac_ct_STRIP" >&6; }
2535else
2536 { $as_echo "$as_me:$LINENO: result: no" >&5
2537$as_echo "no" >&6; }
2538fi
2539
2540 if test "x$ac_ct_STRIP" = x; then
2541 STRIP=":"
2542 else
2543 case $cross_compiling:$ac_tool_warned in
2544yes:)
2545{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2546$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2547ac_tool_warned=yes ;;
2548esac
2549 STRIP=$ac_ct_STRIP
2550 fi
2551else
2552 STRIP="$ac_cv_prog_STRIP"
2553fi
2554
2555fi
2556INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2557
2558# We need awk for the "check" target. The system "awk" is bad on
2559# some platforms.
2560# Always define AMTAR for backward compatibility.
2561
2562AMTAR=${AMTAR-"${am_missing_run}tar"}
2563
2564am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2565
2566
2567
2568
2569
2570
2571COMMON_DIR='$(top_srcdir)/../common'
2572
2573
2574
2575
2576subdirs="$subdirs ../common"
2577
2578
2579ac_ext=c
2580ac_cpp='$CPP $CPPFLAGS'
2581ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2582ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2583ac_compiler_gnu=$ac_cv_c_compiler_gnu
2584if test -n "$ac_tool_prefix"; then
2585 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2586set dummy ${ac_tool_prefix}gcc; ac_word=$2
2587{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2588$as_echo_n "checking for $ac_word... " >&6; }
2589if test "${ac_cv_prog_CC+set}" = set; then
2590 $as_echo_n "(cached) " >&6
2591else
2592 if test -n "$CC"; then
2593 ac_cv_prog_CC="$CC" # Let the user override the test.
2594else
2595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596for as_dir in $PATH
2597do
2598 IFS=$as_save_IFS
2599 test -z "$as_dir" && as_dir=.
2600 for ac_exec_ext in '' $ac_executable_extensions; do
2601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2602 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2603 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2604 break 2
2605 fi
2606done
2607done
2608IFS=$as_save_IFS
2609
2610fi
2611fi
2612CC=$ac_cv_prog_CC
2613if test -n "$CC"; then
2614 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2615$as_echo "$CC" >&6; }
2616else
2617 { $as_echo "$as_me:$LINENO: result: no" >&5
2618$as_echo "no" >&6; }
2619fi
2620
2621
2622fi
2623if test -z "$ac_cv_prog_CC"; then
2624 ac_ct_CC=$CC
2625 # Extract the first word of "gcc", so it can be a program name with args.
2626set dummy gcc; ac_word=$2
2627{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2628$as_echo_n "checking for $ac_word... " >&6; }
2629if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2630 $as_echo_n "(cached) " >&6
2631else
2632 if test -n "$ac_ct_CC"; then
2633 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2634else
2635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2636for as_dir in $PATH
2637do
2638 IFS=$as_save_IFS
2639 test -z "$as_dir" && as_dir=.
2640 for ac_exec_ext in '' $ac_executable_extensions; do
2641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2642 ac_cv_prog_ac_ct_CC="gcc"
2643 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2644 break 2
2645 fi
2646done
2647done
2648IFS=$as_save_IFS
2649
2650fi
2651fi
2652ac_ct_CC=$ac_cv_prog_ac_ct_CC
2653if test -n "$ac_ct_CC"; then
2654 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2655$as_echo "$ac_ct_CC" >&6; }
2656else
2657 { $as_echo "$as_me:$LINENO: result: no" >&5
2658$as_echo "no" >&6; }
2659fi
2660
2661 if test "x$ac_ct_CC" = x; then
2662 CC=""
2663 else
2664 case $cross_compiling:$ac_tool_warned in
2665yes:)
2666{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2667$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2668ac_tool_warned=yes ;;
2669esac
2670 CC=$ac_ct_CC
2671 fi
2672else
2673 CC="$ac_cv_prog_CC"
2674fi
2675
2676if test -z "$CC"; then
2677 if test -n "$ac_tool_prefix"; then
2678 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2679set dummy ${ac_tool_prefix}cc; ac_word=$2
2680{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2681$as_echo_n "checking for $ac_word... " >&6; }
2682if test "${ac_cv_prog_CC+set}" = set; then
2683 $as_echo_n "(cached) " >&6
2684else
2685 if test -n "$CC"; then
2686 ac_cv_prog_CC="$CC" # Let the user override the test.
2687else
2688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689for as_dir in $PATH
2690do
2691 IFS=$as_save_IFS
2692 test -z "$as_dir" && as_dir=.
2693 for ac_exec_ext in '' $ac_executable_extensions; do
2694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2695 ac_cv_prog_CC="${ac_tool_prefix}cc"
2696 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2697 break 2
2698 fi
2699done
2700done
2701IFS=$as_save_IFS
2702
2703fi
2704fi
2705CC=$ac_cv_prog_CC
2706if test -n "$CC"; then
2707 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2708$as_echo "$CC" >&6; }
2709else
2710 { $as_echo "$as_me:$LINENO: result: no" >&5
2711$as_echo "no" >&6; }
2712fi
2713
2714
2715 fi
2716fi
2717if test -z "$CC"; then
2718 # Extract the first word of "cc", so it can be a program name with args.
2719set dummy cc; ac_word=$2
2720{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2721$as_echo_n "checking for $ac_word... " >&6; }
2722if test "${ac_cv_prog_CC+set}" = set; then
2723 $as_echo_n "(cached) " >&6
2724else
2725 if test -n "$CC"; then
2726 ac_cv_prog_CC="$CC" # Let the user override the test.
2727else
2728 ac_prog_rejected=no
2729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2730for as_dir in $PATH
2731do
2732 IFS=$as_save_IFS
2733 test -z "$as_dir" && as_dir=.
2734 for ac_exec_ext in '' $ac_executable_extensions; do
2735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2736 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2737 ac_prog_rejected=yes
2738 continue
2739 fi
2740 ac_cv_prog_CC="cc"
2741 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2742 break 2
2743 fi
2744done
2745done
2746IFS=$as_save_IFS
2747
2748if test $ac_prog_rejected = yes; then
2749 # We found a bogon in the path, so make sure we never use it.
2750 set dummy $ac_cv_prog_CC
2751 shift
2752 if test $# != 0; then
2753 # We chose a different compiler from the bogus one.
2754 # However, it has the same basename, so the bogon will be chosen
2755 # first if we set CC to just the basename; use the full file name.
2756 shift
2757 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2758 fi
2759fi
2760fi
2761fi
2762CC=$ac_cv_prog_CC
2763if test -n "$CC"; then
2764 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2765$as_echo "$CC" >&6; }
2766else
2767 { $as_echo "$as_me:$LINENO: result: no" >&5
2768$as_echo "no" >&6; }
2769fi
2770
2771
2772fi
2773if test -z "$CC"; then
2774 if test -n "$ac_tool_prefix"; then
2775 for ac_prog in cl.exe
2776 do
2777 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2778set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2779{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2780$as_echo_n "checking for $ac_word... " >&6; }
2781if test "${ac_cv_prog_CC+set}" = set; then
2782 $as_echo_n "(cached) " >&6
2783else
2784 if test -n "$CC"; then
2785 ac_cv_prog_CC="$CC" # Let the user override the test.
2786else
2787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788for as_dir in $PATH
2789do
2790 IFS=$as_save_IFS
2791 test -z "$as_dir" && as_dir=.
2792 for ac_exec_ext in '' $ac_executable_extensions; do
2793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2794 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2795 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2796 break 2
2797 fi
2798done
2799done
2800IFS=$as_save_IFS
2801
2802fi
2803fi
2804CC=$ac_cv_prog_CC
2805if test -n "$CC"; then
2806 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2807$as_echo "$CC" >&6; }
2808else
2809 { $as_echo "$as_me:$LINENO: result: no" >&5
2810$as_echo "no" >&6; }
2811fi
2812
2813
2814 test -n "$CC" && break
2815 done
2816fi
2817if test -z "$CC"; then
2818 ac_ct_CC=$CC
2819 for ac_prog in cl.exe
2820do
2821 # Extract the first word of "$ac_prog", so it can be a program name with args.
2822set dummy $ac_prog; ac_word=$2
2823{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2824$as_echo_n "checking for $ac_word... " >&6; }
2825if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2826 $as_echo_n "(cached) " >&6
2827else
2828 if test -n "$ac_ct_CC"; then
2829 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2830else
2831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2832for as_dir in $PATH
2833do
2834 IFS=$as_save_IFS
2835 test -z "$as_dir" && as_dir=.
2836 for ac_exec_ext in '' $ac_executable_extensions; do
2837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2838 ac_cv_prog_ac_ct_CC="$ac_prog"
2839 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2840 break 2
2841 fi
2842done
2843done
2844IFS=$as_save_IFS
2845
2846fi
2847fi
2848ac_ct_CC=$ac_cv_prog_ac_ct_CC
2849if test -n "$ac_ct_CC"; then
2850 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2851$as_echo "$ac_ct_CC" >&6; }
2852else
2853 { $as_echo "$as_me:$LINENO: result: no" >&5
2854$as_echo "no" >&6; }
2855fi
2856
2857
2858 test -n "$ac_ct_CC" && break
2859done
2860
2861 if test "x$ac_ct_CC" = x; then
2862 CC=""
2863 else
2864 case $cross_compiling:$ac_tool_warned in
2865yes:)
2866{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2867$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2868ac_tool_warned=yes ;;
2869esac
2870 CC=$ac_ct_CC
2871 fi
2872fi
2873
2874fi
2875
2876
2877test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2878$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2879{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2880See \`config.log' for more details." >&5
2881$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2882See \`config.log' for more details." >&2;}
2883 { (exit 1); exit 1; }; }; }
2884
2885# Provide some information about the compiler.
2886$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2887set X $ac_compile
2888ac_compiler=$2
2889{ (ac_try="$ac_compiler --version >&5"
2890case "(($ac_try" in
2891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2892 *) ac_try_echo=$ac_try;;
2893esac
2894eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2895$as_echo "$ac_try_echo") >&5
2896 (eval "$ac_compiler --version >&5") 2>&5
2897 ac_status=$?
2898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); }
2900{ (ac_try="$ac_compiler -v >&5"
2901case "(($ac_try" in
2902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2903 *) ac_try_echo=$ac_try;;
2904esac
2905eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2906$as_echo "$ac_try_echo") >&5
2907 (eval "$ac_compiler -v >&5") 2>&5
2908 ac_status=$?
2909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); }
2911{ (ac_try="$ac_compiler -V >&5"
2912case "(($ac_try" in
2913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2914 *) ac_try_echo=$ac_try;;
2915esac
2916eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2917$as_echo "$ac_try_echo") >&5
2918 (eval "$ac_compiler -V >&5") 2>&5
2919 ac_status=$?
2920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); }
2922
2923cat >conftest.$ac_ext <<_ACEOF
2924/* confdefs.h. */
2925_ACEOF
2926cat confdefs.h >>conftest.$ac_ext
2927cat >>conftest.$ac_ext <<_ACEOF
2928/* end confdefs.h. */
2929
2930int
2931main ()
2932{
2933
2934 ;
2935 return 0;
2936}
2937_ACEOF
2938ac_clean_files_save=$ac_clean_files
2939ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2940# Try to create an executable without -o first, disregard a.out.
2941# It will help us diagnose broken compilers, and finding out an intuition
2942# of exeext.
2943{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2944$as_echo_n "checking for C compiler default output file name... " >&6; }
2945ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2946
2947# The possible output files:
2948ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2949
2950ac_rmfiles=
2951for ac_file in $ac_files
2952do
2953 case $ac_file in
2954 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2955 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2956 esac
2957done
2958rm -f $ac_rmfiles
2959
2960if { (ac_try="$ac_link_default"
2961case "(($ac_try" in
2962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2963 *) ac_try_echo=$ac_try;;
2964esac
2965eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2966$as_echo "$ac_try_echo") >&5
2967 (eval "$ac_link_default") 2>&5
2968 ac_status=$?
2969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); }; then
2971 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2972# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2973# in a Makefile. We should not override ac_cv_exeext if it was cached,
2974# so that the user can short-circuit this test for compilers unknown to
2975# Autoconf.
2976for ac_file in $ac_files ''
2977do
2978 test -f "$ac_file" || continue
2979 case $ac_file in
2980 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2981 ;;
2982 [ab].out )
2983 # We found the default executable, but exeext='' is most
2984 # certainly right.
2985 break;;
2986 *.* )
2987 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2988 then :; else
2989 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2990 fi
2991 # We set ac_cv_exeext here because the later test for it is not
2992 # safe: cross compilers may not add the suffix if given an `-o'
2993 # argument, so we may need to know it at that point already.
2994 # Even if this section looks crufty: it has the advantage of
2995 # actually working.
2996 break;;
2997 * )
2998 break;;
2999 esac
3000done
3001test "$ac_cv_exeext" = no && ac_cv_exeext=
3002
3003else
3004 ac_file=''
3005fi
3006
3007{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3008$as_echo "$ac_file" >&6; }
3009if test -z "$ac_file"; then
3010 $as_echo "$as_me: failed program was:" >&5
3011sed 's/^/| /' conftest.$ac_ext >&5
3012
3013{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3014$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3015{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3016See \`config.log' for more details." >&5
3017$as_echo "$as_me: error: C compiler cannot create executables
3018See \`config.log' for more details." >&2;}
3019 { (exit 77); exit 77; }; }; }
3020fi
3021
3022ac_exeext=$ac_cv_exeext
3023
3024# Check that the compiler produces executables we can run. If not, either
3025# the compiler is broken, or we cross compile.
3026{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3027$as_echo_n "checking whether the C compiler works... " >&6; }
3028# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3029# If not cross compiling, check that we can run a simple program.
3030if test "$cross_compiling" != yes; then
3031 if { ac_try='./$ac_file'
3032 { (case "(($ac_try" in
3033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034 *) ac_try_echo=$ac_try;;
3035esac
3036eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3037$as_echo "$ac_try_echo") >&5
3038 (eval "$ac_try") 2>&5
3039 ac_status=$?
3040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); }; }; then
3042 cross_compiling=no
3043 else
3044 if test "$cross_compiling" = maybe; then
3045 cross_compiling=yes
3046 else
3047 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3048$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3049{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3050If you meant to cross compile, use \`--host'.
3051See \`config.log' for more details." >&5
3052$as_echo "$as_me: error: cannot run C compiled programs.
3053If you meant to cross compile, use \`--host'.
3054See \`config.log' for more details." >&2;}
3055 { (exit 1); exit 1; }; }; }
3056 fi
3057 fi
3058fi
3059{ $as_echo "$as_me:$LINENO: result: yes" >&5
3060$as_echo "yes" >&6; }
3061
3062rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3063ac_clean_files=$ac_clean_files_save
3064# Check that the compiler produces executables we can run. If not, either
3065# the compiler is broken, or we cross compile.
3066{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3067$as_echo_n "checking whether we are cross compiling... " >&6; }
3068{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3069$as_echo "$cross_compiling" >&6; }
3070
3071{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3072$as_echo_n "checking for suffix of executables... " >&6; }
3073if { (ac_try="$ac_link"
3074case "(($ac_try" in
3075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3076 *) ac_try_echo=$ac_try;;
3077esac
3078eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3079$as_echo "$ac_try_echo") >&5
3080 (eval "$ac_link") 2>&5
3081 ac_status=$?
3082 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); }; then
3084 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3085# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3086# work properly (i.e., refer to `conftest.exe'), while it won't with
3087# `rm'.
3088for ac_file in conftest.exe conftest conftest.*; do
3089 test -f "$ac_file" || continue
3090 case $ac_file in
3091 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3092 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3093 break;;
3094 * ) break;;
3095 esac
3096done
3097else
3098 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3099$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3100{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3101See \`config.log' for more details." >&5
3102$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3103See \`config.log' for more details." >&2;}
3104 { (exit 1); exit 1; }; }; }
3105fi
3106
3107rm -f conftest$ac_cv_exeext
3108{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3109$as_echo "$ac_cv_exeext" >&6; }
3110
3111rm -f conftest.$ac_ext
3112EXEEXT=$ac_cv_exeext
3113ac_exeext=$EXEEXT
3114{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3115$as_echo_n "checking for suffix of object files... " >&6; }
3116if test "${ac_cv_objext+set}" = set; then
3117 $as_echo_n "(cached) " >&6
3118else
3119 cat >conftest.$ac_ext <<_ACEOF
3120/* confdefs.h. */
3121_ACEOF
3122cat confdefs.h >>conftest.$ac_ext
3123cat >>conftest.$ac_ext <<_ACEOF
3124/* end confdefs.h. */
3125
3126int
3127main ()
3128{
3129
3130 ;
3131 return 0;
3132}
3133_ACEOF
3134rm -f conftest.o conftest.obj
3135if { (ac_try="$ac_compile"
3136case "(($ac_try" in
3137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138 *) ac_try_echo=$ac_try;;
3139esac
3140eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3141$as_echo "$ac_try_echo") >&5
3142 (eval "$ac_compile") 2>&5
3143 ac_status=$?
3144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); }; then
3146 for ac_file in conftest.o conftest.obj conftest.*; do
3147 test -f "$ac_file" || continue;
3148 case $ac_file in
3149 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3150 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3151 break;;
3152 esac
3153done
3154else
3155 $as_echo "$as_me: failed program was:" >&5
3156sed 's/^/| /' conftest.$ac_ext >&5
3157
3158{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3159$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3160{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3161See \`config.log' for more details." >&5
3162$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3163See \`config.log' for more details." >&2;}
3164 { (exit 1); exit 1; }; }; }
3165fi
3166
3167rm -f conftest.$ac_cv_objext conftest.$ac_ext
3168fi
3169{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3170$as_echo "$ac_cv_objext" >&6; }
3171OBJEXT=$ac_cv_objext
3172ac_objext=$OBJEXT
3173{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3174$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3175if test "${ac_cv_c_compiler_gnu+set}" = set; then
3176 $as_echo_n "(cached) " >&6
3177else
3178 cat >conftest.$ac_ext <<_ACEOF
3179/* confdefs.h. */
3180_ACEOF
3181cat confdefs.h >>conftest.$ac_ext
3182cat >>conftest.$ac_ext <<_ACEOF
3183/* end confdefs.h. */
3184
3185int
3186main ()
3187{
3188#ifndef __GNUC__
3189 choke me
3190#endif
3191
3192 ;
3193 return 0;
3194}
3195_ACEOF
3196rm -f conftest.$ac_objext
3197if { (ac_try="$ac_compile"
3198case "(($ac_try" in
3199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200 *) ac_try_echo=$ac_try;;
3201esac
3202eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3203$as_echo "$ac_try_echo") >&5
3204 (eval "$ac_compile") 2>conftest.er1
3205 ac_status=$?
3206 grep -v '^ *+' conftest.er1 >conftest.err
3207 rm -f conftest.er1
3208 cat conftest.err >&5
3209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 (exit $ac_status); } && {
3211 test -z "$ac_c_werror_flag" ||
3212 test ! -s conftest.err
3213 } && test -s conftest.$ac_objext; then
3214 ac_compiler_gnu=yes
3215else
3216 $as_echo "$as_me: failed program was:" >&5
3217sed 's/^/| /' conftest.$ac_ext >&5
3218
3219 ac_compiler_gnu=no
3220fi
3221
3222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3223ac_cv_c_compiler_gnu=$ac_compiler_gnu
3224
3225fi
3226{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3227$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3228if test $ac_compiler_gnu = yes; then
3229 GCC=yes
3230else
3231 GCC=
3232fi
3233ac_test_CFLAGS=${CFLAGS+set}
3234ac_save_CFLAGS=$CFLAGS
3235{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3236$as_echo_n "checking whether $CC accepts -g... " >&6; }
3237if test "${ac_cv_prog_cc_g+set}" = set; then
3238 $as_echo_n "(cached) " >&6
3239else
3240 ac_save_c_werror_flag=$ac_c_werror_flag
3241 ac_c_werror_flag=yes
3242 ac_cv_prog_cc_g=no
3243 CFLAGS="-g"
3244 cat >conftest.$ac_ext <<_ACEOF
3245/* confdefs.h. */
3246_ACEOF
3247cat confdefs.h >>conftest.$ac_ext
3248cat >>conftest.$ac_ext <<_ACEOF
3249/* end confdefs.h. */
3250
3251int
3252main ()
3253{
3254
3255 ;
3256 return 0;
3257}
3258_ACEOF
3259rm -f conftest.$ac_objext
3260if { (ac_try="$ac_compile"
3261case "(($ac_try" in
3262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3263 *) ac_try_echo=$ac_try;;
3264esac
3265eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3266$as_echo "$ac_try_echo") >&5
3267 (eval "$ac_compile") 2>conftest.er1
3268 ac_status=$?
3269 grep -v '^ *+' conftest.er1 >conftest.err
3270 rm -f conftest.er1
3271 cat conftest.err >&5
3272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); } && {
3274 test -z "$ac_c_werror_flag" ||
3275 test ! -s conftest.err
3276 } && test -s conftest.$ac_objext; then
3277 ac_cv_prog_cc_g=yes
3278else
3279 $as_echo "$as_me: failed program was:" >&5
3280sed 's/^/| /' conftest.$ac_ext >&5
3281
3282 CFLAGS=""
3283 cat >conftest.$ac_ext <<_ACEOF
3284/* confdefs.h. */
3285_ACEOF
3286cat confdefs.h >>conftest.$ac_ext
3287cat >>conftest.$ac_ext <<_ACEOF
3288/* end confdefs.h. */
3289
3290int
3291main ()
3292{
3293
3294 ;
3295 return 0;
3296}
3297_ACEOF
3298rm -f conftest.$ac_objext
3299if { (ac_try="$ac_compile"
3300case "(($ac_try" in
3301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3302 *) ac_try_echo=$ac_try;;
3303esac
3304eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3305$as_echo "$ac_try_echo") >&5
3306 (eval "$ac_compile") 2>conftest.er1
3307 ac_status=$?
3308 grep -v '^ *+' conftest.er1 >conftest.err
3309 rm -f conftest.er1
3310 cat conftest.err >&5
3311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312 (exit $ac_status); } && {
3313 test -z "$ac_c_werror_flag" ||
3314 test ! -s conftest.err
3315 } && test -s conftest.$ac_objext; then
3316 :
3317else
3318 $as_echo "$as_me: failed program was:" >&5
3319sed 's/^/| /' conftest.$ac_ext >&5
3320
3321 ac_c_werror_flag=$ac_save_c_werror_flag
3322 CFLAGS="-g"
3323 cat >conftest.$ac_ext <<_ACEOF
3324/* confdefs.h. */
3325_ACEOF
3326cat confdefs.h >>conftest.$ac_ext
3327cat >>conftest.$ac_ext <<_ACEOF
3328/* end confdefs.h. */
3329
3330int
3331main ()
3332{
3333
3334 ;
3335 return 0;
3336}
3337_ACEOF
3338rm -f conftest.$ac_objext
3339if { (ac_try="$ac_compile"
3340case "(($ac_try" in
3341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3342 *) ac_try_echo=$ac_try;;
3343esac
3344eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3345$as_echo "$ac_try_echo") >&5
3346 (eval "$ac_compile") 2>conftest.er1
3347 ac_status=$?
3348 grep -v '^ *+' conftest.er1 >conftest.err
3349 rm -f conftest.er1
3350 cat conftest.err >&5
3351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); } && {
3353 test -z "$ac_c_werror_flag" ||
3354 test ! -s conftest.err
3355 } && test -s conftest.$ac_objext; then
3356 ac_cv_prog_cc_g=yes
3357else
3358 $as_echo "$as_me: failed program was:" >&5
3359sed 's/^/| /' conftest.$ac_ext >&5
3360
3361
3362fi
3363
3364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3365fi
3366
3367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3368fi
3369
3370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3371 ac_c_werror_flag=$ac_save_c_werror_flag
3372fi
3373{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3374$as_echo "$ac_cv_prog_cc_g" >&6; }
3375if test "$ac_test_CFLAGS" = set; then
3376 CFLAGS=$ac_save_CFLAGS
3377elif test $ac_cv_prog_cc_g = yes; then
3378 if test "$GCC" = yes; then
3379 CFLAGS="-g -O2"
3380 else
3381 CFLAGS="-g"
3382 fi
3383else
3384 if test "$GCC" = yes; then
3385 CFLAGS="-O2"
3386 else
3387 CFLAGS=
3388 fi
3389fi
3390{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3391$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3392if test "${ac_cv_prog_cc_c89+set}" = set; then
3393 $as_echo_n "(cached) " >&6
3394else
3395 ac_cv_prog_cc_c89=no
3396ac_save_CC=$CC
3397cat >conftest.$ac_ext <<_ACEOF
3398/* confdefs.h. */
3399_ACEOF
3400cat confdefs.h >>conftest.$ac_ext
3401cat >>conftest.$ac_ext <<_ACEOF
3402/* end confdefs.h. */
3403#include <stdarg.h>
3404#include <stdio.h>
3405#include <sys/types.h>
3406#include <sys/stat.h>
3407/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3408struct buf { int x; };
3409FILE * (*rcsopen) (struct buf *, struct stat *, int);
3410static char *e (p, i)
3411 char **p;
3412 int i;
3413{
3414 return p[i];
3415}
3416static char *f (char * (*g) (char **, int), char **p, ...)
3417{
3418 char *s;
3419 va_list v;
3420 va_start (v,p);
3421 s = g (p, va_arg (v,int));
3422 va_end (v);
3423 return s;
3424}
3425
3426/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3427 function prototypes and stuff, but not '\xHH' hex character constants.
3428 These don't provoke an error unfortunately, instead are silently treated
3429 as 'x'. The following induces an error, until -std is added to get
3430 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3431 array size at least. It's necessary to write '\x00'==0 to get something
3432 that's true only with -std. */
3433int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3434
3435/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3436 inside strings and character constants. */
3437#define FOO(x) 'x'
3438int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3439
3440int test (int i, double x);
3441struct s1 {int (*f) (int a);};
3442struct s2 {int (*f) (double a);};
3443int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3444int argc;
3445char **argv;
3446int
3447main ()
3448{
3449return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3450 ;
3451 return 0;
3452}
3453_ACEOF
3454for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3455 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3456do
3457 CC="$ac_save_CC $ac_arg"
3458 rm -f conftest.$ac_objext
3459if { (ac_try="$ac_compile"
3460case "(($ac_try" in
3461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3462 *) ac_try_echo=$ac_try;;
3463esac
3464eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3465$as_echo "$ac_try_echo") >&5
3466 (eval "$ac_compile") 2>conftest.er1
3467 ac_status=$?
3468 grep -v '^ *+' conftest.er1 >conftest.err
3469 rm -f conftest.er1
3470 cat conftest.err >&5
3471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472 (exit $ac_status); } && {
3473 test -z "$ac_c_werror_flag" ||
3474 test ! -s conftest.err
3475 } && test -s conftest.$ac_objext; then
3476 ac_cv_prog_cc_c89=$ac_arg
3477else
3478 $as_echo "$as_me: failed program was:" >&5
3479sed 's/^/| /' conftest.$ac_ext >&5
3480
3481
3482fi
3483
3484rm -f core conftest.err conftest.$ac_objext
3485 test "x$ac_cv_prog_cc_c89" != "xno" && break
3486done
3487rm -f conftest.$ac_ext
3488CC=$ac_save_CC
3489
3490fi
3491# AC_CACHE_VAL
3492case "x$ac_cv_prog_cc_c89" in
3493 x)
3494 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3495$as_echo "none needed" >&6; } ;;
3496 xno)
3497 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3498$as_echo "unsupported" >&6; } ;;
3499 *)
3500 CC="$CC $ac_cv_prog_cc_c89"
3501 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3502$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3503esac
3504
3505
3506ac_ext=c
3507ac_cpp='$CPP $CPPFLAGS'
3508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3510ac_compiler_gnu=$ac_cv_c_compiler_gnu
3511DEPDIR="${am__leading_dot}deps"
3512
3513ac_config_commands="$ac_config_commands depfiles"
3514
3515
3516am_make=${MAKE-make}
3517cat > confinc << 'END'
3518am__doit:
3519 @echo done
3520.PHONY: am__doit
3521END
3522# If we don't find an include directive, just comment out the code.
3523{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3524$as_echo_n "checking for style of include used by $am_make... " >&6; }
3525am__include="#"
3526am__quote=
3527_am_result=none
3528# First try GNU make style include.
3529echo "include confinc" > confmf
3530# We grep out `Entering directory' and `Leaving directory'
3531# messages which can occur if `w' ends up in MAKEFLAGS.
3532# In particular we don't look at `^make:' because GNU make might
3533# be invoked under some other name (usually "gmake"), in which
3534# case it prints its new name instead of `make'.
3535if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3536 am__include=include
3537 am__quote=
3538 _am_result=GNU
3539fi
3540# Now try BSD make style include.
3541if test "$am__include" = "#"; then
3542 echo '.include "confinc"' > confmf
3543 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3544 am__include=.include
3545 am__quote="\""
3546 _am_result=BSD
3547 fi
3548fi
3549
3550
3551{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3552$as_echo "$_am_result" >&6; }
3553rm -f confinc confmf
3554
3555# Check whether --enable-dependency-tracking was given.
3556if test "${enable_dependency_tracking+set}" = set; then
3557 enableval=$enable_dependency_tracking;
3558fi
3559
3560if test "x$enable_dependency_tracking" != xno; then
3561 am_depcomp="$ac_aux_dir/depcomp"
3562 AMDEPBACKSLASH='\'
3563fi
3564 if test "x$enable_dependency_tracking" != xno; then
3565 AMDEP_TRUE=
3566 AMDEP_FALSE='#'
3567else
3568 AMDEP_TRUE='#'
3569 AMDEP_FALSE=
3570fi
3571
3572
3573
3574depcc="$CC" am_compiler_list=
3575
3576{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3577$as_echo_n "checking dependency style of $depcc... " >&6; }
3578if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3579 $as_echo_n "(cached) " >&6
3580else
3581 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3582 # We make a subdir and do the tests there. Otherwise we can end up
3583 # making bogus files that we don't know about and never remove. For
3584 # instance it was reported that on HP-UX the gcc test will end up
3585 # making a dummy file named `D' -- because `-MD' means `put the output
3586 # in D'.
3587 mkdir conftest.dir
3588 # Copy depcomp to subdir because otherwise we won't find it if we're
3589 # using a relative directory.
3590 cp "$am_depcomp" conftest.dir
3591 cd conftest.dir
3592 # We will build objects and dependencies in a subdirectory because
3593 # it helps to detect inapplicable dependency modes. For instance
3594 # both Tru64's cc and ICC support -MD to output dependencies as a
3595 # side effect of compilation, but ICC will put the dependencies in
3596 # the current directory while Tru64 will put them in the object
3597 # directory.
3598 mkdir sub
3599
3600 am_cv_CC_dependencies_compiler_type=none
3601 if test "$am_compiler_list" = ""; then
3602 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3603 fi
3604 for depmode in $am_compiler_list; do
3605 # Setup a source with many dependencies, because some compilers
3606 # like to wrap large dependency lists on column 80 (with \), and
3607 # we should not choose a depcomp mode which is confused by this.
3608 #
3609 # We need to recreate these files for each test, as the compiler may
3610 # overwrite some of them when testing with obscure command lines.
3611 # This happens at least with the AIX C compiler.
3612 : > sub/conftest.c
3613 for i in 1 2 3 4 5 6; do
3614 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3615 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3616 # Solaris 8's {/usr,}/bin/sh.
3617 touch sub/conftst$i.h
3618 done
3619 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3620
3621 case $depmode in
3622 nosideeffect)
3623 # after this tag, mechanisms are not by side-effect, so they'll
3624 # only be used when explicitly requested
3625 if test "x$enable_dependency_tracking" = xyes; then
3626 continue
3627 else
3628 break
3629 fi
3630 ;;
3631 none) break ;;
3632 esac
3633 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3634 # mode. It turns out that the SunPro C++ compiler does not properly
3635 # handle `-M -o', and we need to detect this.
3636 if depmode=$depmode \
3637 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3638 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3639 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3640 >/dev/null 2>conftest.err &&
3641 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3642 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3643 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3644 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3645 # icc doesn't choke on unknown options, it will just issue warnings
3646 # or remarks (even with -Werror). So we grep stderr for any message
3647 # that says an option was ignored or not supported.
3648 # When given -MP, icc 7.0 and 7.1 complain thusly:
3649 # icc: Command line warning: ignoring option '-M'; no argument required
3650 # The diagnosis changed in icc 8.0:
3651 # icc: Command line remark: option '-MP' not supported
3652 if (grep 'ignoring option' conftest.err ||
3653 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3654 am_cv_CC_dependencies_compiler_type=$depmode
3655 break
3656 fi
3657 fi
3658 done
3659
3660 cd ..
3661 rm -rf conftest.dir
3662else
3663 am_cv_CC_dependencies_compiler_type=none
3664fi
3665
3666fi
3667{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3668$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3669CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3670
3671 if
3672 test "x$enable_dependency_tracking" != xno \
3673 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3674 am__fastdepCC_TRUE=
3675 am__fastdepCC_FALSE='#'
3676else
3677 am__fastdepCC_TRUE='#'
3678 am__fastdepCC_FALSE=
3679fi
3680
3681
3682ac_ext=cpp
3683ac_cpp='$CXXCPP $CPPFLAGS'
3684ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3685ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3686ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3687if test -z "$CXX"; then
3688 if test -n "$CCC"; then
3689 CXX=$CCC
3690 else
3691 if test -n "$ac_tool_prefix"; then
3692 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3693 do
3694 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3695set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3696{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3697$as_echo_n "checking for $ac_word... " >&6; }
3698if test "${ac_cv_prog_CXX+set}" = set; then
3699 $as_echo_n "(cached) " >&6
3700else
3701 if test -n "$CXX"; then
3702 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3703else
3704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3705for as_dir in $PATH
3706do
3707 IFS=$as_save_IFS
3708 test -z "$as_dir" && as_dir=.
3709 for ac_exec_ext in '' $ac_executable_extensions; do
3710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3711 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3712 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3713 break 2
3714 fi
3715done
3716done
3717IFS=$as_save_IFS
3718
3719fi
3720fi
3721CXX=$ac_cv_prog_CXX
3722if test -n "$CXX"; then
3723 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
3724$as_echo "$CXX" >&6; }
3725else
3726 { $as_echo "$as_me:$LINENO: result: no" >&5
3727$as_echo "no" >&6; }
3728fi
3729
3730
3731 test -n "$CXX" && break
3732 done
3733fi
3734if test -z "$CXX"; then
3735 ac_ct_CXX=$CXX
3736 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3737do
3738 # Extract the first word of "$ac_prog", so it can be a program name with args.
3739set dummy $ac_prog; ac_word=$2
3740{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3741$as_echo_n "checking for $ac_word... " >&6; }
3742if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3743 $as_echo_n "(cached) " >&6
3744else
3745 if test -n "$ac_ct_CXX"; then
3746 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3747else
3748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3749for as_dir in $PATH
3750do
3751 IFS=$as_save_IFS
3752 test -z "$as_dir" && as_dir=.
3753 for ac_exec_ext in '' $ac_executable_extensions; do
3754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3755 ac_cv_prog_ac_ct_CXX="$ac_prog"
3756 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3757 break 2
3758 fi
3759done
3760done
3761IFS=$as_save_IFS
3762
3763fi
3764fi
3765ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3766if test -n "$ac_ct_CXX"; then
3767 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3768$as_echo "$ac_ct_CXX" >&6; }
3769else
3770 { $as_echo "$as_me:$LINENO: result: no" >&5
3771$as_echo "no" >&6; }
3772fi
3773
3774
3775 test -n "$ac_ct_CXX" && break
3776done
3777
3778 if test "x$ac_ct_CXX" = x; then
3779 CXX="g++"
3780 else
3781 case $cross_compiling:$ac_tool_warned in
3782yes:)
3783{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3784$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3785ac_tool_warned=yes ;;
3786esac
3787 CXX=$ac_ct_CXX
3788 fi
3789fi
3790
3791 fi
3792fi
3793# Provide some information about the compiler.
3794$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3795set X $ac_compile
3796ac_compiler=$2
3797{ (ac_try="$ac_compiler --version >&5"
3798case "(($ac_try" in
3799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3800 *) ac_try_echo=$ac_try;;
3801esac
3802eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3803$as_echo "$ac_try_echo") >&5
3804 (eval "$ac_compiler --version >&5") 2>&5
3805 ac_status=$?
3806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); }
3808{ (ac_try="$ac_compiler -v >&5"
3809case "(($ac_try" in
3810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3811 *) ac_try_echo=$ac_try;;
3812esac
3813eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3814$as_echo "$ac_try_echo") >&5
3815 (eval "$ac_compiler -v >&5") 2>&5
3816 ac_status=$?
3817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); }
3819{ (ac_try="$ac_compiler -V >&5"
3820case "(($ac_try" in
3821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3822 *) ac_try_echo=$ac_try;;
3823esac
3824eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3825$as_echo "$ac_try_echo") >&5
3826 (eval "$ac_compiler -V >&5") 2>&5
3827 ac_status=$?
3828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829 (exit $ac_status); }
3830
3831{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3832$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3833if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3834 $as_echo_n "(cached) " >&6
3835else
3836 cat >conftest.$ac_ext <<_ACEOF
3837/* confdefs.h. */
3838_ACEOF
3839cat confdefs.h >>conftest.$ac_ext
3840cat >>conftest.$ac_ext <<_ACEOF
3841/* end confdefs.h. */
3842
3843int
3844main ()
3845{
3846#ifndef __GNUC__
3847 choke me
3848#endif
3849
3850 ;
3851 return 0;
3852}
3853_ACEOF
3854rm -f conftest.$ac_objext
3855if { (ac_try="$ac_compile"
3856case "(($ac_try" in
3857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3858 *) ac_try_echo=$ac_try;;
3859esac
3860eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3861$as_echo "$ac_try_echo") >&5
3862 (eval "$ac_compile") 2>conftest.er1
3863 ac_status=$?
3864 grep -v '^ *+' conftest.er1 >conftest.err
3865 rm -f conftest.er1
3866 cat conftest.err >&5
3867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); } && {
3869 test -z "$ac_cxx_werror_flag" ||
3870 test ! -s conftest.err
3871 } && test -s conftest.$ac_objext; then
3872 ac_compiler_gnu=yes
3873else
3874 $as_echo "$as_me: failed program was:" >&5
3875sed 's/^/| /' conftest.$ac_ext >&5
3876
3877 ac_compiler_gnu=no
3878fi
3879
3880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3881ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3882
3883fi
3884{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3885$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3886if test $ac_compiler_gnu = yes; then
3887 GXX=yes
3888else
3889 GXX=
3890fi
3891ac_test_CXXFLAGS=${CXXFLAGS+set}
3892ac_save_CXXFLAGS=$CXXFLAGS
3893{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3894$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3895if test "${ac_cv_prog_cxx_g+set}" = set; then
3896 $as_echo_n "(cached) " >&6
3897else
3898 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3899 ac_cxx_werror_flag=yes
3900 ac_cv_prog_cxx_g=no
3901 CXXFLAGS="-g"
3902 cat >conftest.$ac_ext <<_ACEOF
3903/* confdefs.h. */
3904_ACEOF
3905cat confdefs.h >>conftest.$ac_ext
3906cat >>conftest.$ac_ext <<_ACEOF
3907/* end confdefs.h. */
3908
3909int
3910main ()
3911{
3912
3913 ;
3914 return 0;
3915}
3916_ACEOF
3917rm -f conftest.$ac_objext
3918if { (ac_try="$ac_compile"
3919case "(($ac_try" in
3920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3921 *) ac_try_echo=$ac_try;;
3922esac
3923eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3924$as_echo "$ac_try_echo") >&5
3925 (eval "$ac_compile") 2>conftest.er1
3926 ac_status=$?
3927 grep -v '^ *+' conftest.er1 >conftest.err
3928 rm -f conftest.er1
3929 cat conftest.err >&5
3930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931 (exit $ac_status); } && {
3932 test -z "$ac_cxx_werror_flag" ||
3933 test ! -s conftest.err
3934 } && test -s conftest.$ac_objext; then
3935 ac_cv_prog_cxx_g=yes
3936else
3937 $as_echo "$as_me: failed program was:" >&5
3938sed 's/^/| /' conftest.$ac_ext >&5
3939
3940 CXXFLAGS=""
3941 cat >conftest.$ac_ext <<_ACEOF
3942/* confdefs.h. */
3943_ACEOF
3944cat confdefs.h >>conftest.$ac_ext
3945cat >>conftest.$ac_ext <<_ACEOF
3946/* end confdefs.h. */
3947
3948int
3949main ()
3950{
3951
3952 ;
3953 return 0;
3954}
3955_ACEOF
3956rm -f conftest.$ac_objext
3957if { (ac_try="$ac_compile"
3958case "(($ac_try" in
3959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3960 *) ac_try_echo=$ac_try;;
3961esac
3962eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3963$as_echo "$ac_try_echo") >&5
3964 (eval "$ac_compile") 2>conftest.er1
3965 ac_status=$?
3966 grep -v '^ *+' conftest.er1 >conftest.err
3967 rm -f conftest.er1
3968 cat conftest.err >&5
3969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); } && {
3971 test -z "$ac_cxx_werror_flag" ||
3972 test ! -s conftest.err
3973 } && test -s conftest.$ac_objext; then
3974 :
3975else
3976 $as_echo "$as_me: failed program was:" >&5
3977sed 's/^/| /' conftest.$ac_ext >&5
3978
3979 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3980 CXXFLAGS="-g"
3981 cat >conftest.$ac_ext <<_ACEOF
3982/* confdefs.h. */
3983_ACEOF
3984cat confdefs.h >>conftest.$ac_ext
3985cat >>conftest.$ac_ext <<_ACEOF
3986/* end confdefs.h. */
3987
3988int
3989main ()
3990{
3991
3992 ;
3993 return 0;
3994}
3995_ACEOF
3996rm -f conftest.$ac_objext
3997if { (ac_try="$ac_compile"
3998case "(($ac_try" in
3999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4000 *) ac_try_echo=$ac_try;;
4001esac
4002eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4003$as_echo "$ac_try_echo") >&5
4004 (eval "$ac_compile") 2>conftest.er1
4005 ac_status=$?
4006 grep -v '^ *+' conftest.er1 >conftest.err
4007 rm -f conftest.er1
4008 cat conftest.err >&5
4009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); } && {
4011 test -z "$ac_cxx_werror_flag" ||
4012 test ! -s conftest.err
4013 } && test -s conftest.$ac_objext; then
4014 ac_cv_prog_cxx_g=yes
4015else
4016 $as_echo "$as_me: failed program was:" >&5
4017sed 's/^/| /' conftest.$ac_ext >&5
4018
4019
4020fi
4021
4022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4023fi
4024
4025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4026fi
4027
4028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4029 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4030fi
4031{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4032$as_echo "$ac_cv_prog_cxx_g" >&6; }
4033if test "$ac_test_CXXFLAGS" = set; then
4034 CXXFLAGS=$ac_save_CXXFLAGS
4035elif test $ac_cv_prog_cxx_g = yes; then
4036 if test "$GXX" = yes; then
4037 CXXFLAGS="-g -O2"
4038 else
4039 CXXFLAGS="-g"
4040 fi
4041else
4042 if test "$GXX" = yes; then
4043 CXXFLAGS="-O2"
4044 else
4045 CXXFLAGS=
4046 fi
4047fi
4048ac_ext=c
4049ac_cpp='$CPP $CPPFLAGS'
4050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4052ac_compiler_gnu=$ac_cv_c_compiler_gnu
4053
4054depcc="$CXX" am_compiler_list=
4055
4056{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4057$as_echo_n "checking dependency style of $depcc... " >&6; }
4058if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4059 $as_echo_n "(cached) " >&6
4060else
4061 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4062 # We make a subdir and do the tests there. Otherwise we can end up
4063 # making bogus files that we don't know about and never remove. For
4064 # instance it was reported that on HP-UX the gcc test will end up
4065 # making a dummy file named `D' -- because `-MD' means `put the output
4066 # in D'.
4067 mkdir conftest.dir
4068 # Copy depcomp to subdir because otherwise we won't find it if we're
4069 # using a relative directory.
4070 cp "$am_depcomp" conftest.dir
4071 cd conftest.dir
4072 # We will build objects and dependencies in a subdirectory because
4073 # it helps to detect inapplicable dependency modes. For instance
4074 # both Tru64's cc and ICC support -MD to output dependencies as a
4075 # side effect of compilation, but ICC will put the dependencies in
4076 # the current directory while Tru64 will put them in the object
4077 # directory.
4078 mkdir sub
4079
4080 am_cv_CXX_dependencies_compiler_type=none
4081 if test "$am_compiler_list" = ""; then
4082 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4083 fi
4084 for depmode in $am_compiler_list; do
4085 # Setup a source with many dependencies, because some compilers
4086 # like to wrap large dependency lists on column 80 (with \), and
4087 # we should not choose a depcomp mode which is confused by this.
4088 #
4089 # We need to recreate these files for each test, as the compiler may
4090 # overwrite some of them when testing with obscure command lines.
4091 # This happens at least with the AIX C compiler.
4092 : > sub/conftest.c
4093 for i in 1 2 3 4 5 6; do
4094 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4095 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4096 # Solaris 8's {/usr,}/bin/sh.
4097 touch sub/conftst$i.h
4098 done
4099 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4100
4101 case $depmode in
4102 nosideeffect)
4103 # after this tag, mechanisms are not by side-effect, so they'll
4104 # only be used when explicitly requested
4105 if test "x$enable_dependency_tracking" = xyes; then
4106 continue
4107 else
4108 break
4109 fi
4110 ;;
4111 none) break ;;
4112 esac
4113 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4114 # mode. It turns out that the SunPro C++ compiler does not properly
4115 # handle `-M -o', and we need to detect this.
4116 if depmode=$depmode \
4117 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4118 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4119 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4120 >/dev/null 2>conftest.err &&
4121 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4122 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4123 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4124 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4125 # icc doesn't choke on unknown options, it will just issue warnings
4126 # or remarks (even with -Werror). So we grep stderr for any message
4127 # that says an option was ignored or not supported.
4128 # When given -MP, icc 7.0 and 7.1 complain thusly:
4129 # icc: Command line warning: ignoring option '-M'; no argument required
4130 # The diagnosis changed in icc 8.0:
4131 # icc: Command line remark: option '-MP' not supported
4132 if (grep 'ignoring option' conftest.err ||
4133 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4134 am_cv_CXX_dependencies_compiler_type=$depmode
4135 break
4136 fi
4137 fi
4138 done
4139
4140 cd ..
4141 rm -rf conftest.dir
4142else
4143 am_cv_CXX_dependencies_compiler_type=none
4144fi
4145
4146fi
4147{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4148$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4149CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4150
4151 if
4152 test "x$enable_dependency_tracking" != xno \
4153 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4154 am__fastdepCXX_TRUE=
4155 am__fastdepCXX_FALSE='#'
4156else
4157 am__fastdepCXX_TRUE='#'
4158 am__fastdepCXX_FALSE=
4159fi
4160
4161
4162case `pwd` in
4163 *\ * | *\ *)
4164 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4165$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4166esac
4167
4168
4169
4170macro_version='2.2.6'
4171macro_revision='1.3012'
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185ltmain="$ac_aux_dir/ltmain.sh"
4186
4187# Make sure we can run config.sub.
4188$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4189 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4190$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4191 { (exit 1); exit 1; }; }
4192
4193{ $as_echo "$as_me:$LINENO: checking build system type" >&5
4194$as_echo_n "checking build system type... " >&6; }
4195if test "${ac_cv_build+set}" = set; then
4196 $as_echo_n "(cached) " >&6
4197else
4198 ac_build_alias=$build_alias
4199test "x$ac_build_alias" = x &&
4200 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4201test "x$ac_build_alias" = x &&
4202 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4203$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4204 { (exit 1); exit 1; }; }
4205ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4206 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4207$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4208 { (exit 1); exit 1; }; }
4209
4210fi
4211{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4212$as_echo "$ac_cv_build" >&6; }
4213case $ac_cv_build in
4214*-*-*) ;;
4215*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4216$as_echo "$as_me: error: invalid value of canonical build" >&2;}
4217 { (exit 1); exit 1; }; };;
4218esac
4219build=$ac_cv_build
4220ac_save_IFS=$IFS; IFS='-'
4221set x $ac_cv_build
4222shift
4223build_cpu=$1
4224build_vendor=$2
4225shift; shift
4226# Remember, the first character of IFS is used to create $*,
4227# except with old shells:
4228build_os=$*
4229IFS=$ac_save_IFS
4230case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4231
4232
4233{ $as_echo "$as_me:$LINENO: checking host system type" >&5
4234$as_echo_n "checking host system type... " >&6; }
4235if test "${ac_cv_host+set}" = set; then
4236 $as_echo_n "(cached) " >&6
4237else
4238 if test "x$host_alias" = x; then
4239 ac_cv_host=$ac_cv_build
4240else
4241 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4242 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4243$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4244 { (exit 1); exit 1; }; }
4245fi
4246
4247fi
4248{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4249$as_echo "$ac_cv_host" >&6; }
4250case $ac_cv_host in
4251*-*-*) ;;
4252*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4253$as_echo "$as_me: error: invalid value of canonical host" >&2;}
4254 { (exit 1); exit 1; }; };;
4255esac
4256host=$ac_cv_host
4257ac_save_IFS=$IFS; IFS='-'
4258set x $ac_cv_host
4259shift
4260host_cpu=$1
4261host_vendor=$2
4262shift; shift
4263# Remember, the first character of IFS is used to create $*,
4264# except with old shells:
4265host_os=$*
4266IFS=$ac_save_IFS
4267case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4268
4269
4270{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4271$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4272if test "${ac_cv_path_SED+set}" = set; then
4273 $as_echo_n "(cached) " >&6
4274else
4275 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4276 for ac_i in 1 2 3 4 5 6 7; do
4277 ac_script="$ac_script$as_nl$ac_script"
4278 done
4279 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4280 $as_unset ac_script || ac_script=
4281 if test -z "$SED"; then
4282 ac_path_SED_found=false
4283 # Loop through the user's path and test for each of PROGNAME-LIST
4284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4285for as_dir in $PATH
4286do
4287 IFS=$as_save_IFS
4288 test -z "$as_dir" && as_dir=.
4289 for ac_prog in sed gsed; do
4290 for ac_exec_ext in '' $ac_executable_extensions; do
4291 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4292 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4293# Check for GNU ac_path_SED and select it if it is found.
4294 # Check for GNU $ac_path_SED
4295case `"$ac_path_SED" --version 2>&1` in
4296*GNU*)
4297 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4298*)
4299 ac_count=0
4300 $as_echo_n 0123456789 >"conftest.in"
4301 while :
4302 do
4303 cat "conftest.in" "conftest.in" >"conftest.tmp"
4304 mv "conftest.tmp" "conftest.in"
4305 cp "conftest.in" "conftest.nl"
4306 $as_echo '' >> "conftest.nl"
4307 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4308 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4309 ac_count=`expr $ac_count + 1`
4310 if test $ac_count -gt ${ac_path_SED_max-0}; then
4311 # Best one so far, save it but keep looking for a better one
4312 ac_cv_path_SED="$ac_path_SED"
4313 ac_path_SED_max=$ac_count
4314 fi
4315 # 10*(2^10) chars as input seems more than enough
4316 test $ac_count -gt 10 && break
4317 done
4318 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4319esac
4320
4321 $ac_path_SED_found && break 3
4322 done
4323 done
4324done
4325IFS=$as_save_IFS
4326 if test -z "$ac_cv_path_SED"; then
4327 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4328$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4329 { (exit 1); exit 1; }; }
4330 fi
4331else
4332 ac_cv_path_SED=$SED
4333fi
4334
4335fi
4336{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4337$as_echo "$ac_cv_path_SED" >&6; }
4338 SED="$ac_cv_path_SED"
4339 rm -f conftest.sed
4340
4341test -z "$SED" && SED=sed
4342Xsed="$SED -e 1s/^X//"
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4355$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4356if test "${ac_cv_path_GREP+set}" = set; then
4357 $as_echo_n "(cached) " >&6
4358else
4359 if test -z "$GREP"; then
4360 ac_path_GREP_found=false
4361 # Loop through the user's path and test for each of PROGNAME-LIST
4362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4363for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4364do
4365 IFS=$as_save_IFS
4366 test -z "$as_dir" && as_dir=.
4367 for ac_prog in grep ggrep; do
4368 for ac_exec_ext in '' $ac_executable_extensions; do
4369 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4370 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4371# Check for GNU ac_path_GREP and select it if it is found.
4372 # Check for GNU $ac_path_GREP
4373case `"$ac_path_GREP" --version 2>&1` in
4374*GNU*)
4375 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4376*)
4377 ac_count=0
4378 $as_echo_n 0123456789 >"conftest.in"
4379 while :
4380 do
4381 cat "conftest.in" "conftest.in" >"conftest.tmp"
4382 mv "conftest.tmp" "conftest.in"
4383 cp "conftest.in" "conftest.nl"
4384 $as_echo 'GREP' >> "conftest.nl"
4385 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4386 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4387 ac_count=`expr $ac_count + 1`
4388 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4389 # Best one so far, save it but keep looking for a better one
4390 ac_cv_path_GREP="$ac_path_GREP"
4391 ac_path_GREP_max=$ac_count
4392 fi
4393 # 10*(2^10) chars as input seems more than enough
4394 test $ac_count -gt 10 && break
4395 done
4396 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4397esac
4398
4399 $ac_path_GREP_found && break 3
4400 done
4401 done
4402done
4403IFS=$as_save_IFS
4404 if test -z "$ac_cv_path_GREP"; then
4405 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4406$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4407 { (exit 1); exit 1; }; }
4408 fi
4409else
4410 ac_cv_path_GREP=$GREP
4411fi
4412
4413fi
4414{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4415$as_echo "$ac_cv_path_GREP" >&6; }
4416 GREP="$ac_cv_path_GREP"
4417
4418
4419{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4420$as_echo_n "checking for egrep... " >&6; }
4421if test "${ac_cv_path_EGREP+set}" = set; then
4422 $as_echo_n "(cached) " >&6
4423else
4424 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4425 then ac_cv_path_EGREP="$GREP -E"
4426 else
4427 if test -z "$EGREP"; then
4428 ac_path_EGREP_found=false
4429 # Loop through the user's path and test for each of PROGNAME-LIST
4430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4431for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4432do
4433 IFS=$as_save_IFS
4434 test -z "$as_dir" && as_dir=.
4435 for ac_prog in egrep; do
4436 for ac_exec_ext in '' $ac_executable_extensions; do
4437 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4438 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4439# Check for GNU ac_path_EGREP and select it if it is found.
4440 # Check for GNU $ac_path_EGREP
4441case `"$ac_path_EGREP" --version 2>&1` in
4442*GNU*)
4443 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4444*)
4445 ac_count=0
4446 $as_echo_n 0123456789 >"conftest.in"
4447 while :
4448 do
4449 cat "conftest.in" "conftest.in" >"conftest.tmp"
4450 mv "conftest.tmp" "conftest.in"
4451 cp "conftest.in" "conftest.nl"
4452 $as_echo 'EGREP' >> "conftest.nl"
4453 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4454 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4455 ac_count=`expr $ac_count + 1`
4456 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4457 # Best one so far, save it but keep looking for a better one
4458 ac_cv_path_EGREP="$ac_path_EGREP"
4459 ac_path_EGREP_max=$ac_count
4460 fi
4461 # 10*(2^10) chars as input seems more than enough
4462 test $ac_count -gt 10 && break
4463 done
4464 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4465esac
4466
4467 $ac_path_EGREP_found && break 3
4468 done
4469 done
4470done
4471IFS=$as_save_IFS
4472 if test -z "$ac_cv_path_EGREP"; then
4473 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4474$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4475 { (exit 1); exit 1; }; }
4476 fi
4477else
4478 ac_cv_path_EGREP=$EGREP
4479fi
4480
4481 fi
4482fi
4483{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4484$as_echo "$ac_cv_path_EGREP" >&6; }
4485 EGREP="$ac_cv_path_EGREP"
4486
4487
4488{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4489$as_echo_n "checking for fgrep... " >&6; }
4490if test "${ac_cv_path_FGREP+set}" = set; then
4491 $as_echo_n "(cached) " >&6
4492else
4493 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4494 then ac_cv_path_FGREP="$GREP -F"
4495 else
4496 if test -z "$FGREP"; then
4497 ac_path_FGREP_found=false
4498 # Loop through the user's path and test for each of PROGNAME-LIST
4499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4500for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4501do
4502 IFS=$as_save_IFS
4503 test -z "$as_dir" && as_dir=.
4504 for ac_prog in fgrep; do
4505 for ac_exec_ext in '' $ac_executable_extensions; do
4506 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4507 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4508# Check for GNU ac_path_FGREP and select it if it is found.
4509 # Check for GNU $ac_path_FGREP
4510case `"$ac_path_FGREP" --version 2>&1` in
4511*GNU*)
4512 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4513*)
4514 ac_count=0
4515 $as_echo_n 0123456789 >"conftest.in"
4516 while :
4517 do
4518 cat "conftest.in" "conftest.in" >"conftest.tmp"
4519 mv "conftest.tmp" "conftest.in"
4520 cp "conftest.in" "conftest.nl"
4521 $as_echo 'FGREP' >> "conftest.nl"
4522 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4523 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4524 ac_count=`expr $ac_count + 1`
4525 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4526 # Best one so far, save it but keep looking for a better one
4527 ac_cv_path_FGREP="$ac_path_FGREP"
4528 ac_path_FGREP_max=$ac_count
4529 fi
4530 # 10*(2^10) chars as input seems more than enough
4531 test $ac_count -gt 10 && break
4532 done
4533 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4534esac
4535
4536 $ac_path_FGREP_found && break 3
4537 done
4538 done
4539done
4540IFS=$as_save_IFS
4541 if test -z "$ac_cv_path_FGREP"; then
4542 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4543$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4544 { (exit 1); exit 1; }; }
4545 fi
4546else
4547 ac_cv_path_FGREP=$FGREP
4548fi
4549
4550 fi
4551fi
4552{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4553$as_echo "$ac_cv_path_FGREP" >&6; }
4554 FGREP="$ac_cv_path_FGREP"
4555
4556
4557test -z "$GREP" && GREP=grep
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577# Check whether --with-gnu-ld was given.
4578if test "${with_gnu_ld+set}" = set; then
4579 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4580else
4581 with_gnu_ld=no
4582fi
4583
4584ac_prog=ld
4585if test "$GCC" = yes; then
4586 # Check if gcc -print-prog-name=ld gives a path.
4587 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4588$as_echo_n "checking for ld used by $CC... " >&6; }
4589 case $host in
4590 *-*-mingw*)
4591 # gcc leaves a trailing carriage return which upsets mingw
4592 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4593 *)
4594 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4595 esac
4596 case $ac_prog in
4597 # Accept absolute paths.
4598 [\\/]* | ?:[\\/]*)
4599 re_direlt='/[^/][^/]*/\.\./'
4600 # Canonicalize the pathname of ld
4601 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4602 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4603 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4604 done
4605 test -z "$LD" && LD="$ac_prog"
4606 ;;
4607 "")
4608 # If it fails, then pretend we aren't using GCC.
4609 ac_prog=ld
4610 ;;
4611 *)
4612 # If it is relative, then search for the first ld in PATH.
4613 with_gnu_ld=unknown
4614 ;;
4615 esac
4616elif test "$with_gnu_ld" = yes; then
4617 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4618$as_echo_n "checking for GNU ld... " >&6; }
4619else
4620 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4621$as_echo_n "checking for non-GNU ld... " >&6; }
4622fi
4623if test "${lt_cv_path_LD+set}" = set; then
4624 $as_echo_n "(cached) " >&6
4625else
4626 if test -z "$LD"; then
4627 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4628 for ac_dir in $PATH; do
4629 IFS="$lt_save_ifs"
4630 test -z "$ac_dir" && ac_dir=.
4631 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4632 lt_cv_path_LD="$ac_dir/$ac_prog"
4633 # Check to see if the program is GNU ld. I'd rather use --version,
4634 # but apparently some variants of GNU ld only accept -v.
4635 # Break only if it was the GNU/non-GNU ld that we prefer.
4636 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4637 *GNU* | *'with BFD'*)
4638 test "$with_gnu_ld" != no && break
4639 ;;
4640 *)
4641 test "$with_gnu_ld" != yes && break
4642 ;;
4643 esac
4644 fi
4645 done
4646 IFS="$lt_save_ifs"
4647else
4648 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4649fi
4650fi
4651
4652LD="$lt_cv_path_LD"
4653if test -n "$LD"; then
4654 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4655$as_echo "$LD" >&6; }
4656else
4657 { $as_echo "$as_me:$LINENO: result: no" >&5
4658$as_echo "no" >&6; }
4659fi
4660test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4661$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4662 { (exit 1); exit 1; }; }
4663{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4664$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4665if test "${lt_cv_prog_gnu_ld+set}" = set; then
4666 $as_echo_n "(cached) " >&6
4667else
4668 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4669case `$LD -v 2>&1 </dev/null` in
4670*GNU* | *'with BFD'*)
4671 lt_cv_prog_gnu_ld=yes
4672 ;;
4673*)
4674 lt_cv_prog_gnu_ld=no
4675 ;;
4676esac
4677fi
4678{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4679$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4680with_gnu_ld=$lt_cv_prog_gnu_ld
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4691$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4692if test "${lt_cv_path_NM+set}" = set; then
4693 $as_echo_n "(cached) " >&6
4694else
4695 if test -n "$NM"; then
4696 # Let the user override the test.
4697 lt_cv_path_NM="$NM"
4698else
4699 lt_nm_to_check="${ac_tool_prefix}nm"
4700 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4701 lt_nm_to_check="$lt_nm_to_check nm"
4702 fi
4703 for lt_tmp_nm in $lt_nm_to_check; do
4704 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4705 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4706 IFS="$lt_save_ifs"
4707 test -z "$ac_dir" && ac_dir=.
4708 tmp_nm="$ac_dir/$lt_tmp_nm"
4709 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4710 # Check to see if the nm accepts a BSD-compat flag.
4711 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4712 # nm: unknown option "B" ignored
4713 # Tru64's nm complains that /dev/null is an invalid object file
4714 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4715 */dev/null* | *'Invalid file or object type'*)
4716 lt_cv_path_NM="$tmp_nm -B"
4717 break
4718 ;;
4719 *)
4720 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4721 */dev/null*)
4722 lt_cv_path_NM="$tmp_nm -p"
4723 break
4724 ;;
4725 *)
4726 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4727 continue # so that we can try to find one that supports BSD flags
4728 ;;
4729 esac
4730 ;;
4731 esac
4732 fi
4733 done
4734 IFS="$lt_save_ifs"
4735 done
4736 : ${lt_cv_path_NM=no}
4737fi
4738fi
4739{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4740$as_echo "$lt_cv_path_NM" >&6; }
4741if test "$lt_cv_path_NM" != "no"; then
4742 NM="$lt_cv_path_NM"
4743else
4744 # Didn't find any BSD compatible name lister, look for dumpbin.
4745 if test -n "$ac_tool_prefix"; then
4746 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4747 do
4748 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4749set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4750{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4751$as_echo_n "checking for $ac_word... " >&6; }
4752if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4753 $as_echo_n "(cached) " >&6
4754else
4755 if test -n "$DUMPBIN"; then
4756 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4757else
4758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4759for as_dir in $PATH
4760do
4761 IFS=$as_save_IFS
4762 test -z "$as_dir" && as_dir=.
4763 for ac_exec_ext in '' $ac_executable_extensions; do
4764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4765 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4766 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4767 break 2
4768 fi
4769done
4770done
4771IFS=$as_save_IFS
4772
4773fi
4774fi
4775DUMPBIN=$ac_cv_prog_DUMPBIN
4776if test -n "$DUMPBIN"; then
4777 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4778$as_echo "$DUMPBIN" >&6; }
4779else
4780 { $as_echo "$as_me:$LINENO: result: no" >&5
4781$as_echo "no" >&6; }
4782fi
4783
4784
4785 test -n "$DUMPBIN" && break
4786 done
4787fi
4788if test -z "$DUMPBIN"; then
4789 ac_ct_DUMPBIN=$DUMPBIN
4790 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4791do
4792 # Extract the first word of "$ac_prog", so it can be a program name with args.
4793set dummy $ac_prog; ac_word=$2
4794{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4795$as_echo_n "checking for $ac_word... " >&6; }
4796if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4797 $as_echo_n "(cached) " >&6
4798else
4799 if test -n "$ac_ct_DUMPBIN"; then
4800 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4801else
4802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4803for as_dir in $PATH
4804do
4805 IFS=$as_save_IFS
4806 test -z "$as_dir" && as_dir=.
4807 for ac_exec_ext in '' $ac_executable_extensions; do
4808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4809 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4810 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4811 break 2
4812 fi
4813done
4814done
4815IFS=$as_save_IFS
4816
4817fi
4818fi
4819ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4820if test -n "$ac_ct_DUMPBIN"; then
4821 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4822$as_echo "$ac_ct_DUMPBIN" >&6; }
4823else
4824 { $as_echo "$as_me:$LINENO: result: no" >&5
4825$as_echo "no" >&6; }
4826fi
4827
4828
4829 test -n "$ac_ct_DUMPBIN" && break
4830done
4831
4832 if test "x$ac_ct_DUMPBIN" = x; then
4833 DUMPBIN=":"
4834 else
4835 case $cross_compiling:$ac_tool_warned in
4836yes:)
4837{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4838$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4839ac_tool_warned=yes ;;
4840esac
4841 DUMPBIN=$ac_ct_DUMPBIN
4842 fi
4843fi
4844
4845
4846 if test "$DUMPBIN" != ":"; then
4847 NM="$DUMPBIN"
4848 fi
4849fi
4850test -z "$NM" && NM=nm
4851
4852
4853
4854
4855
4856
4857{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4858$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4859if test "${lt_cv_nm_interface+set}" = set; then
4860 $as_echo_n "(cached) " >&6
4861else
4862 lt_cv_nm_interface="BSD nm"
4863 echo "int some_variable = 0;" > conftest.$ac_ext
4864 (eval echo "\"\$as_me:4864: $ac_compile\"" >&5)
4865 (eval "$ac_compile" 2>conftest.err)
4866 cat conftest.err >&5
4867 (eval echo "\"\$as_me:4867: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4868 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4869 cat conftest.err >&5
4870 (eval echo "\"\$as_me:4870: output\"" >&5)
4871 cat conftest.out >&5
4872 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4873 lt_cv_nm_interface="MS dumpbin"
4874 fi
4875 rm -f conftest*
4876fi
4877{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4878$as_echo "$lt_cv_nm_interface" >&6; }
4879
4880{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4881$as_echo_n "checking whether ln -s works... " >&6; }
4882LN_S=$as_ln_s
4883if test "$LN_S" = "ln -s"; then
4884 { $as_echo "$as_me:$LINENO: result: yes" >&5
4885$as_echo "yes" >&6; }
4886else
4887 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4888$as_echo "no, using $LN_S" >&6; }
4889fi
4890
4891# find the maximum length of command line arguments
4892{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4893$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4894if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4895 $as_echo_n "(cached) " >&6
4896else
4897 i=0
4898 teststring="ABCD"
4899
4900 case $build_os in
4901 msdosdjgpp*)
4902 # On DJGPP, this test can blow up pretty badly due to problems in libc
4903 # (any single argument exceeding 2000 bytes causes a buffer overrun
4904 # during glob expansion). Even if it were fixed, the result of this
4905 # check would be larger than it should be.
4906 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4907 ;;
4908
4909 gnu*)
4910 # Under GNU Hurd, this test is not required because there is
4911 # no limit to the length of command line arguments.
4912 # Libtool will interpret -1 as no limit whatsoever
4913 lt_cv_sys_max_cmd_len=-1;
4914 ;;
4915
4916 cygwin* | mingw* | cegcc*)
4917 # On Win9x/ME, this test blows up -- it succeeds, but takes
4918 # about 5 minutes as the teststring grows exponentially.
4919 # Worse, since 9x/ME are not pre-emptively multitasking,
4920 # you end up with a "frozen" computer, even though with patience
4921 # the test eventually succeeds (with a max line length of 256k).
4922 # Instead, let's just punt: use the minimum linelength reported by
4923 # all of the supported platforms: 8192 (on NT/2K/XP).
4924 lt_cv_sys_max_cmd_len=8192;
4925 ;;
4926
4927 amigaos*)
4928 # On AmigaOS with pdksh, this test takes hours, literally.
4929 # So we just punt and use a minimum line length of 8192.
4930 lt_cv_sys_max_cmd_len=8192;
4931 ;;
4932
4933 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4934 # This has been around since 386BSD, at least. Likely further.
4935 if test -x /sbin/sysctl; then
4936 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4937 elif test -x /usr/sbin/sysctl; then
4938 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4939 else
4940 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4941 fi
4942 # And add a safety zone
4943 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4944 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4945 ;;
4946
4947 interix*)
4948 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4949 lt_cv_sys_max_cmd_len=196608
4950 ;;
4951
4952 osf*)
4953 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4954 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4955 # nice to cause kernel panics so lets avoid the loop below.
4956 # First set a reasonable default.
4957 lt_cv_sys_max_cmd_len=16384
4958 #
4959 if test -x /sbin/sysconfig; then
4960 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4961 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4962 esac
4963 fi
4964 ;;
4965 sco3.2v5*)
4966 lt_cv_sys_max_cmd_len=102400
4967 ;;
4968 sysv5* | sco5v6* | sysv4.2uw2*)
4969 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4970 if test -n "$kargmax"; then
4971 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4972 else
4973 lt_cv_sys_max_cmd_len=32768
4974 fi
4975 ;;
4976 *)
4977 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4978 if test -n "$lt_cv_sys_max_cmd_len"; then
4979 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4980 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4981 else
4982 # Make teststring a little bigger before we do anything with it.
4983 # a 1K string should be a reasonable start.
4984 for i in 1 2 3 4 5 6 7 8 ; do
4985 teststring=$teststring$teststring
4986 done
4987 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4988 # If test is not a shell built-in, we'll probably end up computing a
4989 # maximum length that is only half of the actual maximum length, but
4990 # we can't tell.
4991 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4992 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4993 test $i != 17 # 1/2 MB should be enough
4994 do
4995 i=`expr $i + 1`
4996 teststring=$teststring$teststring
4997 done
4998 # Only check the string length outside the loop.
4999 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5000 teststring=
5001 # Add a significant safety factor because C++ compilers can tack on
5002 # massive amounts of additional arguments before passing them to the
5003 # linker. It appears as though 1/2 is a usable value.
5004 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5005 fi
5006 ;;
5007 esac
5008
5009fi
5010
5011if test -n $lt_cv_sys_max_cmd_len ; then
5012 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5013$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5014else
5015 { $as_echo "$as_me:$LINENO: result: none" >&5
5016$as_echo "none" >&6; }
5017fi
5018max_cmd_len=$lt_cv_sys_max_cmd_len
5019
5020
5021
5022
5023
5024
5025: ${CP="cp -f"}
5026: ${MV="mv -f"}
5027: ${RM="rm -f"}
5028
5029{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5030$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5031# Try some XSI features
5032xsi_shell=no
5033( _lt_dummy="a/b/c"
5034 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5035 = c,a/b,, \
5036 && eval 'test $(( 1 + 1 )) -eq 2 \
5037 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5038 && xsi_shell=yes
5039{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
5040$as_echo "$xsi_shell" >&6; }
5041
5042
5043{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5044$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5045lt_shell_append=no
5046( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5047 >/dev/null 2>&1 \
5048 && lt_shell_append=yes
5049{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5050$as_echo "$lt_shell_append" >&6; }
5051
5052
5053if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5054 lt_unset=unset
5055else
5056 lt_unset=false
5057fi
5058
5059
5060
5061
5062
5063# test EBCDIC or ASCII
5064case `echo X|tr X '\101'` in
5065 A) # ASCII based system
5066 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5067 lt_SP2NL='tr \040 \012'
5068 lt_NL2SP='tr \015\012 \040\040'
5069 ;;
5070 *) # EBCDIC based system
5071 lt_SP2NL='tr \100 \n'
5072 lt_NL2SP='tr \r\n \100\100'
5073 ;;
5074esac
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5085$as_echo_n "checking for $LD option to reload object files... " >&6; }
5086if test "${lt_cv_ld_reload_flag+set}" = set; then
5087 $as_echo_n "(cached) " >&6
5088else
5089 lt_cv_ld_reload_flag='-r'
5090fi
5091{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5092$as_echo "$lt_cv_ld_reload_flag" >&6; }
5093reload_flag=$lt_cv_ld_reload_flag
5094case $reload_flag in
5095"" | " "*) ;;
5096*) reload_flag=" $reload_flag" ;;
5097esac
5098reload_cmds='$LD$reload_flag -o $output$reload_objs'
5099case $host_os in
5100 darwin*)
5101 if test "$GCC" = yes; then
5102 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5103 else
5104 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5105 fi
5106 ;;
5107esac
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117if test -n "$ac_tool_prefix"; then
5118 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5119set dummy ${ac_tool_prefix}objdump; ac_word=$2
5120{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5121$as_echo_n "checking for $ac_word... " >&6; }
5122if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5123 $as_echo_n "(cached) " >&6
5124else
5125 if test -n "$OBJDUMP"; then
5126 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5127else
5128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5129for as_dir in $PATH
5130do
5131 IFS=$as_save_IFS
5132 test -z "$as_dir" && as_dir=.
5133 for ac_exec_ext in '' $ac_executable_extensions; do
5134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5135 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5136 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5137 break 2
5138 fi
5139done
5140done
5141IFS=$as_save_IFS
5142
5143fi
5144fi
5145OBJDUMP=$ac_cv_prog_OBJDUMP
5146if test -n "$OBJDUMP"; then
5147 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5148$as_echo "$OBJDUMP" >&6; }
5149else
5150 { $as_echo "$as_me:$LINENO: result: no" >&5
5151$as_echo "no" >&6; }
5152fi
5153
5154
5155fi
5156if test -z "$ac_cv_prog_OBJDUMP"; then
5157 ac_ct_OBJDUMP=$OBJDUMP
5158 # Extract the first word of "objdump", so it can be a program name with args.
5159set dummy objdump; ac_word=$2
5160{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5161$as_echo_n "checking for $ac_word... " >&6; }
5162if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5163 $as_echo_n "(cached) " >&6
5164else
5165 if test -n "$ac_ct_OBJDUMP"; then
5166 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5167else
5168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5169for as_dir in $PATH
5170do
5171 IFS=$as_save_IFS
5172 test -z "$as_dir" && as_dir=.
5173 for ac_exec_ext in '' $ac_executable_extensions; do
5174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5175 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5176 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5177 break 2
5178 fi
5179done
5180done
5181IFS=$as_save_IFS
5182
5183fi
5184fi
5185ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5186if test -n "$ac_ct_OBJDUMP"; then
5187 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5188$as_echo "$ac_ct_OBJDUMP" >&6; }
5189else
5190 { $as_echo "$as_me:$LINENO: result: no" >&5
5191$as_echo "no" >&6; }
5192fi
5193
5194 if test "x$ac_ct_OBJDUMP" = x; then
5195 OBJDUMP="false"
5196 else
5197 case $cross_compiling:$ac_tool_warned in
5198yes:)
5199{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5200$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5201ac_tool_warned=yes ;;
5202esac
5203 OBJDUMP=$ac_ct_OBJDUMP
5204 fi
5205else
5206 OBJDUMP="$ac_cv_prog_OBJDUMP"
5207fi
5208
5209test -z "$OBJDUMP" && OBJDUMP=objdump
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5220$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5221if test "${lt_cv_deplibs_check_method+set}" = set; then
5222 $as_echo_n "(cached) " >&6
5223else
5224 lt_cv_file_magic_cmd='$MAGIC_CMD'
5225lt_cv_file_magic_test_file=
5226lt_cv_deplibs_check_method='unknown'
5227# Need to set the preceding variable on all platforms that support
5228# interlibrary dependencies.
5229# 'none' -- dependencies not supported.
5230# `unknown' -- same as none, but documents that we really don't know.
5231# 'pass_all' -- all dependencies passed with no checks.
5232# 'test_compile' -- check by making test program.
5233# 'file_magic [[regex]]' -- check by looking for files in library path
5234# which responds to the $file_magic_cmd with a given extended regex.
5235# If you have `file' or equivalent on your system and you're not sure
5236# whether `pass_all' will *always* work, you probably want this one.
5237
5238case $host_os in
5239aix[4-9]*)
5240 lt_cv_deplibs_check_method=pass_all
5241 ;;
5242
5243beos*)
5244 lt_cv_deplibs_check_method=pass_all
5245 ;;
5246
5247bsdi[45]*)
5248 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5249 lt_cv_file_magic_cmd='/usr/bin/file -L'
5250 lt_cv_file_magic_test_file=/shlib/libc.so
5251 ;;
5252
5253cygwin*)
5254 # func_win32_libid is a shell function defined in ltmain.sh
5255 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5256 lt_cv_file_magic_cmd='func_win32_libid'
5257 ;;
5258
5259mingw* | pw32*)
5260 # Base MSYS/MinGW do not provide the 'file' command needed by
5261 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5262 # unless we find 'file', for example because we are cross-compiling.
5263 if ( file / ) >/dev/null 2>&1; then
5264 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5265 lt_cv_file_magic_cmd='func_win32_libid'
5266 else
5267 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5268 lt_cv_file_magic_cmd='$OBJDUMP -f'
5269 fi
5270 ;;
5271
5272cegcc)
5273 # use the weaker test based on 'objdump'. See mingw*.
5274 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5275 lt_cv_file_magic_cmd='$OBJDUMP -f'
5276 ;;
5277
5278darwin* | rhapsody*)
5279 lt_cv_deplibs_check_method=pass_all
5280 ;;
5281
5282freebsd* | dragonfly*)
5283 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5284 case $host_cpu in
5285 i*86 )
5286 # Not sure whether the presence of OpenBSD here was a mistake.
5287 # Let's accept both of them until this is cleared up.
5288 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5289 lt_cv_file_magic_cmd=/usr/bin/file
5290 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5291 ;;
5292 esac
5293 else
5294 lt_cv_deplibs_check_method=pass_all
5295 fi
5296 ;;
5297
5298gnu*)
5299 lt_cv_deplibs_check_method=pass_all
5300 ;;
5301
5302hpux10.20* | hpux11*)
5303 lt_cv_file_magic_cmd=/usr/bin/file
5304 case $host_cpu in
5305 ia64*)
5306 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5307 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5308 ;;
5309 hppa*64*)
5310 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]'
5311 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5312 ;;
5313 *)
5314 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5315 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5316 ;;
5317 esac
5318 ;;
5319
5320interix[3-9]*)
5321 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5322 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5323 ;;
5324
5325irix5* | irix6* | nonstopux*)
5326 case $LD in
5327 *-32|*"-32 ") libmagic=32-bit;;
5328 *-n32|*"-n32 ") libmagic=N32;;
5329 *-64|*"-64 ") libmagic=64-bit;;
5330 *) libmagic=never-match;;
5331 esac
5332 lt_cv_deplibs_check_method=pass_all
5333 ;;
5334
5335# This must be Linux ELF.
5336linux* | k*bsd*-gnu)
5337 lt_cv_deplibs_check_method=pass_all
5338 ;;
5339
5340netbsd*)
5341 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5342 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5343 else
5344 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5345 fi
5346 ;;
5347
5348newos6*)
5349 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5350 lt_cv_file_magic_cmd=/usr/bin/file
5351 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5352 ;;
5353
5354*nto* | *qnx*)
5355 lt_cv_deplibs_check_method=pass_all
5356 ;;
5357
5358openbsd*)
5359 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5360 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5361 else
5362 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5363 fi
5364 ;;
5365
5366osf3* | osf4* | osf5*)
5367 lt_cv_deplibs_check_method=pass_all
5368 ;;
5369
5370rdos*)
5371 lt_cv_deplibs_check_method=pass_all
5372 ;;
5373
5374solaris*)
5375 lt_cv_deplibs_check_method=pass_all
5376 ;;
5377
5378sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5379 lt_cv_deplibs_check_method=pass_all
5380 ;;
5381
5382sysv4 | sysv4.3*)
5383 case $host_vendor in
5384 motorola)
5385 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]'
5386 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5387 ;;
5388 ncr)
5389 lt_cv_deplibs_check_method=pass_all
5390 ;;
5391 sequent)
5392 lt_cv_file_magic_cmd='/bin/file'
5393 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5394 ;;
5395 sni)
5396 lt_cv_file_magic_cmd='/bin/file'
5397 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5398 lt_cv_file_magic_test_file=/lib/libc.so
5399 ;;
5400 siemens)
5401 lt_cv_deplibs_check_method=pass_all
5402 ;;
5403 pc)
5404 lt_cv_deplibs_check_method=pass_all
5405 ;;
5406 esac
5407 ;;
5408
5409tpf*)
5410 lt_cv_deplibs_check_method=pass_all
5411 ;;
5412esac
5413
5414fi
5415{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5416$as_echo "$lt_cv_deplibs_check_method" >&6; }
5417file_magic_cmd=$lt_cv_file_magic_cmd
5418deplibs_check_method=$lt_cv_deplibs_check_method
5419test -z "$deplibs_check_method" && deplibs_check_method=unknown
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432if test -n "$ac_tool_prefix"; then
5433 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5434set dummy ${ac_tool_prefix}ar; ac_word=$2
5435{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5436$as_echo_n "checking for $ac_word... " >&6; }
5437if test "${ac_cv_prog_AR+set}" = set; then
5438 $as_echo_n "(cached) " >&6
5439else
5440 if test -n "$AR"; then
5441 ac_cv_prog_AR="$AR" # Let the user override the test.
5442else
5443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5444for as_dir in $PATH
5445do
5446 IFS=$as_save_IFS
5447 test -z "$as_dir" && as_dir=.
5448 for ac_exec_ext in '' $ac_executable_extensions; do
5449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5450 ac_cv_prog_AR="${ac_tool_prefix}ar"
5451 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5452 break 2
5453 fi
5454done
5455done
5456IFS=$as_save_IFS
5457
5458fi
5459fi
5460AR=$ac_cv_prog_AR
5461if test -n "$AR"; then
5462 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5463$as_echo "$AR" >&6; }
5464else
5465 { $as_echo "$as_me:$LINENO: result: no" >&5
5466$as_echo "no" >&6; }
5467fi
5468
5469
5470fi
5471if test -z "$ac_cv_prog_AR"; then
5472 ac_ct_AR=$AR
5473 # Extract the first word of "ar", so it can be a program name with args.
5474set dummy ar; ac_word=$2
5475{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5476$as_echo_n "checking for $ac_word... " >&6; }
5477if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5478 $as_echo_n "(cached) " >&6
5479else
5480 if test -n "$ac_ct_AR"; then
5481 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5482else
5483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5484for as_dir in $PATH
5485do
5486 IFS=$as_save_IFS
5487 test -z "$as_dir" && as_dir=.
5488 for ac_exec_ext in '' $ac_executable_extensions; do
5489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5490 ac_cv_prog_ac_ct_AR="ar"
5491 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5492 break 2
5493 fi
5494done
5495done
5496IFS=$as_save_IFS
5497
5498fi
5499fi
5500ac_ct_AR=$ac_cv_prog_ac_ct_AR
5501if test -n "$ac_ct_AR"; then
5502 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5503$as_echo "$ac_ct_AR" >&6; }
5504else
5505 { $as_echo "$as_me:$LINENO: result: no" >&5
5506$as_echo "no" >&6; }
5507fi
5508
5509 if test "x$ac_ct_AR" = x; then
5510 AR="false"
5511 else
5512 case $cross_compiling:$ac_tool_warned in
5513yes:)
5514{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5515$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5516ac_tool_warned=yes ;;
5517esac
5518 AR=$ac_ct_AR
5519 fi
5520else
5521 AR="$ac_cv_prog_AR"
5522fi
5523
5524test -z "$AR" && AR=ar
5525test -z "$AR_FLAGS" && AR_FLAGS=cru
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537if test -n "$ac_tool_prefix"; then
5538 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5539set dummy ${ac_tool_prefix}strip; ac_word=$2
5540{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5541$as_echo_n "checking for $ac_word... " >&6; }
5542if test "${ac_cv_prog_STRIP+set}" = set; then
5543 $as_echo_n "(cached) " >&6
5544else
5545 if test -n "$STRIP"; then
5546 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5547else
5548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5549for as_dir in $PATH
5550do
5551 IFS=$as_save_IFS
5552 test -z "$as_dir" && as_dir=.
5553 for ac_exec_ext in '' $ac_executable_extensions; do
5554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5555 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5556 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5557 break 2
5558 fi
5559done
5560done
5561IFS=$as_save_IFS
5562
5563fi
5564fi
5565STRIP=$ac_cv_prog_STRIP
5566if test -n "$STRIP"; then
5567 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5568$as_echo "$STRIP" >&6; }
5569else
5570 { $as_echo "$as_me:$LINENO: result: no" >&5
5571$as_echo "no" >&6; }
5572fi
5573
5574
5575fi
5576if test -z "$ac_cv_prog_STRIP"; then
5577 ac_ct_STRIP=$STRIP
5578 # Extract the first word of "strip", so it can be a program name with args.
5579set dummy strip; ac_word=$2
5580{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5581$as_echo_n "checking for $ac_word... " >&6; }
5582if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5583 $as_echo_n "(cached) " >&6
5584else
5585 if test -n "$ac_ct_STRIP"; then
5586 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5587else
5588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5589for as_dir in $PATH
5590do
5591 IFS=$as_save_IFS
5592 test -z "$as_dir" && as_dir=.
5593 for ac_exec_ext in '' $ac_executable_extensions; do
5594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5595 ac_cv_prog_ac_ct_STRIP="strip"
5596 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5597 break 2
5598 fi
5599done
5600done
5601IFS=$as_save_IFS
5602
5603fi
5604fi
5605ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5606if test -n "$ac_ct_STRIP"; then
5607 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5608$as_echo "$ac_ct_STRIP" >&6; }
5609else
5610 { $as_echo "$as_me:$LINENO: result: no" >&5
5611$as_echo "no" >&6; }
5612fi
5613
5614 if test "x$ac_ct_STRIP" = x; then
5615 STRIP=":"
5616 else
5617 case $cross_compiling:$ac_tool_warned in
5618yes:)
5619{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5620$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5621ac_tool_warned=yes ;;
5622esac
5623 STRIP=$ac_ct_STRIP
5624 fi
5625else
5626 STRIP="$ac_cv_prog_STRIP"
5627fi
5628
5629test -z "$STRIP" && STRIP=:
5630
5631
5632
5633
5634
5635
5636if test -n "$ac_tool_prefix"; then
5637 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5638set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5639{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5640$as_echo_n "checking for $ac_word... " >&6; }
5641if test "${ac_cv_prog_RANLIB+set}" = set; then
5642 $as_echo_n "(cached) " >&6
5643else
5644 if test -n "$RANLIB"; then
5645 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5646else
5647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5648for as_dir in $PATH
5649do
5650 IFS=$as_save_IFS
5651 test -z "$as_dir" && as_dir=.
5652 for ac_exec_ext in '' $ac_executable_extensions; do
5653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5654 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5655 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5656 break 2
5657 fi
5658done
5659done
5660IFS=$as_save_IFS
5661
5662fi
5663fi
5664RANLIB=$ac_cv_prog_RANLIB
5665if test -n "$RANLIB"; then
5666 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5667$as_echo "$RANLIB" >&6; }
5668else
5669 { $as_echo "$as_me:$LINENO: result: no" >&5
5670$as_echo "no" >&6; }
5671fi
5672
5673
5674fi
5675if test -z "$ac_cv_prog_RANLIB"; then
5676 ac_ct_RANLIB=$RANLIB
5677 # Extract the first word of "ranlib", so it can be a program name with args.
5678set dummy ranlib; ac_word=$2
5679{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5680$as_echo_n "checking for $ac_word... " >&6; }
5681if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5682 $as_echo_n "(cached) " >&6
5683else
5684 if test -n "$ac_ct_RANLIB"; then
5685 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5686else
5687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5688for as_dir in $PATH
5689do
5690 IFS=$as_save_IFS
5691 test -z "$as_dir" && as_dir=.
5692 for ac_exec_ext in '' $ac_executable_extensions; do
5693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5694 ac_cv_prog_ac_ct_RANLIB="ranlib"
5695 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5696 break 2
5697 fi
5698done
5699done
5700IFS=$as_save_IFS
5701
5702fi
5703fi
5704ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5705if test -n "$ac_ct_RANLIB"; then
5706 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5707$as_echo "$ac_ct_RANLIB" >&6; }
5708else
5709 { $as_echo "$as_me:$LINENO: result: no" >&5
5710$as_echo "no" >&6; }
5711fi
5712
5713 if test "x$ac_ct_RANLIB" = x; then
5714 RANLIB=":"
5715 else
5716 case $cross_compiling:$ac_tool_warned in
5717yes:)
5718{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5719$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5720ac_tool_warned=yes ;;
5721esac
5722 RANLIB=$ac_ct_RANLIB
5723 fi
5724else
5725 RANLIB="$ac_cv_prog_RANLIB"
5726fi
5727
5728test -z "$RANLIB" && RANLIB=:
5729
5730
5731
5732
5733
5734
5735# Determine commands to create old-style static archives.
5736old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5737old_postinstall_cmds='chmod 644 $oldlib'
5738old_postuninstall_cmds=
5739
5740if test -n "$RANLIB"; then
5741 case $host_os in
5742 openbsd*)
5743 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5744 ;;
5745 *)
5746 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5747 ;;
5748 esac
5749 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5750fi
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785# If no C compiler was specified, use CC.
5786LTCC=${LTCC-"$CC"}
5787
5788# If no C compiler flags were specified, use CFLAGS.
5789LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5790
5791# Allow CC to be a program name with arguments.
5792compiler=$CC
5793
5794
5795# Check for command to grab the raw symbol name followed by C symbol from nm.
5796{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5797$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5798if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5799 $as_echo_n "(cached) " >&6
5800else
5801
5802# These are sane defaults that work on at least a few old systems.
5803# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5804
5805# Character class describing NM global symbol codes.
5806symcode='[BCDEGRST]'
5807
5808# Regexp to match symbols that can be accessed directly from C.
5809sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5810
5811# Define system-specific variables.
5812case $host_os in
5813aix*)
5814 symcode='[BCDT]'
5815 ;;
5816cygwin* | mingw* | pw32* | cegcc*)
5817 symcode='[ABCDGISTW]'
5818 ;;
5819hpux*)
5820 if test "$host_cpu" = ia64; then
5821 symcode='[ABCDEGRST]'
5822 fi
5823 ;;
5824irix* | nonstopux*)
5825 symcode='[BCDEGRST]'
5826 ;;
5827osf*)
5828 symcode='[BCDEGQRST]'
5829 ;;
5830solaris*)
5831 symcode='[BDRT]'
5832 ;;
5833sco3.2v5*)
5834 symcode='[DT]'
5835 ;;
5836sysv4.2uw2*)
5837 symcode='[DT]'
5838 ;;
5839sysv5* | sco5v6* | unixware* | OpenUNIX*)
5840 symcode='[ABDT]'
5841 ;;
5842sysv4)
5843 symcode='[DFNSTU]'
5844 ;;
5845esac
5846
5847# If we're using GNU nm, then use its standard symbol codes.
5848case `$NM -V 2>&1` in
5849*GNU* | *'with BFD'*)
5850 symcode='[ABCDGIRSTW]' ;;
5851esac
5852
5853# Transform an extracted symbol line into a proper C declaration.
5854# Some systems (esp. on ia64) link data and code symbols differently,
5855# so use this general approach.
5856lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5857
5858# Transform an extracted symbol line into symbol name and symbol address
5859lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5860lt_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'"
5861
5862# Handle CRLF in mingw tool chain
5863opt_cr=
5864case $build_os in
5865mingw*)
5866 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5867 ;;
5868esac
5869
5870# Try without a prefix underscore, then with it.
5871for ac_symprfx in "" "_"; do
5872
5873 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5874 symxfrm="\\1 $ac_symprfx\\2 \\2"
5875
5876 # Write the raw and C identifiers.
5877 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5878 # Fake it for dumpbin and say T for any non-static function
5879 # and D for any global variable.
5880 # Also find C++ and __fastcall symbols from MSVC++,
5881 # which start with @ or ?.
5882 lt_cv_sys_global_symbol_pipe="$AWK '"\
5883" {last_section=section; section=\$ 3};"\
5884" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5885" \$ 0!~/External *\|/{next};"\
5886" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5887" {if(hide[section]) next};"\
5888" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5889" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5890" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5891" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5892" ' prfx=^$ac_symprfx"
5893 else
5894 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5895 fi
5896
5897 # Check to see that the pipe works correctly.
5898 pipe_works=no
5899
5900 rm -f conftest*
5901 cat > conftest.$ac_ext <<_LT_EOF
5902#ifdef __cplusplus
5903extern "C" {
5904#endif
5905char nm_test_var;
5906void nm_test_func(void);
5907void nm_test_func(void){}
5908#ifdef __cplusplus
5909}
5910#endif
5911int main(){nm_test_var='a';nm_test_func();return(0);}
5912_LT_EOF
5913
5914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5915 (eval $ac_compile) 2>&5
5916 ac_status=$?
5917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918 (exit $ac_status); }; then
5919 # Now try to grab the symbols.
5920 nlist=conftest.nm
5921 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5922 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5923 ac_status=$?
5924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925 (exit $ac_status); } && test -s "$nlist"; then
5926 # Try sorting and uniquifying the output.
5927 if sort "$nlist" | uniq > "$nlist"T; then
5928 mv -f "$nlist"T "$nlist"
5929 else
5930 rm -f "$nlist"T
5931 fi
5932
5933 # Make sure that we snagged all the symbols we need.
5934 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5935 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5936 cat <<_LT_EOF > conftest.$ac_ext
5937#ifdef __cplusplus
5938extern "C" {
5939#endif
5940
5941_LT_EOF
5942 # Now generate the symbol file.
5943 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5944
5945 cat <<_LT_EOF >> conftest.$ac_ext
5946
5947/* The mapping between symbol names and symbols. */
5948const struct {
5949 const char *name;
5950 void *address;
5951}
5952lt__PROGRAM__LTX_preloaded_symbols[] =
5953{
5954 { "@PROGRAM@", (void *) 0 },
5955_LT_EOF
5956 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5957 cat <<\_LT_EOF >> conftest.$ac_ext
5958 {0, (void *) 0}
5959};
5960
5961/* This works around a problem in FreeBSD linker */
5962#ifdef FREEBSD_WORKAROUND
5963static const void *lt_preloaded_setup() {
5964 return lt__PROGRAM__LTX_preloaded_symbols;
5965}
5966#endif
5967
5968#ifdef __cplusplus
5969}
5970#endif
5971_LT_EOF
5972 # Now try linking the two files.
5973 mv conftest.$ac_objext conftstm.$ac_objext
5974 lt_save_LIBS="$LIBS"
5975 lt_save_CFLAGS="$CFLAGS"
5976 LIBS="conftstm.$ac_objext"
5977 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5979 (eval $ac_link) 2>&5
5980 ac_status=$?
5981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5983 pipe_works=yes
5984 fi
5985 LIBS="$lt_save_LIBS"
5986 CFLAGS="$lt_save_CFLAGS"
5987 else
5988 echo "cannot find nm_test_func in $nlist" >&5
5989 fi
5990 else
5991 echo "cannot find nm_test_var in $nlist" >&5
5992 fi
5993 else
5994 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5995 fi
5996 else
5997 echo "$progname: failed program was:" >&5
5998 cat conftest.$ac_ext >&5
5999 fi
6000 rm -rf conftest* conftst*
6001
6002 # Do not use the global_symbol_pipe unless it works.
6003 if test "$pipe_works" = yes; then
6004 break
6005 else
6006 lt_cv_sys_global_symbol_pipe=
6007 fi
6008done
6009
6010fi
6011
6012if test -z "$lt_cv_sys_global_symbol_pipe"; then
6013 lt_cv_sys_global_symbol_to_cdecl=
6014fi
6015if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6016 { $as_echo "$as_me:$LINENO: result: failed" >&5
6017$as_echo "failed" >&6; }
6018else
6019 { $as_echo "$as_me:$LINENO: result: ok" >&5
6020$as_echo "ok" >&6; }
6021fi
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045# Check whether --enable-libtool-lock was given.
6046if test "${enable_libtool_lock+set}" = set; then
6047 enableval=$enable_libtool_lock;
6048fi
6049
6050test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6051
6052# Some flags need to be propagated to the compiler or linker for good
6053# libtool support.
6054case $host in
6055ia64-*-hpux*)
6056 # Find out which ABI we are using.
6057 echo 'int i;' > conftest.$ac_ext
6058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6059 (eval $ac_compile) 2>&5
6060 ac_status=$?
6061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062 (exit $ac_status); }; then
6063 case `/usr/bin/file conftest.$ac_objext` in
6064 *ELF-32*)
6065 HPUX_IA64_MODE="32"
6066 ;;
6067 *ELF-64*)
6068 HPUX_IA64_MODE="64"
6069 ;;
6070 esac
6071 fi
6072 rm -rf conftest*
6073 ;;
6074*-*-irix6*)
6075 # Find out which ABI we are using.
6076 echo '#line 6076 "configure"' > 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 if test "$lt_cv_prog_gnu_ld" = yes; then
6083 case `/usr/bin/file conftest.$ac_objext` in
6084 *32-bit*)
6085 LD="${LD-ld} -melf32bsmip"
6086 ;;
6087 *N32*)
6088 LD="${LD-ld} -melf32bmipn32"
6089 ;;
6090 *64-bit*)
6091 LD="${LD-ld} -melf64bmip"
6092 ;;
6093 esac
6094 else
6095 case `/usr/bin/file conftest.$ac_objext` in
6096 *32-bit*)
6097 LD="${LD-ld} -32"
6098 ;;
6099 *N32*)
6100 LD="${LD-ld} -n32"
6101 ;;
6102 *64-bit*)
6103 LD="${LD-ld} -64"
6104 ;;
6105 esac
6106 fi
6107 fi
6108 rm -rf conftest*
6109 ;;
6110
6111x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6112s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6113 # Find out which ABI we are using.
6114 echo 'int i;' > conftest.$ac_ext
6115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6116 (eval $ac_compile) 2>&5
6117 ac_status=$?
6118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119 (exit $ac_status); }; then
6120 case `/usr/bin/file conftest.o` in
6121 *32-bit*)
6122 case $host in
6123 x86_64-*kfreebsd*-gnu)
6124 LD="${LD-ld} -m elf_i386_fbsd"
6125 ;;
6126 x86_64-*linux*)
6127 LD="${LD-ld} -m elf_i386"
6128 ;;
6129 ppc64-*linux*|powerpc64-*linux*)
6130 LD="${LD-ld} -m elf32ppclinux"
6131 ;;
6132 s390x-*linux*)
6133 LD="${LD-ld} -m elf_s390"
6134 ;;
6135 sparc64-*linux*)
6136 LD="${LD-ld} -m elf32_sparc"
6137 ;;
6138 esac
6139 ;;
6140 *64-bit*)
6141 case $host in
6142 x86_64-*kfreebsd*-gnu)
6143 LD="${LD-ld} -m elf_x86_64_fbsd"
6144 ;;
6145 x86_64-*linux*)
6146 LD="${LD-ld} -m elf_x86_64"
6147 ;;
6148 ppc*-*linux*|powerpc*-*linux*)
6149 LD="${LD-ld} -m elf64ppc"
6150 ;;
6151 s390*-*linux*|s390*-*tpf*)
6152 LD="${LD-ld} -m elf64_s390"
6153 ;;
6154 sparc*-*linux*)
6155 LD="${LD-ld} -m elf64_sparc"
6156 ;;
6157 esac
6158 ;;
6159 esac
6160 fi
6161 rm -rf conftest*
6162 ;;
6163
6164*-*-sco3.2v5*)
6165 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6166 SAVE_CFLAGS="$CFLAGS"
6167 CFLAGS="$CFLAGS -belf"
6168 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6169$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6170if test "${lt_cv_cc_needs_belf+set}" = set; then
6171 $as_echo_n "(cached) " >&6
6172else
6173 ac_ext=c
6174ac_cpp='$CPP $CPPFLAGS'
6175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6177ac_compiler_gnu=$ac_cv_c_compiler_gnu
6178
6179 cat >conftest.$ac_ext <<_ACEOF
6180/* confdefs.h. */
6181_ACEOF
6182cat confdefs.h >>conftest.$ac_ext
6183cat >>conftest.$ac_ext <<_ACEOF
6184/* end confdefs.h. */
6185
6186int
6187main ()
6188{
6189
6190 ;
6191 return 0;
6192}
6193_ACEOF
6194rm -f conftest.$ac_objext conftest$ac_exeext
6195if { (ac_try="$ac_link"
6196case "(($ac_try" in
6197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6198 *) ac_try_echo=$ac_try;;
6199esac
6200eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6201$as_echo "$ac_try_echo") >&5
6202 (eval "$ac_link") 2>conftest.er1
6203 ac_status=$?
6204 grep -v '^ *+' conftest.er1 >conftest.err
6205 rm -f conftest.er1
6206 cat conftest.err >&5
6207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208 (exit $ac_status); } && {
6209 test -z "$ac_c_werror_flag" ||
6210 test ! -s conftest.err
6211 } && test -s conftest$ac_exeext && {
6212 test "$cross_compiling" = yes ||
6213 $as_test_x conftest$ac_exeext
6214 }; then
6215 lt_cv_cc_needs_belf=yes
6216else
6217 $as_echo "$as_me: failed program was:" >&5
6218sed 's/^/| /' conftest.$ac_ext >&5
6219
6220 lt_cv_cc_needs_belf=no
6221fi
6222
6223rm -rf conftest.dSYM
6224rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6225 conftest$ac_exeext conftest.$ac_ext
6226 ac_ext=c
6227ac_cpp='$CPP $CPPFLAGS'
6228ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6229ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6230ac_compiler_gnu=$ac_cv_c_compiler_gnu
6231
6232fi
6233{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6234$as_echo "$lt_cv_cc_needs_belf" >&6; }
6235 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6236 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6237 CFLAGS="$SAVE_CFLAGS"
6238 fi
6239 ;;
6240sparc*-*solaris*)
6241 # Find out which ABI we are using.
6242 echo 'int i;' > conftest.$ac_ext
6243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6244 (eval $ac_compile) 2>&5
6245 ac_status=$?
6246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); }; then
6248 case `/usr/bin/file conftest.o` in
6249 *64-bit*)
6250 case $lt_cv_prog_gnu_ld in
6251 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6252 *)
6253 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6254 LD="${LD-ld} -64"
6255 fi
6256 ;;
6257 esac
6258 ;;
6259 esac
6260 fi
6261 rm -rf conftest*
6262 ;;
6263esac
6264
6265need_locks="$enable_libtool_lock"
6266
6267
6268 case $host_os in
6269 rhapsody* | darwin*)
6270 if test -n "$ac_tool_prefix"; then
6271 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6272set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6273{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6274$as_echo_n "checking for $ac_word... " >&6; }
6275if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6276 $as_echo_n "(cached) " >&6
6277else
6278 if test -n "$DSYMUTIL"; then
6279 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6280else
6281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6282for as_dir in $PATH
6283do
6284 IFS=$as_save_IFS
6285 test -z "$as_dir" && as_dir=.
6286 for ac_exec_ext in '' $ac_executable_extensions; do
6287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6288 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6289 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6290 break 2
6291 fi
6292done
6293done
6294IFS=$as_save_IFS
6295
6296fi
6297fi
6298DSYMUTIL=$ac_cv_prog_DSYMUTIL
6299if test -n "$DSYMUTIL"; then
6300 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6301$as_echo "$DSYMUTIL" >&6; }
6302else
6303 { $as_echo "$as_me:$LINENO: result: no" >&5
6304$as_echo "no" >&6; }
6305fi
6306
6307
6308fi
6309if test -z "$ac_cv_prog_DSYMUTIL"; then
6310 ac_ct_DSYMUTIL=$DSYMUTIL
6311 # Extract the first word of "dsymutil", so it can be a program name with args.
6312set dummy dsymutil; ac_word=$2
6313{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6314$as_echo_n "checking for $ac_word... " >&6; }
6315if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6316 $as_echo_n "(cached) " >&6
6317else
6318 if test -n "$ac_ct_DSYMUTIL"; then
6319 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6320else
6321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6322for as_dir in $PATH
6323do
6324 IFS=$as_save_IFS
6325 test -z "$as_dir" && as_dir=.
6326 for ac_exec_ext in '' $ac_executable_extensions; do
6327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6328 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6329 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6330 break 2
6331 fi
6332done
6333done
6334IFS=$as_save_IFS
6335
6336fi
6337fi
6338ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6339if test -n "$ac_ct_DSYMUTIL"; then
6340 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6341$as_echo "$ac_ct_DSYMUTIL" >&6; }
6342else
6343 { $as_echo "$as_me:$LINENO: result: no" >&5
6344$as_echo "no" >&6; }
6345fi
6346
6347 if test "x$ac_ct_DSYMUTIL" = x; then
6348 DSYMUTIL=":"
6349 else
6350 case $cross_compiling:$ac_tool_warned in
6351yes:)
6352{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6353$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6354ac_tool_warned=yes ;;
6355esac
6356 DSYMUTIL=$ac_ct_DSYMUTIL
6357 fi
6358else
6359 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6360fi
6361
6362 if test -n "$ac_tool_prefix"; then
6363 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6364set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6365{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6366$as_echo_n "checking for $ac_word... " >&6; }
6367if test "${ac_cv_prog_NMEDIT+set}" = set; then
6368 $as_echo_n "(cached) " >&6
6369else
6370 if test -n "$NMEDIT"; then
6371 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6372else
6373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6374for as_dir in $PATH
6375do
6376 IFS=$as_save_IFS
6377 test -z "$as_dir" && as_dir=.
6378 for ac_exec_ext in '' $ac_executable_extensions; do
6379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6380 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6381 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6382 break 2
6383 fi
6384done
6385done
6386IFS=$as_save_IFS
6387
6388fi
6389fi
6390NMEDIT=$ac_cv_prog_NMEDIT
6391if test -n "$NMEDIT"; then
6392 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6393$as_echo "$NMEDIT" >&6; }
6394else
6395 { $as_echo "$as_me:$LINENO: result: no" >&5
6396$as_echo "no" >&6; }
6397fi
6398
6399
6400fi
6401if test -z "$ac_cv_prog_NMEDIT"; then
6402 ac_ct_NMEDIT=$NMEDIT
6403 # Extract the first word of "nmedit", so it can be a program name with args.
6404set dummy nmedit; ac_word=$2
6405{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6406$as_echo_n "checking for $ac_word... " >&6; }
6407if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6408 $as_echo_n "(cached) " >&6
6409else
6410 if test -n "$ac_ct_NMEDIT"; then
6411 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6412else
6413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6414for as_dir in $PATH
6415do
6416 IFS=$as_save_IFS
6417 test -z "$as_dir" && as_dir=.
6418 for ac_exec_ext in '' $ac_executable_extensions; do
6419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6420 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6421 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6422 break 2
6423 fi
6424done
6425done
6426IFS=$as_save_IFS
6427
6428fi
6429fi
6430ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6431if test -n "$ac_ct_NMEDIT"; then
6432 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6433$as_echo "$ac_ct_NMEDIT" >&6; }
6434else
6435 { $as_echo "$as_me:$LINENO: result: no" >&5
6436$as_echo "no" >&6; }
6437fi
6438
6439 if test "x$ac_ct_NMEDIT" = x; then
6440 NMEDIT=":"
6441 else
6442 case $cross_compiling:$ac_tool_warned in
6443yes:)
6444{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6445$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6446ac_tool_warned=yes ;;
6447esac
6448 NMEDIT=$ac_ct_NMEDIT
6449 fi
6450else
6451 NMEDIT="$ac_cv_prog_NMEDIT"
6452fi
6453
6454 if test -n "$ac_tool_prefix"; then
6455 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6456set dummy ${ac_tool_prefix}lipo; ac_word=$2
6457{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6458$as_echo_n "checking for $ac_word... " >&6; }
6459if test "${ac_cv_prog_LIPO+set}" = set; then
6460 $as_echo_n "(cached) " >&6
6461else
6462 if test -n "$LIPO"; then
6463 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6464else
6465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6466for as_dir in $PATH
6467do
6468 IFS=$as_save_IFS
6469 test -z "$as_dir" && as_dir=.
6470 for ac_exec_ext in '' $ac_executable_extensions; do
6471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6472 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6473 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6474 break 2
6475 fi
6476done
6477done
6478IFS=$as_save_IFS
6479
6480fi
6481fi
6482LIPO=$ac_cv_prog_LIPO
6483if test -n "$LIPO"; then
6484 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6485$as_echo "$LIPO" >&6; }
6486else
6487 { $as_echo "$as_me:$LINENO: result: no" >&5
6488$as_echo "no" >&6; }
6489fi
6490
6491
6492fi
6493if test -z "$ac_cv_prog_LIPO"; then
6494 ac_ct_LIPO=$LIPO
6495 # Extract the first word of "lipo", so it can be a program name with args.
6496set dummy lipo; ac_word=$2
6497{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6498$as_echo_n "checking for $ac_word... " >&6; }
6499if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6500 $as_echo_n "(cached) " >&6
6501else
6502 if test -n "$ac_ct_LIPO"; then
6503 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6504else
6505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6506for as_dir in $PATH
6507do
6508 IFS=$as_save_IFS
6509 test -z "$as_dir" && as_dir=.
6510 for ac_exec_ext in '' $ac_executable_extensions; do
6511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6512 ac_cv_prog_ac_ct_LIPO="lipo"
6513 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6514 break 2
6515 fi
6516done
6517done
6518IFS=$as_save_IFS
6519
6520fi
6521fi
6522ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6523if test -n "$ac_ct_LIPO"; then
6524 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6525$as_echo "$ac_ct_LIPO" >&6; }
6526else
6527 { $as_echo "$as_me:$LINENO: result: no" >&5
6528$as_echo "no" >&6; }
6529fi
6530
6531 if test "x$ac_ct_LIPO" = x; then
6532 LIPO=":"
6533 else
6534 case $cross_compiling:$ac_tool_warned in
6535yes:)
6536{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6537$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6538ac_tool_warned=yes ;;
6539esac
6540 LIPO=$ac_ct_LIPO
6541 fi
6542else
6543 LIPO="$ac_cv_prog_LIPO"
6544fi
6545
6546 if test -n "$ac_tool_prefix"; then
6547 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6548set dummy ${ac_tool_prefix}otool; ac_word=$2
6549{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6550$as_echo_n "checking for $ac_word... " >&6; }
6551if test "${ac_cv_prog_OTOOL+set}" = set; then
6552 $as_echo_n "(cached) " >&6
6553else
6554 if test -n "$OTOOL"; then
6555 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6556else
6557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6558for as_dir in $PATH
6559do
6560 IFS=$as_save_IFS
6561 test -z "$as_dir" && as_dir=.
6562 for ac_exec_ext in '' $ac_executable_extensions; do
6563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6564 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6565 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6566 break 2
6567 fi
6568done
6569done
6570IFS=$as_save_IFS
6571
6572fi
6573fi
6574OTOOL=$ac_cv_prog_OTOOL
6575if test -n "$OTOOL"; then
6576 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6577$as_echo "$OTOOL" >&6; }
6578else
6579 { $as_echo "$as_me:$LINENO: result: no" >&5
6580$as_echo "no" >&6; }
6581fi
6582
6583
6584fi
6585if test -z "$ac_cv_prog_OTOOL"; then
6586 ac_ct_OTOOL=$OTOOL
6587 # Extract the first word of "otool", so it can be a program name with args.
6588set dummy otool; ac_word=$2
6589{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6590$as_echo_n "checking for $ac_word... " >&6; }
6591if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6592 $as_echo_n "(cached) " >&6
6593else
6594 if test -n "$ac_ct_OTOOL"; then
6595 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6596else
6597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6598for as_dir in $PATH
6599do
6600 IFS=$as_save_IFS
6601 test -z "$as_dir" && as_dir=.
6602 for ac_exec_ext in '' $ac_executable_extensions; do
6603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6604 ac_cv_prog_ac_ct_OTOOL="otool"
6605 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6606 break 2
6607 fi
6608done
6609done
6610IFS=$as_save_IFS
6611
6612fi
6613fi
6614ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6615if test -n "$ac_ct_OTOOL"; then
6616 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6617$as_echo "$ac_ct_OTOOL" >&6; }
6618else
6619 { $as_echo "$as_me:$LINENO: result: no" >&5
6620$as_echo "no" >&6; }
6621fi
6622
6623 if test "x$ac_ct_OTOOL" = x; then
6624 OTOOL=":"
6625 else
6626 case $cross_compiling:$ac_tool_warned in
6627yes:)
6628{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6629$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6630ac_tool_warned=yes ;;
6631esac
6632 OTOOL=$ac_ct_OTOOL
6633 fi
6634else
6635 OTOOL="$ac_cv_prog_OTOOL"
6636fi
6637
6638 if test -n "$ac_tool_prefix"; then
6639 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6640set dummy ${ac_tool_prefix}otool64; ac_word=$2
6641{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6642$as_echo_n "checking for $ac_word... " >&6; }
6643if test "${ac_cv_prog_OTOOL64+set}" = set; then
6644 $as_echo_n "(cached) " >&6
6645else
6646 if test -n "$OTOOL64"; then
6647 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6648else
6649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6650for as_dir in $PATH
6651do
6652 IFS=$as_save_IFS
6653 test -z "$as_dir" && as_dir=.
6654 for ac_exec_ext in '' $ac_executable_extensions; do
6655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6656 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6657 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6658 break 2
6659 fi
6660done
6661done
6662IFS=$as_save_IFS
6663
6664fi
6665fi
6666OTOOL64=$ac_cv_prog_OTOOL64
6667if test -n "$OTOOL64"; then
6668 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6669$as_echo "$OTOOL64" >&6; }
6670else
6671 { $as_echo "$as_me:$LINENO: result: no" >&5
6672$as_echo "no" >&6; }
6673fi
6674
6675
6676fi
6677if test -z "$ac_cv_prog_OTOOL64"; then
6678 ac_ct_OTOOL64=$OTOOL64
6679 # Extract the first word of "otool64", so it can be a program name with args.
6680set dummy otool64; ac_word=$2
6681{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6682$as_echo_n "checking for $ac_word... " >&6; }
6683if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6684 $as_echo_n "(cached) " >&6
6685else
6686 if test -n "$ac_ct_OTOOL64"; then
6687 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6688else
6689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6690for as_dir in $PATH
6691do
6692 IFS=$as_save_IFS
6693 test -z "$as_dir" && as_dir=.
6694 for ac_exec_ext in '' $ac_executable_extensions; do
6695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6696 ac_cv_prog_ac_ct_OTOOL64="otool64"
6697 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6698 break 2
6699 fi
6700done
6701done
6702IFS=$as_save_IFS
6703
6704fi
6705fi
6706ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6707if test -n "$ac_ct_OTOOL64"; then
6708 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6709$as_echo "$ac_ct_OTOOL64" >&6; }
6710else
6711 { $as_echo "$as_me:$LINENO: result: no" >&5
6712$as_echo "no" >&6; }
6713fi
6714
6715 if test "x$ac_ct_OTOOL64" = x; then
6716 OTOOL64=":"
6717 else
6718 case $cross_compiling:$ac_tool_warned in
6719yes:)
6720{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6721$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6722ac_tool_warned=yes ;;
6723esac
6724 OTOOL64=$ac_ct_OTOOL64
6725 fi
6726else
6727 OTOOL64="$ac_cv_prog_OTOOL64"
6728fi
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6757$as_echo_n "checking for -single_module linker flag... " >&6; }
6758if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6759 $as_echo_n "(cached) " >&6
6760else
6761 lt_cv_apple_cc_single_mod=no
6762 if test -z "${LT_MULTI_MODULE}"; then
6763 # By default we will add the -single_module flag. You can override
6764 # by either setting the environment variable LT_MULTI_MODULE
6765 # non-empty at configure time, or by adding -multi_module to the
6766 # link flags.
6767 rm -rf libconftest.dylib*
6768 echo "int foo(void){return 1;}" > conftest.c
6769 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6770-dynamiclib -Wl,-single_module conftest.c" >&5
6771 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6772 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6773 _lt_result=$?
6774 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6775 lt_cv_apple_cc_single_mod=yes
6776 else
6777 cat conftest.err >&5
6778 fi
6779 rm -rf libconftest.dylib*
6780 rm -f conftest.*
6781 fi
6782fi
6783{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6784$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6785 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6786$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6787if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6788 $as_echo_n "(cached) " >&6
6789else
6790 lt_cv_ld_exported_symbols_list=no
6791 save_LDFLAGS=$LDFLAGS
6792 echo "_main" > conftest.sym
6793 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6794 cat >conftest.$ac_ext <<_ACEOF
6795/* confdefs.h. */
6796_ACEOF
6797cat confdefs.h >>conftest.$ac_ext
6798cat >>conftest.$ac_ext <<_ACEOF
6799/* end confdefs.h. */
6800
6801int
6802main ()
6803{
6804
6805 ;
6806 return 0;
6807}
6808_ACEOF
6809rm -f conftest.$ac_objext conftest$ac_exeext
6810if { (ac_try="$ac_link"
6811case "(($ac_try" in
6812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6813 *) ac_try_echo=$ac_try;;
6814esac
6815eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6816$as_echo "$ac_try_echo") >&5
6817 (eval "$ac_link") 2>conftest.er1
6818 ac_status=$?
6819 grep -v '^ *+' conftest.er1 >conftest.err
6820 rm -f conftest.er1
6821 cat conftest.err >&5
6822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823 (exit $ac_status); } && {
6824 test -z "$ac_c_werror_flag" ||
6825 test ! -s conftest.err
6826 } && test -s conftest$ac_exeext && {
6827 test "$cross_compiling" = yes ||
6828 $as_test_x conftest$ac_exeext
6829 }; then
6830 lt_cv_ld_exported_symbols_list=yes
6831else
6832 $as_echo "$as_me: failed program was:" >&5
6833sed 's/^/| /' conftest.$ac_ext >&5
6834
6835 lt_cv_ld_exported_symbols_list=no
6836fi
6837
6838rm -rf conftest.dSYM
6839rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6840 conftest$ac_exeext conftest.$ac_ext
6841 LDFLAGS="$save_LDFLAGS"
6842
6843fi
6844{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6845$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6846 case $host_os in
6847 rhapsody* | darwin1.[012])
6848 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6849 darwin1.*)
6850 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6851 darwin*) # darwin 5.x on
6852 # if running on 10.5 or later, the deployment target defaults
6853 # to the OS version, if on x86, and 10.4, the deployment
6854 # target defaults to 10.4. Don't you love it?
6855 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6856 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6857 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6858 10.[012]*)
6859 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6860 10.*)
6861 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6862 esac
6863 ;;
6864 esac
6865 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6866 _lt_dar_single_mod='$single_module'
6867 fi
6868 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6869 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6870 else
6871 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6872 fi
6873 if test "$DSYMUTIL" != ":"; then
6874 _lt_dsymutil='~$DSYMUTIL $lib || :'
6875 else
6876 _lt_dsymutil=
6877 fi
6878 ;;
6879 esac
6880
6881ac_ext=c
6882ac_cpp='$CPP $CPPFLAGS'
6883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6885ac_compiler_gnu=$ac_cv_c_compiler_gnu
6886{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6887$as_echo_n "checking how to run the C preprocessor... " >&6; }
6888# On Suns, sometimes $CPP names a directory.
6889if test -n "$CPP" && test -d "$CPP"; then
6890 CPP=
6891fi
6892if test -z "$CPP"; then
6893 if test "${ac_cv_prog_CPP+set}" = set; then
6894 $as_echo_n "(cached) " >&6
6895else
6896 # Double quotes because CPP needs to be expanded
6897 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6898 do
6899 ac_preproc_ok=false
6900for ac_c_preproc_warn_flag in '' yes
6901do
6902 # Use a header file that comes with gcc, so configuring glibc
6903 # with a fresh cross-compiler works.
6904 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6905 # <limits.h> exists even on freestanding compilers.
6906 # On the NeXT, cc -E runs the code through the compiler's parser,
6907 # not just through cpp. "Syntax error" is here to catch this case.
6908 cat >conftest.$ac_ext <<_ACEOF
6909/* confdefs.h. */
6910_ACEOF
6911cat confdefs.h >>conftest.$ac_ext
6912cat >>conftest.$ac_ext <<_ACEOF
6913/* end confdefs.h. */
6914#ifdef __STDC__
6915# include <limits.h>
6916#else
6917# include <assert.h>
6918#endif
6919 Syntax error
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 :
6939else
6940 $as_echo "$as_me: failed program was:" >&5
6941sed 's/^/| /' conftest.$ac_ext >&5
6942
6943 # Broken: fails on valid input.
6944continue
6945fi
6946
6947rm -f conftest.err conftest.$ac_ext
6948
6949 # OK, works on sane cases. Now check whether nonexistent headers
6950 # can be detected and how.
6951 cat >conftest.$ac_ext <<_ACEOF
6952/* confdefs.h. */
6953_ACEOF
6954cat confdefs.h >>conftest.$ac_ext
6955cat >>conftest.$ac_ext <<_ACEOF
6956/* end confdefs.h. */
6957#include <ac_nonexistent.h>
6958_ACEOF
6959if { (ac_try="$ac_cpp conftest.$ac_ext"
6960case "(($ac_try" in
6961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6962 *) ac_try_echo=$ac_try;;
6963esac
6964eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6965$as_echo "$ac_try_echo") >&5
6966 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6967 ac_status=$?
6968 grep -v '^ *+' conftest.er1 >conftest.err
6969 rm -f conftest.er1
6970 cat conftest.err >&5
6971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6972 (exit $ac_status); } >/dev/null && {
6973 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6974 test ! -s conftest.err
6975 }; then
6976 # Broken: success on invalid input.
6977continue
6978else
6979 $as_echo "$as_me: failed program was:" >&5
6980sed 's/^/| /' conftest.$ac_ext >&5
6981
6982 # Passes both tests.
6983ac_preproc_ok=:
6984break
6985fi
6986
6987rm -f conftest.err conftest.$ac_ext
6988
6989done
6990# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6991rm -f conftest.err conftest.$ac_ext
6992if $ac_preproc_ok; then
6993 break
6994fi
6995
6996 done
6997 ac_cv_prog_CPP=$CPP
6998
6999fi
7000 CPP=$ac_cv_prog_CPP
7001else
7002 ac_cv_prog_CPP=$CPP
7003fi
7004{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
7005$as_echo "$CPP" >&6; }
7006ac_preproc_ok=false
7007for ac_c_preproc_warn_flag in '' yes
7008do
7009 # Use a header file that comes with gcc, so configuring glibc
7010 # with a fresh cross-compiler works.
7011 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7012 # <limits.h> exists even on freestanding compilers.
7013 # On the NeXT, cc -E runs the code through the compiler's parser,
7014 # not just through cpp. "Syntax error" is here to catch this case.
7015 cat >conftest.$ac_ext <<_ACEOF
7016/* confdefs.h. */
7017_ACEOF
7018cat confdefs.h >>conftest.$ac_ext
7019cat >>conftest.$ac_ext <<_ACEOF
7020/* end confdefs.h. */
7021#ifdef __STDC__
7022# include <limits.h>
7023#else
7024# include <assert.h>
7025#endif
7026 Syntax error
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 :
7046else
7047 $as_echo "$as_me: failed program was:" >&5
7048sed 's/^/| /' conftest.$ac_ext >&5
7049
7050 # Broken: fails on valid input.
7051continue
7052fi
7053
7054rm -f conftest.err conftest.$ac_ext
7055
7056 # OK, works on sane cases. Now check whether nonexistent headers
7057 # can be detected and how.
7058 cat >conftest.$ac_ext <<_ACEOF
7059/* confdefs.h. */
7060_ACEOF
7061cat confdefs.h >>conftest.$ac_ext
7062cat >>conftest.$ac_ext <<_ACEOF
7063/* end confdefs.h. */
7064#include <ac_nonexistent.h>
7065_ACEOF
7066if { (ac_try="$ac_cpp conftest.$ac_ext"
7067case "(($ac_try" in
7068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7069 *) ac_try_echo=$ac_try;;
7070esac
7071eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7072$as_echo "$ac_try_echo") >&5
7073 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7074 ac_status=$?
7075 grep -v '^ *+' conftest.er1 >conftest.err
7076 rm -f conftest.er1
7077 cat conftest.err >&5
7078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079 (exit $ac_status); } >/dev/null && {
7080 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7081 test ! -s conftest.err
7082 }; then
7083 # Broken: success on invalid input.
7084continue
7085else
7086 $as_echo "$as_me: failed program was:" >&5
7087sed 's/^/| /' conftest.$ac_ext >&5
7088
7089 # Passes both tests.
7090ac_preproc_ok=:
7091break
7092fi
7093
7094rm -f conftest.err conftest.$ac_ext
7095
7096done
7097# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7098rm -f conftest.err conftest.$ac_ext
7099if $ac_preproc_ok; then
7100 :
7101else
7102 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7103$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7104{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7105See \`config.log' for more details." >&5
7106$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7107See \`config.log' for more details." >&2;}
7108 { (exit 1); exit 1; }; }; }
7109fi
7110
7111ac_ext=c
7112ac_cpp='$CPP $CPPFLAGS'
7113ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7114ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7115ac_compiler_gnu=$ac_cv_c_compiler_gnu
7116
7117
7118{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7119$as_echo_n "checking for ANSI C header files... " >&6; }
7120if test "${ac_cv_header_stdc+set}" = set; then
7121 $as_echo_n "(cached) " >&6
7122else
7123 cat >conftest.$ac_ext <<_ACEOF
7124/* confdefs.h. */
7125_ACEOF
7126cat confdefs.h >>conftest.$ac_ext
7127cat >>conftest.$ac_ext <<_ACEOF
7128/* end confdefs.h. */
7129#include <stdlib.h>
7130#include <stdarg.h>
7131#include <string.h>
7132#include <float.h>
7133
7134int
7135main ()
7136{
7137
7138 ;
7139 return 0;
7140}
7141_ACEOF
7142rm -f conftest.$ac_objext
7143if { (ac_try="$ac_compile"
7144case "(($ac_try" in
7145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7146 *) ac_try_echo=$ac_try;;
7147esac
7148eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7149$as_echo "$ac_try_echo") >&5
7150 (eval "$ac_compile") 2>conftest.er1
7151 ac_status=$?
7152 grep -v '^ *+' conftest.er1 >conftest.err
7153 rm -f conftest.er1
7154 cat conftest.err >&5
7155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156 (exit $ac_status); } && {
7157 test -z "$ac_c_werror_flag" ||
7158 test ! -s conftest.err
7159 } && test -s conftest.$ac_objext; then
7160 ac_cv_header_stdc=yes
7161else
7162 $as_echo "$as_me: failed program was:" >&5
7163sed 's/^/| /' conftest.$ac_ext >&5
7164
7165 ac_cv_header_stdc=no
7166fi
7167
7168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7169
7170if test $ac_cv_header_stdc = yes; then
7171 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7172 cat >conftest.$ac_ext <<_ACEOF
7173/* confdefs.h. */
7174_ACEOF
7175cat confdefs.h >>conftest.$ac_ext
7176cat >>conftest.$ac_ext <<_ACEOF
7177/* end confdefs.h. */
7178#include <string.h>
7179
7180_ACEOF
7181if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7182 $EGREP "memchr" >/dev/null 2>&1; then
7183 :
7184else
7185 ac_cv_header_stdc=no
7186fi
7187rm -f conftest*
7188
7189fi
7190
7191if test $ac_cv_header_stdc = yes; then
7192 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7193 cat >conftest.$ac_ext <<_ACEOF
7194/* confdefs.h. */
7195_ACEOF
7196cat confdefs.h >>conftest.$ac_ext
7197cat >>conftest.$ac_ext <<_ACEOF
7198/* end confdefs.h. */
7199#include <stdlib.h>
7200
7201_ACEOF
7202if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7203 $EGREP "free" >/dev/null 2>&1; then
7204 :
7205else
7206 ac_cv_header_stdc=no
7207fi
7208rm -f conftest*
7209
7210fi
7211
7212if test $ac_cv_header_stdc = yes; then
7213 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7214 if test "$cross_compiling" = yes; then
7215 :
7216else
7217 cat >conftest.$ac_ext <<_ACEOF
7218/* confdefs.h. */
7219_ACEOF
7220cat confdefs.h >>conftest.$ac_ext
7221cat >>conftest.$ac_ext <<_ACEOF
7222/* end confdefs.h. */
7223#include <ctype.h>
7224#include <stdlib.h>
7225#if ((' ' & 0x0FF) == 0x020)
7226# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7227# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7228#else
7229# define ISLOWER(c) \
7230 (('a' <= (c) && (c) <= 'i') \
7231 || ('j' <= (c) && (c) <= 'r') \
7232 || ('s' <= (c) && (c) <= 'z'))
7233# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7234#endif
7235
7236#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7237int
7238main ()
7239{
7240 int i;
7241 for (i = 0; i < 256; i++)
7242 if (XOR (islower (i), ISLOWER (i))
7243 || toupper (i) != TOUPPER (i))
7244 return 2;
7245 return 0;
7246}
7247_ACEOF
7248rm -f conftest$ac_exeext
7249if { (ac_try="$ac_link"
7250case "(($ac_try" in
7251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7252 *) ac_try_echo=$ac_try;;
7253esac
7254eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7255$as_echo "$ac_try_echo") >&5
7256 (eval "$ac_link") 2>&5
7257 ac_status=$?
7258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7260 { (case "(($ac_try" in
7261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7262 *) ac_try_echo=$ac_try;;
7263esac
7264eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7265$as_echo "$ac_try_echo") >&5
7266 (eval "$ac_try") 2>&5
7267 ac_status=$?
7268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269 (exit $ac_status); }; }; then
7270 :
7271else
7272 $as_echo "$as_me: program exited with status $ac_status" >&5
7273$as_echo "$as_me: failed program was:" >&5
7274sed 's/^/| /' conftest.$ac_ext >&5
7275
7276( exit $ac_status )
7277ac_cv_header_stdc=no
7278fi
7279rm -rf conftest.dSYM
7280rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7281fi
7282
7283
7284fi
7285fi
7286{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7287$as_echo "$ac_cv_header_stdc" >&6; }
7288if test $ac_cv_header_stdc = yes; then
7289
7290cat >>confdefs.h <<\_ACEOF
7291#define STDC_HEADERS 1
7292_ACEOF
7293
7294fi
7295
7296# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7307 inttypes.h stdint.h unistd.h
7308do
7309as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7310{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7311$as_echo_n "checking for $ac_header... " >&6; }
7312if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7313 $as_echo_n "(cached) " >&6
7314else
7315 cat >conftest.$ac_ext <<_ACEOF
7316/* confdefs.h. */
7317_ACEOF
7318cat confdefs.h >>conftest.$ac_ext
7319cat >>conftest.$ac_ext <<_ACEOF
7320/* end confdefs.h. */
7321$ac_includes_default
7322
7323#include <$ac_header>
7324_ACEOF
7325rm -f conftest.$ac_objext
7326if { (ac_try="$ac_compile"
7327case "(($ac_try" in
7328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7329 *) ac_try_echo=$ac_try;;
7330esac
7331eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7332$as_echo "$ac_try_echo") >&5
7333 (eval "$ac_compile") 2>conftest.er1
7334 ac_status=$?
7335 grep -v '^ *+' conftest.er1 >conftest.err
7336 rm -f conftest.er1
7337 cat conftest.err >&5
7338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7339 (exit $ac_status); } && {
7340 test -z "$ac_c_werror_flag" ||
7341 test ! -s conftest.err
7342 } && test -s conftest.$ac_objext; then
7343 eval "$as_ac_Header=yes"
7344else
7345 $as_echo "$as_me: failed program was:" >&5
7346sed 's/^/| /' conftest.$ac_ext >&5
7347
7348 eval "$as_ac_Header=no"
7349fi
7350
7351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7352fi
7353ac_res=`eval 'as_val=${'$as_ac_Header'}
7354 $as_echo "$as_val"'`
7355 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7356$as_echo "$ac_res" >&6; }
7357as_val=`eval 'as_val=${'$as_ac_Header'}
7358 $as_echo "$as_val"'`
7359 if test "x$as_val" = x""yes; then
7360 cat >>confdefs.h <<_ACEOF
7361#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7362_ACEOF
7363
7364fi
7365
7366done
7367
7368
7369
7370for ac_header in dlfcn.h
7371do
7372as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7373{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7374$as_echo_n "checking for $ac_header... " >&6; }
7375if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7376 $as_echo_n "(cached) " >&6
7377else
7378 cat >conftest.$ac_ext <<_ACEOF
7379/* confdefs.h. */
7380_ACEOF
7381cat confdefs.h >>conftest.$ac_ext
7382cat >>conftest.$ac_ext <<_ACEOF
7383/* end confdefs.h. */
7384$ac_includes_default
7385
7386#include <$ac_header>
7387_ACEOF
7388rm -f conftest.$ac_objext
7389if { (ac_try="$ac_compile"
7390case "(($ac_try" in
7391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7392 *) ac_try_echo=$ac_try;;
7393esac
7394eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7395$as_echo "$ac_try_echo") >&5
7396 (eval "$ac_compile") 2>conftest.er1
7397 ac_status=$?
7398 grep -v '^ *+' conftest.er1 >conftest.err
7399 rm -f conftest.er1
7400 cat conftest.err >&5
7401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402 (exit $ac_status); } && {
7403 test -z "$ac_c_werror_flag" ||
7404 test ! -s conftest.err
7405 } && test -s conftest.$ac_objext; then
7406 eval "$as_ac_Header=yes"
7407else
7408 $as_echo "$as_me: failed program was:" >&5
7409sed 's/^/| /' conftest.$ac_ext >&5
7410
7411 eval "$as_ac_Header=no"
7412fi
7413
7414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7415fi
7416ac_res=`eval 'as_val=${'$as_ac_Header'}
7417 $as_echo "$as_val"'`
7418 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7419$as_echo "$ac_res" >&6; }
7420as_val=`eval 'as_val=${'$as_ac_Header'}
7421 $as_echo "$as_val"'`
7422 if test "x$as_val" = x""yes; then
7423 cat >>confdefs.h <<_ACEOF
7424#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7425_ACEOF
7426
7427fi
7428
7429done
7430
7431
7432
7433ac_ext=cpp
7434ac_cpp='$CXXCPP $CPPFLAGS'
7435ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7436ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7437ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7438if test -z "$CXX"; then
7439 if test -n "$CCC"; then
7440 CXX=$CCC
7441 else
7442 if test -n "$ac_tool_prefix"; then
7443 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7444 do
7445 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7446set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7447{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7448$as_echo_n "checking for $ac_word... " >&6; }
7449if test "${ac_cv_prog_CXX+set}" = set; then
7450 $as_echo_n "(cached) " >&6
7451else
7452 if test -n "$CXX"; then
7453 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7454else
7455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7456for as_dir in $PATH
7457do
7458 IFS=$as_save_IFS
7459 test -z "$as_dir" && as_dir=.
7460 for ac_exec_ext in '' $ac_executable_extensions; do
7461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7462 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7463 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7464 break 2
7465 fi
7466done
7467done
7468IFS=$as_save_IFS
7469
7470fi
7471fi
7472CXX=$ac_cv_prog_CXX
7473if test -n "$CXX"; then
7474 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
7475$as_echo "$CXX" >&6; }
7476else
7477 { $as_echo "$as_me:$LINENO: result: no" >&5
7478$as_echo "no" >&6; }
7479fi
7480
7481
7482 test -n "$CXX" && break
7483 done
7484fi
7485if test -z "$CXX"; then
7486 ac_ct_CXX=$CXX
7487 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7488do
7489 # Extract the first word of "$ac_prog", so it can be a program name with args.
7490set dummy $ac_prog; ac_word=$2
7491{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7492$as_echo_n "checking for $ac_word... " >&6; }
7493if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7494 $as_echo_n "(cached) " >&6
7495else
7496 if test -n "$ac_ct_CXX"; then
7497 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7498else
7499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7500for as_dir in $PATH
7501do
7502 IFS=$as_save_IFS
7503 test -z "$as_dir" && as_dir=.
7504 for ac_exec_ext in '' $ac_executable_extensions; do
7505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7506 ac_cv_prog_ac_ct_CXX="$ac_prog"
7507 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7508 break 2
7509 fi
7510done
7511done
7512IFS=$as_save_IFS
7513
7514fi
7515fi
7516ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7517if test -n "$ac_ct_CXX"; then
7518 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7519$as_echo "$ac_ct_CXX" >&6; }
7520else
7521 { $as_echo "$as_me:$LINENO: result: no" >&5
7522$as_echo "no" >&6; }
7523fi
7524
7525
7526 test -n "$ac_ct_CXX" && break
7527done
7528
7529 if test "x$ac_ct_CXX" = x; then
7530 CXX="g++"
7531 else
7532 case $cross_compiling:$ac_tool_warned in
7533yes:)
7534{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7535$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7536ac_tool_warned=yes ;;
7537esac
7538 CXX=$ac_ct_CXX
7539 fi
7540fi
7541
7542 fi
7543fi
7544# Provide some information about the compiler.
7545$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
7546set X $ac_compile
7547ac_compiler=$2
7548{ (ac_try="$ac_compiler --version >&5"
7549case "(($ac_try" in
7550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7551 *) ac_try_echo=$ac_try;;
7552esac
7553eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7554$as_echo "$ac_try_echo") >&5
7555 (eval "$ac_compiler --version >&5") 2>&5
7556 ac_status=$?
7557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558 (exit $ac_status); }
7559{ (ac_try="$ac_compiler -v >&5"
7560case "(($ac_try" in
7561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7562 *) ac_try_echo=$ac_try;;
7563esac
7564eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7565$as_echo "$ac_try_echo") >&5
7566 (eval "$ac_compiler -v >&5") 2>&5
7567 ac_status=$?
7568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7569 (exit $ac_status); }
7570{ (ac_try="$ac_compiler -V >&5"
7571case "(($ac_try" in
7572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7573 *) ac_try_echo=$ac_try;;
7574esac
7575eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7576$as_echo "$ac_try_echo") >&5
7577 (eval "$ac_compiler -V >&5") 2>&5
7578 ac_status=$?
7579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580 (exit $ac_status); }
7581
7582{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7583$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7584if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7585 $as_echo_n "(cached) " >&6
7586else
7587 cat >conftest.$ac_ext <<_ACEOF
7588/* confdefs.h. */
7589_ACEOF
7590cat confdefs.h >>conftest.$ac_ext
7591cat >>conftest.$ac_ext <<_ACEOF
7592/* end confdefs.h. */
7593
7594int
7595main ()
7596{
7597#ifndef __GNUC__
7598 choke me
7599#endif
7600
7601 ;
7602 return 0;
7603}
7604_ACEOF
7605rm -f conftest.$ac_objext
7606if { (ac_try="$ac_compile"
7607case "(($ac_try" in
7608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7609 *) ac_try_echo=$ac_try;;
7610esac
7611eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7612$as_echo "$ac_try_echo") >&5
7613 (eval "$ac_compile") 2>conftest.er1
7614 ac_status=$?
7615 grep -v '^ *+' conftest.er1 >conftest.err
7616 rm -f conftest.er1
7617 cat conftest.err >&5
7618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619 (exit $ac_status); } && {
7620 test -z "$ac_cxx_werror_flag" ||
7621 test ! -s conftest.err
7622 } && test -s conftest.$ac_objext; then
7623 ac_compiler_gnu=yes
7624else
7625 $as_echo "$as_me: failed program was:" >&5
7626sed 's/^/| /' conftest.$ac_ext >&5
7627
7628 ac_compiler_gnu=no
7629fi
7630
7631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7632ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7633
7634fi
7635{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7636$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7637if test $ac_compiler_gnu = yes; then
7638 GXX=yes
7639else
7640 GXX=
7641fi
7642ac_test_CXXFLAGS=${CXXFLAGS+set}
7643ac_save_CXXFLAGS=$CXXFLAGS
7644{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7645$as_echo_n "checking whether $CXX accepts -g... " >&6; }
7646if test "${ac_cv_prog_cxx_g+set}" = set; then
7647 $as_echo_n "(cached) " >&6
7648else
7649 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7650 ac_cxx_werror_flag=yes
7651 ac_cv_prog_cxx_g=no
7652 CXXFLAGS="-g"
7653 cat >conftest.$ac_ext <<_ACEOF
7654/* confdefs.h. */
7655_ACEOF
7656cat confdefs.h >>conftest.$ac_ext
7657cat >>conftest.$ac_ext <<_ACEOF
7658/* end confdefs.h. */
7659
7660int
7661main ()
7662{
7663
7664 ;
7665 return 0;
7666}
7667_ACEOF
7668rm -f conftest.$ac_objext
7669if { (ac_try="$ac_compile"
7670case "(($ac_try" in
7671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7672 *) ac_try_echo=$ac_try;;
7673esac
7674eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7675$as_echo "$ac_try_echo") >&5
7676 (eval "$ac_compile") 2>conftest.er1
7677 ac_status=$?
7678 grep -v '^ *+' conftest.er1 >conftest.err
7679 rm -f conftest.er1
7680 cat conftest.err >&5
7681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682 (exit $ac_status); } && {
7683 test -z "$ac_cxx_werror_flag" ||
7684 test ! -s conftest.err
7685 } && test -s conftest.$ac_objext; then
7686 ac_cv_prog_cxx_g=yes
7687else
7688 $as_echo "$as_me: failed program was:" >&5
7689sed 's/^/| /' conftest.$ac_ext >&5
7690
7691 CXXFLAGS=""
7692 cat >conftest.$ac_ext <<_ACEOF
7693/* confdefs.h. */
7694_ACEOF
7695cat confdefs.h >>conftest.$ac_ext
7696cat >>conftest.$ac_ext <<_ACEOF
7697/* end confdefs.h. */
7698
7699int
7700main ()
7701{
7702
7703 ;
7704 return 0;
7705}
7706_ACEOF
7707rm -f conftest.$ac_objext
7708if { (ac_try="$ac_compile"
7709case "(($ac_try" in
7710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7711 *) ac_try_echo=$ac_try;;
7712esac
7713eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7714$as_echo "$ac_try_echo") >&5
7715 (eval "$ac_compile") 2>conftest.er1
7716 ac_status=$?
7717 grep -v '^ *+' conftest.er1 >conftest.err
7718 rm -f conftest.er1
7719 cat conftest.err >&5
7720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7721 (exit $ac_status); } && {
7722 test -z "$ac_cxx_werror_flag" ||
7723 test ! -s conftest.err
7724 } && test -s conftest.$ac_objext; then
7725 :
7726else
7727 $as_echo "$as_me: failed program was:" >&5
7728sed 's/^/| /' conftest.$ac_ext >&5
7729
7730 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7731 CXXFLAGS="-g"
7732 cat >conftest.$ac_ext <<_ACEOF
7733/* confdefs.h. */
7734_ACEOF
7735cat confdefs.h >>conftest.$ac_ext
7736cat >>conftest.$ac_ext <<_ACEOF
7737/* end confdefs.h. */
7738
7739int
7740main ()
7741{
7742
7743 ;
7744 return 0;
7745}
7746_ACEOF
7747rm -f conftest.$ac_objext
7748if { (ac_try="$ac_compile"
7749case "(($ac_try" in
7750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7751 *) ac_try_echo=$ac_try;;
7752esac
7753eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7754$as_echo "$ac_try_echo") >&5
7755 (eval "$ac_compile") 2>conftest.er1
7756 ac_status=$?
7757 grep -v '^ *+' conftest.er1 >conftest.err
7758 rm -f conftest.er1
7759 cat conftest.err >&5
7760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); } && {
7762 test -z "$ac_cxx_werror_flag" ||
7763 test ! -s conftest.err
7764 } && test -s conftest.$ac_objext; then
7765 ac_cv_prog_cxx_g=yes
7766else
7767 $as_echo "$as_me: failed program was:" >&5
7768sed 's/^/| /' conftest.$ac_ext >&5
7769
7770
7771fi
7772
7773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7774fi
7775
7776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7777fi
7778
7779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7780 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7781fi
7782{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7783$as_echo "$ac_cv_prog_cxx_g" >&6; }
7784if test "$ac_test_CXXFLAGS" = set; then
7785 CXXFLAGS=$ac_save_CXXFLAGS
7786elif test $ac_cv_prog_cxx_g = yes; then
7787 if test "$GXX" = yes; then
7788 CXXFLAGS="-g -O2"
7789 else
7790 CXXFLAGS="-g"
7791 fi
7792else
7793 if test "$GXX" = yes; then
7794 CXXFLAGS="-O2"
7795 else
7796 CXXFLAGS=
7797 fi
7798fi
7799ac_ext=c
7800ac_cpp='$CPP $CPPFLAGS'
7801ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7802ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7803ac_compiler_gnu=$ac_cv_c_compiler_gnu
7804
7805depcc="$CXX" am_compiler_list=
7806
7807{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7808$as_echo_n "checking dependency style of $depcc... " >&6; }
7809if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
7810 $as_echo_n "(cached) " >&6
7811else
7812 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7813 # We make a subdir and do the tests there. Otherwise we can end up
7814 # making bogus files that we don't know about and never remove. For
7815 # instance it was reported that on HP-UX the gcc test will end up
7816 # making a dummy file named `D' -- because `-MD' means `put the output
7817 # in D'.
7818 mkdir conftest.dir
7819 # Copy depcomp to subdir because otherwise we won't find it if we're
7820 # using a relative directory.
7821 cp "$am_depcomp" conftest.dir
7822 cd conftest.dir
7823 # We will build objects and dependencies in a subdirectory because
7824 # it helps to detect inapplicable dependency modes. For instance
7825 # both Tru64's cc and ICC support -MD to output dependencies as a
7826 # side effect of compilation, but ICC will put the dependencies in
7827 # the current directory while Tru64 will put them in the object
7828 # directory.
7829 mkdir sub
7830
7831 am_cv_CXX_dependencies_compiler_type=none
7832 if test "$am_compiler_list" = ""; then
7833 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7834 fi
7835 for depmode in $am_compiler_list; do
7836 # Setup a source with many dependencies, because some compilers
7837 # like to wrap large dependency lists on column 80 (with \), and
7838 # we should not choose a depcomp mode which is confused by this.
7839 #
7840 # We need to recreate these files for each test, as the compiler may
7841 # overwrite some of them when testing with obscure command lines.
7842 # This happens at least with the AIX C compiler.
7843 : > sub/conftest.c
7844 for i in 1 2 3 4 5 6; do
7845 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7846 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7847 # Solaris 8's {/usr,}/bin/sh.
7848 touch sub/conftst$i.h
7849 done
7850 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7851
7852 case $depmode in
7853 nosideeffect)
7854 # after this tag, mechanisms are not by side-effect, so they'll
7855 # only be used when explicitly requested
7856 if test "x$enable_dependency_tracking" = xyes; then
7857 continue
7858 else
7859 break
7860 fi
7861 ;;
7862 none) break ;;
7863 esac
7864 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7865 # mode. It turns out that the SunPro C++ compiler does not properly
7866 # handle `-M -o', and we need to detect this.
7867 if depmode=$depmode \
7868 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7869 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7870 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7871 >/dev/null 2>conftest.err &&
7872 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7873 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7874 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7875 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7876 # icc doesn't choke on unknown options, it will just issue warnings
7877 # or remarks (even with -Werror). So we grep stderr for any message
7878 # that says an option was ignored or not supported.
7879 # When given -MP, icc 7.0 and 7.1 complain thusly:
7880 # icc: Command line warning: ignoring option '-M'; no argument required
7881 # The diagnosis changed in icc 8.0:
7882 # icc: Command line remark: option '-MP' not supported
7883 if (grep 'ignoring option' conftest.err ||
7884 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7885 am_cv_CXX_dependencies_compiler_type=$depmode
7886 break
7887 fi
7888 fi
7889 done
7890
7891 cd ..
7892 rm -rf conftest.dir
7893else
7894 am_cv_CXX_dependencies_compiler_type=none
7895fi
7896
7897fi
7898{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7899$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7900CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7901
7902 if
7903 test "x$enable_dependency_tracking" != xno \
7904 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7905 am__fastdepCXX_TRUE=
7906 am__fastdepCXX_FALSE='#'
7907else
7908 am__fastdepCXX_TRUE='#'
7909 am__fastdepCXX_FALSE=
7910fi
7911
7912
7913if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7914 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7915 (test "X$CXX" != "Xg++"))) ; then
7916 ac_ext=cpp
7917ac_cpp='$CXXCPP $CPPFLAGS'
7918ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7919ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7920ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7921{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7922$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
7923if test -z "$CXXCPP"; then
7924 if test "${ac_cv_prog_CXXCPP+set}" = set; then
7925 $as_echo_n "(cached) " >&6
7926else
7927 # Double quotes because CXXCPP needs to be expanded
7928 for CXXCPP in "$CXX -E" "/lib/cpp"
7929 do
7930 ac_preproc_ok=false
7931for ac_cxx_preproc_warn_flag in '' yes
7932do
7933 # Use a header file that comes with gcc, so configuring glibc
7934 # with a fresh cross-compiler works.
7935 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7936 # <limits.h> exists even on freestanding compilers.
7937 # On the NeXT, cc -E runs the code through the compiler's parser,
7938 # not just through cpp. "Syntax error" is here to catch this case.
7939 cat >conftest.$ac_ext <<_ACEOF
7940/* confdefs.h. */
7941_ACEOF
7942cat confdefs.h >>conftest.$ac_ext
7943cat >>conftest.$ac_ext <<_ACEOF
7944/* end confdefs.h. */
7945#ifdef __STDC__
7946# include <limits.h>
7947#else
7948# include <assert.h>
7949#endif
7950 Syntax error
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 :
7970else
7971 $as_echo "$as_me: failed program was:" >&5
7972sed 's/^/| /' conftest.$ac_ext >&5
7973
7974 # Broken: fails on valid input.
7975continue
7976fi
7977
7978rm -f conftest.err conftest.$ac_ext
7979
7980 # OK, works on sane cases. Now check whether nonexistent headers
7981 # can be detected and how.
7982 cat >conftest.$ac_ext <<_ACEOF
7983/* confdefs.h. */
7984_ACEOF
7985cat confdefs.h >>conftest.$ac_ext
7986cat >>conftest.$ac_ext <<_ACEOF
7987/* end confdefs.h. */
7988#include <ac_nonexistent.h>
7989_ACEOF
7990if { (ac_try="$ac_cpp conftest.$ac_ext"
7991case "(($ac_try" in
7992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7993 *) ac_try_echo=$ac_try;;
7994esac
7995eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7996$as_echo "$ac_try_echo") >&5
7997 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7998 ac_status=$?
7999 grep -v '^ *+' conftest.er1 >conftest.err
8000 rm -f conftest.er1
8001 cat conftest.err >&5
8002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003 (exit $ac_status); } >/dev/null && {
8004 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8005 test ! -s conftest.err
8006 }; then
8007 # Broken: success on invalid input.
8008continue
8009else
8010 $as_echo "$as_me: failed program was:" >&5
8011sed 's/^/| /' conftest.$ac_ext >&5
8012
8013 # Passes both tests.
8014ac_preproc_ok=:
8015break
8016fi
8017
8018rm -f conftest.err conftest.$ac_ext
8019
8020done
8021# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8022rm -f conftest.err conftest.$ac_ext
8023if $ac_preproc_ok; then
8024 break
8025fi
8026
8027 done
8028 ac_cv_prog_CXXCPP=$CXXCPP
8029
8030fi
8031 CXXCPP=$ac_cv_prog_CXXCPP
8032else
8033 ac_cv_prog_CXXCPP=$CXXCPP
8034fi
8035{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
8036$as_echo "$CXXCPP" >&6; }
8037ac_preproc_ok=false
8038for ac_cxx_preproc_warn_flag in '' yes
8039do
8040 # Use a header file that comes with gcc, so configuring glibc
8041 # with a fresh cross-compiler works.
8042 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8043 # <limits.h> exists even on freestanding compilers.
8044 # On the NeXT, cc -E runs the code through the compiler's parser,
8045 # not just through cpp. "Syntax error" is here to catch this case.
8046 cat >conftest.$ac_ext <<_ACEOF
8047/* confdefs.h. */
8048_ACEOF
8049cat confdefs.h >>conftest.$ac_ext
8050cat >>conftest.$ac_ext <<_ACEOF
8051/* end confdefs.h. */
8052#ifdef __STDC__
8053# include <limits.h>
8054#else
8055# include <assert.h>
8056#endif
8057 Syntax error
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 :
8077else
8078 $as_echo "$as_me: failed program was:" >&5
8079sed 's/^/| /' conftest.$ac_ext >&5
8080
8081 # Broken: fails on valid input.
8082continue
8083fi
8084
8085rm -f conftest.err conftest.$ac_ext
8086
8087 # OK, works on sane cases. Now check whether nonexistent headers
8088 # can be detected and how.
8089 cat >conftest.$ac_ext <<_ACEOF
8090/* confdefs.h. */
8091_ACEOF
8092cat confdefs.h >>conftest.$ac_ext
8093cat >>conftest.$ac_ext <<_ACEOF
8094/* end confdefs.h. */
8095#include <ac_nonexistent.h>
8096_ACEOF
8097if { (ac_try="$ac_cpp conftest.$ac_ext"
8098case "(($ac_try" in
8099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8100 *) ac_try_echo=$ac_try;;
8101esac
8102eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8103$as_echo "$ac_try_echo") >&5
8104 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8105 ac_status=$?
8106 grep -v '^ *+' conftest.er1 >conftest.err
8107 rm -f conftest.er1
8108 cat conftest.err >&5
8109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110 (exit $ac_status); } >/dev/null && {
8111 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8112 test ! -s conftest.err
8113 }; then
8114 # Broken: success on invalid input.
8115continue
8116else
8117 $as_echo "$as_me: failed program was:" >&5
8118sed 's/^/| /' conftest.$ac_ext >&5
8119
8120 # Passes both tests.
8121ac_preproc_ok=:
8122break
8123fi
8124
8125rm -f conftest.err conftest.$ac_ext
8126
8127done
8128# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8129rm -f conftest.err conftest.$ac_ext
8130if $ac_preproc_ok; then
8131 :
8132else
8133 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8134$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8135_lt_caught_CXX_error=yes; }
8136fi
8137
8138ac_ext=c
8139ac_cpp='$CPP $CPPFLAGS'
8140ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8141ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8142ac_compiler_gnu=$ac_cv_c_compiler_gnu
8143
8144else
8145 _lt_caught_CXX_error=yes
8146fi
8147
8148
8149
8150
8151
8152# Set options
8153
8154
8155
8156 enable_dlopen=no
8157
8158
8159 enable_win32_dll=no
8160
8161
8162 # Check whether --enable-shared was given.
8163if test "${enable_shared+set}" = set; then
8164 enableval=$enable_shared; p=${PACKAGE-default}
8165 case $enableval in
8166 yes) enable_shared=yes ;;
8167 no) enable_shared=no ;;
8168 *)
8169 enable_shared=no
8170 # Look at the argument we got. We use all the common list separators.
8171 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8172 for pkg in $enableval; do
8173 IFS="$lt_save_ifs"
8174 if test "X$pkg" = "X$p"; then
8175 enable_shared=yes
8176 fi
8177 done
8178 IFS="$lt_save_ifs"
8179 ;;
8180 esac
8181else
8182 enable_shared=yes
8183fi
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193 # Check whether --enable-static was given.
8194if test "${enable_static+set}" = set; then
8195 enableval=$enable_static; p=${PACKAGE-default}
8196 case $enableval in
8197 yes) enable_static=yes ;;
8198 no) enable_static=no ;;
8199 *)
8200 enable_static=no
8201 # Look at the argument we got. We use all the common list separators.
8202 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8203 for pkg in $enableval; do
8204 IFS="$lt_save_ifs"
8205 if test "X$pkg" = "X$p"; then
8206 enable_static=yes
8207 fi
8208 done
8209 IFS="$lt_save_ifs"
8210 ;;
8211 esac
8212else
8213 enable_static=yes
8214fi
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225# Check whether --with-pic was given.
8226if test "${with_pic+set}" = set; then
8227 withval=$with_pic; pic_mode="$withval"
8228else
8229 pic_mode=default
8230fi
8231
8232
8233test -z "$pic_mode" && pic_mode=default
8234
8235
8236
8237
8238
8239
8240
8241 # Check whether --enable-fast-install was given.
8242if test "${enable_fast_install+set}" = set; then
8243 enableval=$enable_fast_install; p=${PACKAGE-default}
8244 case $enableval in
8245 yes) enable_fast_install=yes ;;
8246 no) enable_fast_install=no ;;
8247 *)
8248 enable_fast_install=no
8249 # Look at the argument we got. We use all the common list separators.
8250 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8251 for pkg in $enableval; do
8252 IFS="$lt_save_ifs"
8253 if test "X$pkg" = "X$p"; then
8254 enable_fast_install=yes
8255 fi
8256 done
8257 IFS="$lt_save_ifs"
8258 ;;
8259 esac
8260else
8261 enable_fast_install=yes
8262fi
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274# This can be used to rebuild libtool when needed
8275LIBTOOL_DEPS="$ltmain"
8276
8277# Always use our own libtool.
8278LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304test -z "$LN_S" && LN_S="ln -s"
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319if test -n "${ZSH_VERSION+set}" ; then
8320 setopt NO_GLOB_SUBST
8321fi
8322
8323{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
8324$as_echo_n "checking for objdir... " >&6; }
8325if test "${lt_cv_objdir+set}" = set; then
8326 $as_echo_n "(cached) " >&6
8327else
8328 rm -f .libs 2>/dev/null
8329mkdir .libs 2>/dev/null
8330if test -d .libs; then
8331 lt_cv_objdir=.libs
8332else
8333 # MS-DOS does not allow filenames that begin with a dot.
8334 lt_cv_objdir=_libs
8335fi
8336rmdir .libs 2>/dev/null
8337fi
8338{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8339$as_echo "$lt_cv_objdir" >&6; }
8340objdir=$lt_cv_objdir
8341
8342
8343
8344
8345
8346cat >>confdefs.h <<_ACEOF
8347#define LT_OBJDIR "$lt_cv_objdir/"
8348_ACEOF
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366case $host_os in
8367aix3*)
8368 # AIX sometimes has problems with the GCC collect2 program. For some
8369 # reason, if we set the COLLECT_NAMES environment variable, the problems
8370 # vanish in a puff of smoke.
8371 if test "X${COLLECT_NAMES+set}" != Xset; then
8372 COLLECT_NAMES=
8373 export COLLECT_NAMES
8374 fi
8375 ;;
8376esac
8377
8378# Sed substitution that helps us do robust quoting. It backslashifies
8379# metacharacters that are still active within double-quoted strings.
8380sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8381
8382# Same as above, but do not quote variable references.
8383double_quote_subst='s/\(["`\\]\)/\\\1/g'
8384
8385# Sed substitution to delay expansion of an escaped shell variable in a
8386# double_quote_subst'ed string.
8387delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8388
8389# Sed substitution to delay expansion of an escaped single quote.
8390delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8391
8392# Sed substitution to avoid accidental globbing in evaled expressions
8393no_glob_subst='s/\*/\\\*/g'
8394
8395# Global variables:
8396ofile=libtool
8397can_build_shared=yes
8398
8399# All known linkers require a `.a' archive for static linking (except MSVC,
8400# which needs '.lib').
8401libext=a
8402
8403with_gnu_ld="$lt_cv_prog_gnu_ld"
8404
8405old_CC="$CC"
8406old_CFLAGS="$CFLAGS"
8407
8408# Set sane defaults for various variables
8409test -z "$CC" && CC=cc
8410test -z "$LTCC" && LTCC=$CC
8411test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8412test -z "$LD" && LD=ld
8413test -z "$ac_objext" && ac_objext=o
8414
8415for cc_temp in $compiler""; do
8416 case $cc_temp in
8417 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8418 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8419 \-*) ;;
8420 *) break;;
8421 esac
8422done
8423cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8424
8425
8426# Only perform the check for file, if the check method requires it
8427test -z "$MAGIC_CMD" && MAGIC_CMD=file
8428case $deplibs_check_method in
8429file_magic*)
8430 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8431 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8432$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8433if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8434 $as_echo_n "(cached) " >&6
8435else
8436 case $MAGIC_CMD in
8437[\\/*] | ?:[\\/]*)
8438 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8439 ;;
8440*)
8441 lt_save_MAGIC_CMD="$MAGIC_CMD"
8442 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8443 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8444 for ac_dir in $ac_dummy; do
8445 IFS="$lt_save_ifs"
8446 test -z "$ac_dir" && ac_dir=.
8447 if test -f $ac_dir/${ac_tool_prefix}file; then
8448 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8449 if test -n "$file_magic_test_file"; then
8450 case $deplibs_check_method in
8451 "file_magic "*)
8452 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8453 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8454 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8455 $EGREP "$file_magic_regex" > /dev/null; then
8456 :
8457 else
8458 cat <<_LT_EOF 1>&2
8459
8460*** Warning: the command libtool uses to detect shared libraries,
8461*** $file_magic_cmd, produces output that libtool cannot recognize.
8462*** The result is that libtool may fail to recognize shared libraries
8463*** as such. This will affect the creation of libtool libraries that
8464*** depend on shared libraries, but programs linked with such libtool
8465*** libraries will work regardless of this problem. Nevertheless, you
8466*** may want to report the problem to your system manager and/or to
8467*** bug-libtool@gnu.org
8468
8469_LT_EOF
8470 fi ;;
8471 esac
8472 fi
8473 break
8474 fi
8475 done
8476 IFS="$lt_save_ifs"
8477 MAGIC_CMD="$lt_save_MAGIC_CMD"
8478 ;;
8479esac
8480fi
8481
8482MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8483if test -n "$MAGIC_CMD"; then
8484 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8485$as_echo "$MAGIC_CMD" >&6; }
8486else
8487 { $as_echo "$as_me:$LINENO: result: no" >&5
8488$as_echo "no" >&6; }
8489fi
8490
8491
8492
8493
8494
8495if test -z "$lt_cv_path_MAGIC_CMD"; then
8496 if test -n "$ac_tool_prefix"; then
8497 { $as_echo "$as_me:$LINENO: checking for file" >&5
8498$as_echo_n "checking for file... " >&6; }
8499if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8500 $as_echo_n "(cached) " >&6
8501else
8502 case $MAGIC_CMD in
8503[\\/*] | ?:[\\/]*)
8504 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8505 ;;
8506*)
8507 lt_save_MAGIC_CMD="$MAGIC_CMD"
8508 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8509 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8510 for ac_dir in $ac_dummy; do
8511 IFS="$lt_save_ifs"
8512 test -z "$ac_dir" && ac_dir=.
8513 if test -f $ac_dir/file; then
8514 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8515 if test -n "$file_magic_test_file"; then
8516 case $deplibs_check_method in
8517 "file_magic "*)
8518 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8519 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8520 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8521 $EGREP "$file_magic_regex" > /dev/null; then
8522 :
8523 else
8524 cat <<_LT_EOF 1>&2
8525
8526*** Warning: the command libtool uses to detect shared libraries,
8527*** $file_magic_cmd, produces output that libtool cannot recognize.
8528*** The result is that libtool may fail to recognize shared libraries
8529*** as such. This will affect the creation of libtool libraries that
8530*** depend on shared libraries, but programs linked with such libtool
8531*** libraries will work regardless of this problem. Nevertheless, you
8532*** may want to report the problem to your system manager and/or to
8533*** bug-libtool@gnu.org
8534
8535_LT_EOF
8536 fi ;;
8537 esac
8538 fi
8539 break
8540 fi
8541 done
8542 IFS="$lt_save_ifs"
8543 MAGIC_CMD="$lt_save_MAGIC_CMD"
8544 ;;
8545esac
8546fi
8547
8548MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8549if test -n "$MAGIC_CMD"; then
8550 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8551$as_echo "$MAGIC_CMD" >&6; }
8552else
8553 { $as_echo "$as_me:$LINENO: result: no" >&5
8554$as_echo "no" >&6; }
8555fi
8556
8557
8558 else
8559 MAGIC_CMD=:
8560 fi
8561fi
8562
8563 fi
8564 ;;
8565esac
8566
8567# Use C for the default configuration in the libtool script
8568
8569lt_save_CC="$CC"
8570ac_ext=c
8571ac_cpp='$CPP $CPPFLAGS'
8572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8574ac_compiler_gnu=$ac_cv_c_compiler_gnu
8575
8576
8577# Source file extension for C test sources.
8578ac_ext=c
8579
8580# Object file extension for compiled C test sources.
8581objext=o
8582objext=$objext
8583
8584# Code to be used in simple compile tests
8585lt_simple_compile_test_code="int some_variable = 0;"
8586
8587# Code to be used in simple link tests
8588lt_simple_link_test_code='int main(){return(0);}'
8589
8590
8591
8592
8593
8594
8595
8596# If no C compiler was specified, use CC.
8597LTCC=${LTCC-"$CC"}
8598
8599# If no C compiler flags were specified, use CFLAGS.
8600LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8601
8602# Allow CC to be a program name with arguments.
8603compiler=$CC
8604
8605# Save the default compiler, since it gets overwritten when the other
8606# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8607compiler_DEFAULT=$CC
8608
8609# save warnings/boilerplate of simple test code
8610ac_outfile=conftest.$ac_objext
8611echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8612eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8613_lt_compiler_boilerplate=`cat conftest.err`
8614$RM conftest*
8615
8616ac_outfile=conftest.$ac_objext
8617echo "$lt_simple_link_test_code" >conftest.$ac_ext
8618eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8619_lt_linker_boilerplate=`cat conftest.err`
8620$RM -r conftest*
8621
8622
8623## CAVEAT EMPTOR:
8624## There is no encapsulation within the following macros, do not change
8625## the running order or otherwise move them around unless you know exactly
8626## what you are doing...
8627if test -n "$compiler"; then
8628
8629lt_prog_compiler_no_builtin_flag=
8630
8631if test "$GCC" = yes; then
8632 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8633
8634 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8635$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8636if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8637 $as_echo_n "(cached) " >&6
8638else
8639 lt_cv_prog_compiler_rtti_exceptions=no
8640 ac_outfile=conftest.$ac_objext
8641 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8642 lt_compiler_flag="-fno-rtti -fno-exceptions"
8643 # Insert the option either (1) after the last *FLAGS variable, or
8644 # (2) before a word containing "conftest.", or (3) at the end.
8645 # Note that $ac_compile itself does not contain backslashes and begins
8646 # with a dollar sign (not a hyphen), so the echo should work correctly.
8647 # The option is referenced via a variable to avoid confusing sed.
8648 lt_compile=`echo "$ac_compile" | $SED \
8649 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8650 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8651 -e 's:$: $lt_compiler_flag:'`
8652 (eval echo "\"\$as_me:8652: $lt_compile\"" >&5)
8653 (eval "$lt_compile" 2>conftest.err)
8654 ac_status=$?
8655 cat conftest.err >&5
8656 echo "$as_me:8656: \$? = $ac_status" >&5
8657 if (exit $ac_status) && test -s "$ac_outfile"; then
8658 # The compiler can only warn and ignore the option if not recognized
8659 # So say no if there are warnings other than the usual output.
8660 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8661 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8662 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8663 lt_cv_prog_compiler_rtti_exceptions=yes
8664 fi
8665 fi
8666 $RM conftest*
8667
8668fi
8669{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8670$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8671
8672if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8673 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8674else
8675 :
8676fi
8677
8678fi
8679
8680
8681
8682
8683
8684
8685 lt_prog_compiler_wl=
8686lt_prog_compiler_pic=
8687lt_prog_compiler_static=
8688
8689{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8690$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8691
8692 if test "$GCC" = yes; then
8693 lt_prog_compiler_wl='-Wl,'
8694 lt_prog_compiler_static='-static'
8695
8696 case $host_os in
8697 aix*)
8698 # All AIX code is PIC.
8699 if test "$host_cpu" = ia64; then
8700 # AIX 5 now supports IA64 processor
8701 lt_prog_compiler_static='-Bstatic'
8702 fi
8703 ;;
8704
8705 amigaos*)
8706 case $host_cpu in
8707 powerpc)
8708 # see comment about AmigaOS4 .so support
8709 lt_prog_compiler_pic='-fPIC'
8710 ;;
8711 m68k)
8712 # FIXME: we need at least 68020 code to build shared libraries, but
8713 # adding the `-m68020' flag to GCC prevents building anything better,
8714 # like `-m68040'.
8715 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8716 ;;
8717 esac
8718 ;;
8719
8720 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8721 # PIC is the default for these OSes.
8722 ;;
8723
8724 mingw* | cygwin* | pw32* | os2* | cegcc*)
8725 # This hack is so that the source file can tell whether it is being
8726 # built for inclusion in a dll (and should export symbols for example).
8727 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8728 # (--disable-auto-import) libraries
8729 lt_prog_compiler_pic='-DDLL_EXPORT'
8730 ;;
8731
8732 darwin* | rhapsody*)
8733 # PIC is the default on this platform
8734 # Common symbols not allowed in MH_DYLIB files
8735 lt_prog_compiler_pic='-fno-common'
8736 ;;
8737
8738 hpux*)
8739 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8740 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8741 # sets the default TLS model and affects inlining.
8742 case $host_cpu in
8743 hppa*64*)
8744 # +Z the default
8745 ;;
8746 *)
8747 lt_prog_compiler_pic='-fPIC'
8748 ;;
8749 esac
8750 ;;
8751
8752 interix[3-9]*)
8753 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8754 # Instead, we relocate shared libraries at runtime.
8755 ;;
8756
8757 msdosdjgpp*)
8758 # Just because we use GCC doesn't mean we suddenly get shared libraries
8759 # on systems that don't support them.
8760 lt_prog_compiler_can_build_shared=no
8761 enable_shared=no
8762 ;;
8763
8764 *nto* | *qnx*)
8765 # QNX uses GNU C++, but need to define -shared option too, otherwise
8766 # it will coredump.
8767 lt_prog_compiler_pic='-fPIC -shared'
8768 ;;
8769
8770 sysv4*MP*)
8771 if test -d /usr/nec; then
8772 lt_prog_compiler_pic=-Kconform_pic
8773 fi
8774 ;;
8775
8776 *)
8777 lt_prog_compiler_pic='-fPIC'
8778 ;;
8779 esac
8780 else
8781 # PORTME Check for flag to pass linker flags through the system compiler.
8782 case $host_os in
8783 aix*)
8784 lt_prog_compiler_wl='-Wl,'
8785 if test "$host_cpu" = ia64; then
8786 # AIX 5 now supports IA64 processor
8787 lt_prog_compiler_static='-Bstatic'
8788 else
8789 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8790 fi
8791 ;;
8792
8793 mingw* | cygwin* | pw32* | os2* | cegcc*)
8794 # This hack is so that the source file can tell whether it is being
8795 # built for inclusion in a dll (and should export symbols for example).
8796 lt_prog_compiler_pic='-DDLL_EXPORT'
8797 ;;
8798
8799 hpux9* | hpux10* | hpux11*)
8800 lt_prog_compiler_wl='-Wl,'
8801 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8802 # not for PA HP-UX.
8803 case $host_cpu in
8804 hppa*64*|ia64*)
8805 # +Z the default
8806 ;;
8807 *)
8808 lt_prog_compiler_pic='+Z'
8809 ;;
8810 esac
8811 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8812 lt_prog_compiler_static='${wl}-a ${wl}archive'
8813 ;;
8814
8815 irix5* | irix6* | nonstopux*)
8816 lt_prog_compiler_wl='-Wl,'
8817 # PIC (with -KPIC) is the default.
8818 lt_prog_compiler_static='-non_shared'
8819 ;;
8820
8821 linux* | k*bsd*-gnu)
8822 case $cc_basename in
8823 # old Intel for x86_64 which still supported -KPIC.
8824 ecc*)
8825 lt_prog_compiler_wl='-Wl,'
8826 lt_prog_compiler_pic='-KPIC'
8827 lt_prog_compiler_static='-static'
8828 ;;
8829 # icc used to be incompatible with GCC.
8830 # ICC 10 doesn't accept -KPIC any more.
8831 icc* | ifort*)
8832 lt_prog_compiler_wl='-Wl,'
8833 lt_prog_compiler_pic='-fPIC'
8834 lt_prog_compiler_static='-static'
8835 ;;
8836 # Lahey Fortran 8.1.
8837 lf95*)
8838 lt_prog_compiler_wl='-Wl,'
8839 lt_prog_compiler_pic='--shared'
8840 lt_prog_compiler_static='--static'
8841 ;;
8842 pgcc* | pgf77* | pgf90* | pgf95*)
8843 # Portland Group compilers (*not* the Pentium gcc compiler,
8844 # which looks to be a dead project)
8845 lt_prog_compiler_wl='-Wl,'
8846 lt_prog_compiler_pic='-fpic'
8847 lt_prog_compiler_static='-Bstatic'
8848 ;;
8849 ccc*)
8850 lt_prog_compiler_wl='-Wl,'
8851 # All Alpha code is PIC.
8852 lt_prog_compiler_static='-non_shared'
8853 ;;
8854 xl*)
8855 # IBM XL C 8.0/Fortran 10.1 on PPC
8856 lt_prog_compiler_wl='-Wl,'
8857 lt_prog_compiler_pic='-qpic'
8858 lt_prog_compiler_static='-qstaticlink'
8859 ;;
8860 *)
8861 case `$CC -V 2>&1 | sed 5q` in
8862 *Sun\ C*)
8863 # Sun C 5.9
8864 lt_prog_compiler_pic='-KPIC'
8865 lt_prog_compiler_static='-Bstatic'
8866 lt_prog_compiler_wl='-Wl,'
8867 ;;
8868 *Sun\ F*)
8869 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8870 lt_prog_compiler_pic='-KPIC'
8871 lt_prog_compiler_static='-Bstatic'
8872 lt_prog_compiler_wl=''
8873 ;;
8874 esac
8875 ;;
8876 esac
8877 ;;
8878
8879 newsos6)
8880 lt_prog_compiler_pic='-KPIC'
8881 lt_prog_compiler_static='-Bstatic'
8882 ;;
8883
8884 *nto* | *qnx*)
8885 # QNX uses GNU C++, but need to define -shared option too, otherwise
8886 # it will coredump.
8887 lt_prog_compiler_pic='-fPIC -shared'
8888 ;;
8889
8890 osf3* | osf4* | osf5*)
8891 lt_prog_compiler_wl='-Wl,'
8892 # All OSF/1 code is PIC.
8893 lt_prog_compiler_static='-non_shared'
8894 ;;
8895
8896 rdos*)
8897 lt_prog_compiler_static='-non_shared'
8898 ;;
8899
8900 solaris*)
8901 lt_prog_compiler_pic='-KPIC'
8902 lt_prog_compiler_static='-Bstatic'
8903 case $cc_basename in
8904 f77* | f90* | f95*)
8905 lt_prog_compiler_wl='-Qoption ld ';;
8906 *)
8907 lt_prog_compiler_wl='-Wl,';;
8908 esac
8909 ;;
8910
8911 sunos4*)
8912 lt_prog_compiler_wl='-Qoption ld '
8913 lt_prog_compiler_pic='-PIC'
8914 lt_prog_compiler_static='-Bstatic'
8915 ;;
8916
8917 sysv4 | sysv4.2uw2* | sysv4.3*)
8918 lt_prog_compiler_wl='-Wl,'
8919 lt_prog_compiler_pic='-KPIC'
8920 lt_prog_compiler_static='-Bstatic'
8921 ;;
8922
8923 sysv4*MP*)
8924 if test -d /usr/nec ;then
8925 lt_prog_compiler_pic='-Kconform_pic'
8926 lt_prog_compiler_static='-Bstatic'
8927 fi
8928 ;;
8929
8930 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8931 lt_prog_compiler_wl='-Wl,'
8932 lt_prog_compiler_pic='-KPIC'
8933 lt_prog_compiler_static='-Bstatic'
8934 ;;
8935
8936 unicos*)
8937 lt_prog_compiler_wl='-Wl,'
8938 lt_prog_compiler_can_build_shared=no
8939 ;;
8940
8941 uts4*)
8942 lt_prog_compiler_pic='-pic'
8943 lt_prog_compiler_static='-Bstatic'
8944 ;;
8945
8946 *)
8947 lt_prog_compiler_can_build_shared=no
8948 ;;
8949 esac
8950 fi
8951
8952case $host_os in
8953 # For platforms which do not support PIC, -DPIC is meaningless:
8954 *djgpp*)
8955 lt_prog_compiler_pic=
8956 ;;
8957 *)
8958 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8959 ;;
8960esac
8961{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8962$as_echo "$lt_prog_compiler_pic" >&6; }
8963
8964
8965
8966
8967
8968
8969#
8970# Check to make sure the PIC flag actually works.
8971#
8972if test -n "$lt_prog_compiler_pic"; then
8973 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8974$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8975if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8976 $as_echo_n "(cached) " >&6
8977else
8978 lt_cv_prog_compiler_pic_works=no
8979 ac_outfile=conftest.$ac_objext
8980 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8981 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8982 # Insert the option either (1) after the last *FLAGS variable, or
8983 # (2) before a word containing "conftest.", or (3) at the end.
8984 # Note that $ac_compile itself does not contain backslashes and begins
8985 # with a dollar sign (not a hyphen), so the echo should work correctly.
8986 # The option is referenced via a variable to avoid confusing sed.
8987 lt_compile=`echo "$ac_compile" | $SED \
8988 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8989 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8990 -e 's:$: $lt_compiler_flag:'`
8991 (eval echo "\"\$as_me:8991: $lt_compile\"" >&5)
8992 (eval "$lt_compile" 2>conftest.err)
8993 ac_status=$?
8994 cat conftest.err >&5
8995 echo "$as_me:8995: \$? = $ac_status" >&5
8996 if (exit $ac_status) && test -s "$ac_outfile"; then
8997 # The compiler can only warn and ignore the option if not recognized
8998 # So say no if there are warnings other than the usual output.
8999 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9000 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9001 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9002 lt_cv_prog_compiler_pic_works=yes
9003 fi
9004 fi
9005 $RM conftest*
9006
9007fi
9008{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9009$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9010
9011if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9012 case $lt_prog_compiler_pic in
9013 "" | " "*) ;;
9014 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9015 esac
9016else
9017 lt_prog_compiler_pic=
9018 lt_prog_compiler_can_build_shared=no
9019fi
9020
9021fi
9022
9023
9024
9025
9026
9027
9028#
9029# Check to make sure the static flag actually works.
9030#
9031wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9032{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9033$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9034if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9035 $as_echo_n "(cached) " >&6
9036else
9037 lt_cv_prog_compiler_static_works=no
9038 save_LDFLAGS="$LDFLAGS"
9039 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9040 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9041 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9042 # The linker can only warn and ignore the option if not recognized
9043 # So say no if there are warnings
9044 if test -s conftest.err; then
9045 # Append any errors to the config.log.
9046 cat conftest.err 1>&5
9047 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9048 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9049 if diff conftest.exp conftest.er2 >/dev/null; then
9050 lt_cv_prog_compiler_static_works=yes
9051 fi
9052 else
9053 lt_cv_prog_compiler_static_works=yes
9054 fi
9055 fi
9056 $RM -r conftest*
9057 LDFLAGS="$save_LDFLAGS"
9058
9059fi
9060{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9061$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9062
9063if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9064 :
9065else
9066 lt_prog_compiler_static=
9067fi
9068
9069
9070
9071
9072
9073
9074
9075 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9076$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9077if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9078 $as_echo_n "(cached) " >&6
9079else
9080 lt_cv_prog_compiler_c_o=no
9081 $RM -r conftest 2>/dev/null
9082 mkdir conftest
9083 cd conftest
9084 mkdir out
9085 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9086
9087 lt_compiler_flag="-o out/conftest2.$ac_objext"
9088 # Insert the option either (1) after the last *FLAGS variable, or
9089 # (2) before a word containing "conftest.", or (3) at the end.
9090 # Note that $ac_compile itself does not contain backslashes and begins
9091 # with a dollar sign (not a hyphen), so the echo should work correctly.
9092 lt_compile=`echo "$ac_compile" | $SED \
9093 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9094 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9095 -e 's:$: $lt_compiler_flag:'`
9096 (eval echo "\"\$as_me:9096: $lt_compile\"" >&5)
9097 (eval "$lt_compile" 2>out/conftest.err)
9098 ac_status=$?
9099 cat out/conftest.err >&5
9100 echo "$as_me:9100: \$? = $ac_status" >&5
9101 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9102 then
9103 # The compiler can only warn and ignore the option if not recognized
9104 # So say no if there are warnings
9105 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9106 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9107 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9108 lt_cv_prog_compiler_c_o=yes
9109 fi
9110 fi
9111 chmod u+w . 2>&5
9112 $RM conftest*
9113 # SGI C++ compiler will create directory out/ii_files/ for
9114 # template instantiation
9115 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9116 $RM out/* && rmdir out
9117 cd ..
9118 $RM -r conftest
9119 $RM conftest*
9120
9121fi
9122{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9123$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9124
9125
9126
9127
9128
9129
9130 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9131$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9132if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9133 $as_echo_n "(cached) " >&6
9134else
9135 lt_cv_prog_compiler_c_o=no
9136 $RM -r conftest 2>/dev/null
9137 mkdir conftest
9138 cd conftest
9139 mkdir out
9140 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9141
9142 lt_compiler_flag="-o out/conftest2.$ac_objext"
9143 # Insert the option either (1) after the last *FLAGS variable, or
9144 # (2) before a word containing "conftest.", or (3) at the end.
9145 # Note that $ac_compile itself does not contain backslashes and begins
9146 # with a dollar sign (not a hyphen), so the echo should work correctly.
9147 lt_compile=`echo "$ac_compile" | $SED \
9148 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9149 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9150 -e 's:$: $lt_compiler_flag:'`
9151 (eval echo "\"\$as_me:9151: $lt_compile\"" >&5)
9152 (eval "$lt_compile" 2>out/conftest.err)
9153 ac_status=$?
9154 cat out/conftest.err >&5
9155 echo "$as_me:9155: \$? = $ac_status" >&5
9156 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9157 then
9158 # The compiler can only warn and ignore the option if not recognized
9159 # So say no if there are warnings
9160 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9161 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9162 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9163 lt_cv_prog_compiler_c_o=yes
9164 fi
9165 fi
9166 chmod u+w . 2>&5
9167 $RM conftest*
9168 # SGI C++ compiler will create directory out/ii_files/ for
9169 # template instantiation
9170 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9171 $RM out/* && rmdir out
9172 cd ..
9173 $RM -r conftest
9174 $RM conftest*
9175
9176fi
9177{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9178$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9179
9180
9181
9182
9183hard_links="nottested"
9184if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9185 # do not overwrite the value of need_locks provided by the user
9186 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9187$as_echo_n "checking if we can lock with hard links... " >&6; }
9188 hard_links=yes
9189 $RM conftest*
9190 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9191 touch conftest.a
9192 ln conftest.a conftest.b 2>&5 || hard_links=no
9193 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9194 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
9195$as_echo "$hard_links" >&6; }
9196 if test "$hard_links" = no; then
9197 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9198$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9199 need_locks=warn
9200 fi
9201else
9202 need_locks=no
9203fi
9204
9205
9206
9207
9208
9209
9210 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9211$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9212
9213 runpath_var=
9214 allow_undefined_flag=
9215 always_export_symbols=no
9216 archive_cmds=
9217 archive_expsym_cmds=
9218 compiler_needs_object=no
9219 enable_shared_with_static_runtimes=no
9220 export_dynamic_flag_spec=
9221 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9222 hardcode_automatic=no
9223 hardcode_direct=no
9224 hardcode_direct_absolute=no
9225 hardcode_libdir_flag_spec=
9226 hardcode_libdir_flag_spec_ld=
9227 hardcode_libdir_separator=
9228 hardcode_minus_L=no
9229 hardcode_shlibpath_var=unsupported
9230 inherit_rpath=no
9231 link_all_deplibs=unknown
9232 module_cmds=
9233 module_expsym_cmds=
9234 old_archive_from_new_cmds=
9235 old_archive_from_expsyms_cmds=
9236 thread_safe_flag_spec=
9237 whole_archive_flag_spec=
9238 # include_expsyms should be a list of space-separated symbols to be *always*
9239 # included in the symbol list
9240 include_expsyms=
9241 # exclude_expsyms can be an extended regexp of symbols to exclude
9242 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9243 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9244 # as well as any symbol that contains `d'.
9245 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9246 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9247 # platforms (ab)use it in PIC code, but their linkers get confused if
9248 # the symbol is explicitly referenced. Since portable code cannot
9249 # rely on this symbol name, it's probably fine to never include it in
9250 # preloaded symbol tables.
9251 # Exclude shared library initialization/finalization symbols.
9252 extract_expsyms_cmds=
9253
9254 case $host_os in
9255 cygwin* | mingw* | pw32* | cegcc*)
9256 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9257 # When not using gcc, we currently assume that we are using
9258 # Microsoft Visual C++.
9259 if test "$GCC" != yes; then
9260 with_gnu_ld=no
9261 fi
9262 ;;
9263 interix*)
9264 # we just hope/assume this is gcc and not c89 (= MSVC++)
9265 with_gnu_ld=yes
9266 ;;
9267 openbsd*)
9268 with_gnu_ld=no
9269 ;;
9270 esac
9271
9272 ld_shlibs=yes
9273 if test "$with_gnu_ld" = yes; then
9274 # If archive_cmds runs LD, not CC, wlarc should be empty
9275 wlarc='${wl}'
9276
9277 # Set some defaults for GNU ld with shared library support. These
9278 # are reset later if shared libraries are not supported. Putting them
9279 # here allows them to be overridden if necessary.
9280 runpath_var=LD_RUN_PATH
9281 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9282 export_dynamic_flag_spec='${wl}--export-dynamic'
9283 # ancient GNU ld didn't support --whole-archive et. al.
9284 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9285 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9286 else
9287 whole_archive_flag_spec=
9288 fi
9289 supports_anon_versioning=no
9290 case `$LD -v 2>&1` in
9291 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9292 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9293 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9294 *\ 2.11.*) ;; # other 2.11 versions
9295 *) supports_anon_versioning=yes ;;
9296 esac
9297
9298 # See if GNU ld supports shared libraries.
9299 case $host_os in
9300 aix[3-9]*)
9301 # On AIX/PPC, the GNU linker is very broken
9302 if test "$host_cpu" != ia64; then
9303 ld_shlibs=no
9304 cat <<_LT_EOF 1>&2
9305
9306*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9307*** to be unable to reliably create shared libraries on AIX.
9308*** Therefore, libtool is disabling shared libraries support. If you
9309*** really care for shared libraries, you may want to modify your PATH
9310*** so that a non-GNU linker is found, and then restart.
9311
9312_LT_EOF
9313 fi
9314 ;;
9315
9316 amigaos*)
9317 case $host_cpu in
9318 powerpc)
9319 # see comment about AmigaOS4 .so support
9320 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9321 archive_expsym_cmds=''
9322 ;;
9323 m68k)
9324 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)'
9325 hardcode_libdir_flag_spec='-L$libdir'
9326 hardcode_minus_L=yes
9327 ;;
9328 esac
9329 ;;
9330
9331 beos*)
9332 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9333 allow_undefined_flag=unsupported
9334 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9335 # support --undefined. This deserves some investigation. FIXME
9336 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9337 else
9338 ld_shlibs=no
9339 fi
9340 ;;
9341
9342 cygwin* | mingw* | pw32* | cegcc*)
9343 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9344 # as there is no search path for DLLs.
9345 hardcode_libdir_flag_spec='-L$libdir'
9346 allow_undefined_flag=unsupported
9347 always_export_symbols=no
9348 enable_shared_with_static_runtimes=yes
9349 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9350
9351 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9352 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9353 # If the export-symbols file already is a .def file (1st line
9354 # is EXPORTS), use it as is; otherwise, prepend...
9355 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9356 cp $export_symbols $output_objdir/$soname.def;
9357 else
9358 echo EXPORTS > $output_objdir/$soname.def;
9359 cat $export_symbols >> $output_objdir/$soname.def;
9360 fi~
9361 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9362 else
9363 ld_shlibs=no
9364 fi
9365 ;;
9366
9367 interix[3-9]*)
9368 hardcode_direct=no
9369 hardcode_shlibpath_var=no
9370 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9371 export_dynamic_flag_spec='${wl}-E'
9372 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9373 # Instead, shared libraries are loaded at an image base (0x10000000 by
9374 # default) and relocated if they conflict, which is a slow very memory
9375 # consuming and fragmenting process. To avoid this, we pick a random,
9376 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9377 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9378 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9379 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'
9380 ;;
9381
9382 gnu* | linux* | tpf* | k*bsd*-gnu)
9383 tmp_diet=no
9384 if test "$host_os" = linux-dietlibc; then
9385 case $cc_basename in
9386 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9387 esac
9388 fi
9389 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9390 && test "$tmp_diet" = no
9391 then
9392 tmp_addflag=
9393 tmp_sharedflag='-shared'
9394 case $cc_basename,$host_cpu in
9395 pgcc*) # Portland Group C compiler
9396 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'
9397 tmp_addflag=' $pic_flag'
9398 ;;
9399 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9400 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'
9401 tmp_addflag=' $pic_flag -Mnomain' ;;
9402 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9403 tmp_addflag=' -i_dynamic' ;;
9404 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9405 tmp_addflag=' -i_dynamic -nofor_main' ;;
9406 ifc* | ifort*) # Intel Fortran compiler
9407 tmp_addflag=' -nofor_main' ;;
9408 lf95*) # Lahey Fortran 8.1
9409 whole_archive_flag_spec=
9410 tmp_sharedflag='--shared' ;;
9411 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9412 tmp_sharedflag='-qmkshrobj'
9413 tmp_addflag= ;;
9414 esac
9415 case `$CC -V 2>&1 | sed 5q` in
9416 *Sun\ C*) # Sun C 5.9
9417 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'
9418 compiler_needs_object=yes
9419 tmp_sharedflag='-G' ;;
9420 *Sun\ F*) # Sun Fortran 8.3
9421 tmp_sharedflag='-G' ;;
9422 esac
9423 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9424
9425 if test "x$supports_anon_versioning" = xyes; then
9426 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9427 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9428 echo "local: *; };" >> $output_objdir/$libname.ver~
9429 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9430 fi
9431
9432 case $cc_basename in
9433 xlf*)
9434 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9435 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9436 hardcode_libdir_flag_spec=
9437 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9438 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9439 if test "x$supports_anon_versioning" = xyes; then
9440 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9441 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9442 echo "local: *; };" >> $output_objdir/$libname.ver~
9443 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9444 fi
9445 ;;
9446 esac
9447 else
9448 ld_shlibs=no
9449 fi
9450 ;;
9451
9452 netbsd*)
9453 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9454 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9455 wlarc=
9456 else
9457 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9458 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9459 fi
9460 ;;
9461
9462 solaris*)
9463 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9464 ld_shlibs=no
9465 cat <<_LT_EOF 1>&2
9466
9467*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9468*** create shared libraries on Solaris systems. Therefore, libtool
9469*** is disabling shared libraries support. We urge you to upgrade GNU
9470*** binutils to release 2.9.1 or newer. Another option is to modify
9471*** your PATH or compiler configuration so that the native linker is
9472*** used, and then restart.
9473
9474_LT_EOF
9475 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9476 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9477 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9478 else
9479 ld_shlibs=no
9480 fi
9481 ;;
9482
9483 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9484 case `$LD -v 2>&1` in
9485 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9486 ld_shlibs=no
9487 cat <<_LT_EOF 1>&2
9488
9489*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9490*** reliably create shared libraries on SCO systems. Therefore, libtool
9491*** is disabling shared libraries support. We urge you to upgrade GNU
9492*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9493*** your PATH or compiler configuration so that the native linker is
9494*** used, and then restart.
9495
9496_LT_EOF
9497 ;;
9498 *)
9499 # For security reasons, it is highly recommended that you always
9500 # use absolute paths for naming shared libraries, and exclude the
9501 # DT_RUNPATH tag from executables and libraries. But doing so
9502 # requires that you compile everything twice, which is a pain.
9503 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9504 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9505 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9506 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9507 else
9508 ld_shlibs=no
9509 fi
9510 ;;
9511 esac
9512 ;;
9513
9514 sunos4*)
9515 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9516 wlarc=
9517 hardcode_direct=yes
9518 hardcode_shlibpath_var=no
9519 ;;
9520
9521 *)
9522 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9523 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9524 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9525 else
9526 ld_shlibs=no
9527 fi
9528 ;;
9529 esac
9530
9531 if test "$ld_shlibs" = no; then
9532 runpath_var=
9533 hardcode_libdir_flag_spec=
9534 export_dynamic_flag_spec=
9535 whole_archive_flag_spec=
9536 fi
9537 else
9538 # PORTME fill in a description of your system's linker (not GNU ld)
9539 case $host_os in
9540 aix3*)
9541 allow_undefined_flag=unsupported
9542 always_export_symbols=yes
9543 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'
9544 # Note: this linker hardcodes the directories in LIBPATH if there
9545 # are no directories specified by -L.
9546 hardcode_minus_L=yes
9547 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9548 # Neither direct hardcoding nor static linking is supported with a
9549 # broken collect2.
9550 hardcode_direct=unsupported
9551 fi
9552 ;;
9553
9554 aix[4-9]*)
9555 if test "$host_cpu" = ia64; then
9556 # On IA64, the linker does run time linking by default, so we don't
9557 # have to do anything special.
9558 aix_use_runtimelinking=no
9559 exp_sym_flag='-Bexport'
9560 no_entry_flag=""
9561 else
9562 # If we're using GNU nm, then we don't want the "-C" option.
9563 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9564 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9565 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'
9566 else
9567 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'
9568 fi
9569 aix_use_runtimelinking=no
9570
9571 # Test if we are trying to use run time linking or normal
9572 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9573 # need to do runtime linking.
9574 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9575 for ld_flag in $LDFLAGS; do
9576 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9577 aix_use_runtimelinking=yes
9578 break
9579 fi
9580 done
9581 ;;
9582 esac
9583
9584 exp_sym_flag='-bexport'
9585 no_entry_flag='-bnoentry'
9586 fi
9587
9588 # When large executables or shared objects are built, AIX ld can
9589 # have problems creating the table of contents. If linking a library
9590 # or program results in "error TOC overflow" add -mminimal-toc to
9591 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9592 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9593
9594 archive_cmds=''
9595 hardcode_direct=yes
9596 hardcode_direct_absolute=yes
9597 hardcode_libdir_separator=':'
9598 link_all_deplibs=yes
9599 file_list_spec='${wl}-f,'
9600
9601 if test "$GCC" = yes; then
9602 case $host_os in aix4.[012]|aix4.[012].*)
9603 # We only want to do this on AIX 4.2 and lower, the check
9604 # below for broken collect2 doesn't work under 4.3+
9605 collect2name=`${CC} -print-prog-name=collect2`
9606 if test -f "$collect2name" &&
9607 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9608 then
9609 # We have reworked collect2
9610 :
9611 else
9612 # We have old collect2
9613 hardcode_direct=unsupported
9614 # It fails to find uninstalled libraries when the uninstalled
9615 # path is not listed in the libpath. Setting hardcode_minus_L
9616 # to unsupported forces relinking
9617 hardcode_minus_L=yes
9618 hardcode_libdir_flag_spec='-L$libdir'
9619 hardcode_libdir_separator=
9620 fi
9621 ;;
9622 esac
9623 shared_flag='-shared'
9624 if test "$aix_use_runtimelinking" = yes; then
9625 shared_flag="$shared_flag "'${wl}-G'
9626 fi
9627 else
9628 # not using gcc
9629 if test "$host_cpu" = ia64; then
9630 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9631 # chokes on -Wl,-G. The following line is correct:
9632 shared_flag='-G'
9633 else
9634 if test "$aix_use_runtimelinking" = yes; then
9635 shared_flag='${wl}-G'
9636 else
9637 shared_flag='${wl}-bM:SRE'
9638 fi
9639 fi
9640 fi
9641
9642 export_dynamic_flag_spec='${wl}-bexpall'
9643 # It seems that -bexpall does not export symbols beginning with
9644 # underscore (_), so it is better to generate a list of symbols to export.
9645 always_export_symbols=yes
9646 if test "$aix_use_runtimelinking" = yes; then
9647 # Warning - without using the other runtime loading flags (-brtl),
9648 # -berok will link without error, but may produce a broken library.
9649 allow_undefined_flag='-berok'
9650 # Determine the default libpath from the value encoded in an
9651 # empty executable.
9652 cat >conftest.$ac_ext <<_ACEOF
9653/* confdefs.h. */
9654_ACEOF
9655cat confdefs.h >>conftest.$ac_ext
9656cat >>conftest.$ac_ext <<_ACEOF
9657/* end confdefs.h. */
9658
9659int
9660main ()
9661{
9662
9663 ;
9664 return 0;
9665}
9666_ACEOF
9667rm -f conftest.$ac_objext conftest$ac_exeext
9668if { (ac_try="$ac_link"
9669case "(($ac_try" in
9670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9671 *) ac_try_echo=$ac_try;;
9672esac
9673eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9674$as_echo "$ac_try_echo") >&5
9675 (eval "$ac_link") 2>conftest.er1
9676 ac_status=$?
9677 grep -v '^ *+' conftest.er1 >conftest.err
9678 rm -f conftest.er1
9679 cat conftest.err >&5
9680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); } && {
9682 test -z "$ac_c_werror_flag" ||
9683 test ! -s conftest.err
9684 } && test -s conftest$ac_exeext && {
9685 test "$cross_compiling" = yes ||
9686 $as_test_x conftest$ac_exeext
9687 }; then
9688
9689lt_aix_libpath_sed='
9690 /Import File Strings/,/^$/ {
9691 /^0/ {
9692 s/^0 *\(.*\)$/\1/
9693 p
9694 }
9695 }'
9696aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9697# Check for a 64-bit object if we didn't find anything.
9698if test -z "$aix_libpath"; then
9699 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9700fi
9701else
9702 $as_echo "$as_me: failed program was:" >&5
9703sed 's/^/| /' conftest.$ac_ext >&5
9704
9705
9706fi
9707
9708rm -rf conftest.dSYM
9709rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9710 conftest$ac_exeext conftest.$ac_ext
9711if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9712
9713 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9714 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"
9715 else
9716 if test "$host_cpu" = ia64; then
9717 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9718 allow_undefined_flag="-z nodefs"
9719 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"
9720 else
9721 # Determine the default libpath from the value encoded in an
9722 # empty executable.
9723 cat >conftest.$ac_ext <<_ACEOF
9724/* confdefs.h. */
9725_ACEOF
9726cat confdefs.h >>conftest.$ac_ext
9727cat >>conftest.$ac_ext <<_ACEOF
9728/* end confdefs.h. */
9729
9730int
9731main ()
9732{
9733
9734 ;
9735 return 0;
9736}
9737_ACEOF
9738rm -f conftest.$ac_objext conftest$ac_exeext
9739if { (ac_try="$ac_link"
9740case "(($ac_try" in
9741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9742 *) ac_try_echo=$ac_try;;
9743esac
9744eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9745$as_echo "$ac_try_echo") >&5
9746 (eval "$ac_link") 2>conftest.er1
9747 ac_status=$?
9748 grep -v '^ *+' conftest.er1 >conftest.err
9749 rm -f conftest.er1
9750 cat conftest.err >&5
9751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752 (exit $ac_status); } && {
9753 test -z "$ac_c_werror_flag" ||
9754 test ! -s conftest.err
9755 } && test -s conftest$ac_exeext && {
9756 test "$cross_compiling" = yes ||
9757 $as_test_x conftest$ac_exeext
9758 }; then
9759
9760lt_aix_libpath_sed='
9761 /Import File Strings/,/^$/ {
9762 /^0/ {
9763 s/^0 *\(.*\)$/\1/
9764 p
9765 }
9766 }'
9767aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9768# Check for a 64-bit object if we didn't find anything.
9769if test -z "$aix_libpath"; then
9770 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9771fi
9772else
9773 $as_echo "$as_me: failed program was:" >&5
9774sed 's/^/| /' conftest.$ac_ext >&5
9775
9776
9777fi
9778
9779rm -rf conftest.dSYM
9780rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9781 conftest$ac_exeext conftest.$ac_ext
9782if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9783
9784 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9785 # Warning - without using the other run time loading flags,
9786 # -berok will link without error, but may produce a broken library.
9787 no_undefined_flag=' ${wl}-bernotok'
9788 allow_undefined_flag=' ${wl}-berok'
9789 # Exported symbols can be pulled into shared objects from archives
9790 whole_archive_flag_spec='$convenience'
9791 archive_cmds_need_lc=yes
9792 # This is similar to how AIX traditionally builds its shared libraries.
9793 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'
9794 fi
9795 fi
9796 ;;
9797
9798 amigaos*)
9799 case $host_cpu in
9800 powerpc)
9801 # see comment about AmigaOS4 .so support
9802 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9803 archive_expsym_cmds=''
9804 ;;
9805 m68k)
9806 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)'
9807 hardcode_libdir_flag_spec='-L$libdir'
9808 hardcode_minus_L=yes
9809 ;;
9810 esac
9811 ;;
9812
9813 bsdi[45]*)
9814 export_dynamic_flag_spec=-rdynamic
9815 ;;
9816
9817 cygwin* | mingw* | pw32* | cegcc*)
9818 # When not using gcc, we currently assume that we are using
9819 # Microsoft Visual C++.
9820 # hardcode_libdir_flag_spec is actually meaningless, as there is
9821 # no search path for DLLs.
9822 hardcode_libdir_flag_spec=' '
9823 allow_undefined_flag=unsupported
9824 # Tell ltmain to make .lib files, not .a files.
9825 libext=lib
9826 # Tell ltmain to make .dll files, not .so files.
9827 shrext_cmds=".dll"
9828 # FIXME: Setting linknames here is a bad hack.
9829 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9830 # The linker will automatically build a .lib file if we build a DLL.
9831 old_archive_from_new_cmds='true'
9832 # FIXME: Should let the user specify the lib program.
9833 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9834 fix_srcfile_path='`cygpath -w "$srcfile"`'
9835 enable_shared_with_static_runtimes=yes
9836 ;;
9837
9838 darwin* | rhapsody*)
9839
9840
9841 archive_cmds_need_lc=no
9842 hardcode_direct=no
9843 hardcode_automatic=yes
9844 hardcode_shlibpath_var=unsupported
9845 whole_archive_flag_spec=''
9846 link_all_deplibs=yes
9847 allow_undefined_flag="$_lt_dar_allow_undefined"
9848 case $cc_basename in
9849 ifort*) _lt_dar_can_shared=yes ;;
9850 *) _lt_dar_can_shared=$GCC ;;
9851 esac
9852 if test "$_lt_dar_can_shared" = "yes"; then
9853 output_verbose_link_cmd=echo
9854 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9855 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9856 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}"
9857 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}"
9858
9859 else
9860 ld_shlibs=no
9861 fi
9862
9863 ;;
9864
9865 dgux*)
9866 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9867 hardcode_libdir_flag_spec='-L$libdir'
9868 hardcode_shlibpath_var=no
9869 ;;
9870
9871 freebsd1*)
9872 ld_shlibs=no
9873 ;;
9874
9875 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9876 # support. Future versions do this automatically, but an explicit c++rt0.o
9877 # does not break anything, and helps significantly (at the cost of a little
9878 # extra space).
9879 freebsd2.2*)
9880 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9881 hardcode_libdir_flag_spec='-R$libdir'
9882 hardcode_direct=yes
9883 hardcode_shlibpath_var=no
9884 ;;
9885
9886 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9887 freebsd2*)
9888 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9889 hardcode_direct=yes
9890 hardcode_minus_L=yes
9891 hardcode_shlibpath_var=no
9892 ;;
9893
9894 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9895 freebsd* | dragonfly*)
9896 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9897 hardcode_libdir_flag_spec='-R$libdir'
9898 hardcode_direct=yes
9899 hardcode_shlibpath_var=no
9900 ;;
9901
9902 hpux9*)
9903 if test "$GCC" = yes; then
9904 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'
9905 else
9906 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'
9907 fi
9908 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9909 hardcode_libdir_separator=:
9910 hardcode_direct=yes
9911
9912 # hardcode_minus_L: Not really in the search PATH,
9913 # but as the default location of the library.
9914 hardcode_minus_L=yes
9915 export_dynamic_flag_spec='${wl}-E'
9916 ;;
9917
9918 hpux10*)
9919 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9920 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9921 else
9922 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9923 fi
9924 if test "$with_gnu_ld" = no; then
9925 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9926 hardcode_libdir_flag_spec_ld='+b $libdir'
9927 hardcode_libdir_separator=:
9928 hardcode_direct=yes
9929 hardcode_direct_absolute=yes
9930 export_dynamic_flag_spec='${wl}-E'
9931 # hardcode_minus_L: Not really in the search PATH,
9932 # but as the default location of the library.
9933 hardcode_minus_L=yes
9934 fi
9935 ;;
9936
9937 hpux11*)
9938 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9939 case $host_cpu in
9940 hppa*64*)
9941 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9942 ;;
9943 ia64*)
9944 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9945 ;;
9946 *)
9947 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9948 ;;
9949 esac
9950 else
9951 case $host_cpu in
9952 hppa*64*)
9953 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9954 ;;
9955 ia64*)
9956 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9957 ;;
9958 *)
9959 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9960 ;;
9961 esac
9962 fi
9963 if test "$with_gnu_ld" = no; then
9964 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9965 hardcode_libdir_separator=:
9966
9967 case $host_cpu in
9968 hppa*64*|ia64*)
9969 hardcode_direct=no
9970 hardcode_shlibpath_var=no
9971 ;;
9972 *)
9973 hardcode_direct=yes
9974 hardcode_direct_absolute=yes
9975 export_dynamic_flag_spec='${wl}-E'
9976
9977 # hardcode_minus_L: Not really in the search PATH,
9978 # but as the default location of the library.
9979 hardcode_minus_L=yes
9980 ;;
9981 esac
9982 fi
9983 ;;
9984
9985 irix5* | irix6* | nonstopux*)
9986 if test "$GCC" = yes; then
9987 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'
9988 # Try to use the -exported_symbol ld option, if it does not
9989 # work, assume that -exports_file does not work either and
9990 # implicitly export all symbols.
9991 save_LDFLAGS="$LDFLAGS"
9992 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9993 cat >conftest.$ac_ext <<_ACEOF
9994int foo(void) {}
9995_ACEOF
9996rm -f conftest.$ac_objext conftest$ac_exeext
9997if { (ac_try="$ac_link"
9998case "(($ac_try" in
9999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10000 *) ac_try_echo=$ac_try;;
10001esac
10002eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10003$as_echo "$ac_try_echo") >&5
10004 (eval "$ac_link") 2>conftest.er1
10005 ac_status=$?
10006 grep -v '^ *+' conftest.er1 >conftest.err
10007 rm -f conftest.er1
10008 cat conftest.err >&5
10009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010 (exit $ac_status); } && {
10011 test -z "$ac_c_werror_flag" ||
10012 test ! -s conftest.err
10013 } && test -s conftest$ac_exeext && {
10014 test "$cross_compiling" = yes ||
10015 $as_test_x conftest$ac_exeext
10016 }; then
10017 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'
10018
10019else
10020 $as_echo "$as_me: failed program was:" >&5
10021sed 's/^/| /' conftest.$ac_ext >&5
10022
10023
10024fi
10025
10026rm -rf conftest.dSYM
10027rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10028 conftest$ac_exeext conftest.$ac_ext
10029 LDFLAGS="$save_LDFLAGS"
10030 else
10031 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'
10032 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'
10033 fi
10034 archive_cmds_need_lc='no'
10035 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10036 hardcode_libdir_separator=:
10037 inherit_rpath=yes
10038 link_all_deplibs=yes
10039 ;;
10040
10041 netbsd*)
10042 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10043 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10044 else
10045 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10046 fi
10047 hardcode_libdir_flag_spec='-R$libdir'
10048 hardcode_direct=yes
10049 hardcode_shlibpath_var=no
10050 ;;
10051
10052 newsos6)
10053 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10054 hardcode_direct=yes
10055 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10056 hardcode_libdir_separator=:
10057 hardcode_shlibpath_var=no
10058 ;;
10059
10060 *nto* | *qnx*)
10061 ;;
10062
10063 openbsd*)
10064 if test -f /usr/libexec/ld.so; then
10065 hardcode_direct=yes
10066 hardcode_shlibpath_var=no
10067 hardcode_direct_absolute=yes
10068 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10069 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10070 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10071 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10072 export_dynamic_flag_spec='${wl}-E'
10073 else
10074 case $host_os in
10075 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10076 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10077 hardcode_libdir_flag_spec='-R$libdir'
10078 ;;
10079 *)
10080 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10081 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10082 ;;
10083 esac
10084 fi
10085 else
10086 ld_shlibs=no
10087 fi
10088 ;;
10089
10090 os2*)
10091 hardcode_libdir_flag_spec='-L$libdir'
10092 hardcode_minus_L=yes
10093 allow_undefined_flag=unsupported
10094 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'
10095 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10096 ;;
10097
10098 osf3*)
10099 if test "$GCC" = yes; then
10100 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10101 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'
10102 else
10103 allow_undefined_flag=' -expect_unresolved \*'
10104 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'
10105 fi
10106 archive_cmds_need_lc='no'
10107 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10108 hardcode_libdir_separator=:
10109 ;;
10110
10111 osf4* | osf5*) # as osf3* with the addition of -msym flag
10112 if test "$GCC" = yes; then
10113 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10114 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'
10115 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10116 else
10117 allow_undefined_flag=' -expect_unresolved \*'
10118 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'
10119 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~
10120 $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'
10121
10122 # Both c and cxx compiler support -rpath directly
10123 hardcode_libdir_flag_spec='-rpath $libdir'
10124 fi
10125 archive_cmds_need_lc='no'
10126 hardcode_libdir_separator=:
10127 ;;
10128
10129 solaris*)
10130 no_undefined_flag=' -z defs'
10131 if test "$GCC" = yes; then
10132 wlarc='${wl}'
10133 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10134 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10135 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10136 else
10137 case `$CC -V 2>&1` in
10138 *"Compilers 5.0"*)
10139 wlarc=''
10140 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10141 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10142 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10143 ;;
10144 *)
10145 wlarc='${wl}'
10146 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10147 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10148 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10149 ;;
10150 esac
10151 fi
10152 hardcode_libdir_flag_spec='-R$libdir'
10153 hardcode_shlibpath_var=no
10154 case $host_os in
10155 solaris2.[0-5] | solaris2.[0-5].*) ;;
10156 *)
10157 # The compiler driver will combine and reorder linker options,
10158 # but understands `-z linker_flag'. GCC discards it without `$wl',
10159 # but is careful enough not to reorder.
10160 # Supported since Solaris 2.6 (maybe 2.5.1?)
10161 if test "$GCC" = yes; then
10162 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10163 else
10164 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10165 fi
10166 ;;
10167 esac
10168 link_all_deplibs=yes
10169 ;;
10170
10171 sunos4*)
10172 if test "x$host_vendor" = xsequent; then
10173 # Use $CC to link under sequent, because it throws in some extra .o
10174 # files that make .init and .fini sections work.
10175 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10176 else
10177 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10178 fi
10179 hardcode_libdir_flag_spec='-L$libdir'
10180 hardcode_direct=yes
10181 hardcode_minus_L=yes
10182 hardcode_shlibpath_var=no
10183 ;;
10184
10185 sysv4)
10186 case $host_vendor in
10187 sni)
10188 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10189 hardcode_direct=yes # is this really true???
10190 ;;
10191 siemens)
10192 ## LD is ld it makes a PLAMLIB
10193 ## CC just makes a GrossModule.
10194 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10195 reload_cmds='$CC -r -o $output$reload_objs'
10196 hardcode_direct=no
10197 ;;
10198 motorola)
10199 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10200 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10201 ;;
10202 esac
10203 runpath_var='LD_RUN_PATH'
10204 hardcode_shlibpath_var=no
10205 ;;
10206
10207 sysv4.3*)
10208 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10209 hardcode_shlibpath_var=no
10210 export_dynamic_flag_spec='-Bexport'
10211 ;;
10212
10213 sysv4*MP*)
10214 if test -d /usr/nec; then
10215 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10216 hardcode_shlibpath_var=no
10217 runpath_var=LD_RUN_PATH
10218 hardcode_runpath_var=yes
10219 ld_shlibs=yes
10220 fi
10221 ;;
10222
10223 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10224 no_undefined_flag='${wl}-z,text'
10225 archive_cmds_need_lc=no
10226 hardcode_shlibpath_var=no
10227 runpath_var='LD_RUN_PATH'
10228
10229 if test "$GCC" = yes; then
10230 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10231 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10232 else
10233 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10234 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10235 fi
10236 ;;
10237
10238 sysv5* | sco3.2v5* | sco5v6*)
10239 # Note: We can NOT use -z defs as we might desire, because we do not
10240 # link with -lc, and that would cause any symbols used from libc to
10241 # always be unresolved, which means just about no library would
10242 # ever link correctly. If we're not using GNU ld we use -z text
10243 # though, which does catch some bad symbols but isn't as heavy-handed
10244 # as -z defs.
10245 no_undefined_flag='${wl}-z,text'
10246 allow_undefined_flag='${wl}-z,nodefs'
10247 archive_cmds_need_lc=no
10248 hardcode_shlibpath_var=no
10249 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10250 hardcode_libdir_separator=':'
10251 link_all_deplibs=yes
10252 export_dynamic_flag_spec='${wl}-Bexport'
10253 runpath_var='LD_RUN_PATH'
10254
10255 if test "$GCC" = yes; then
10256 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10257 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10258 else
10259 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10260 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10261 fi
10262 ;;
10263
10264 uts4*)
10265 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10266 hardcode_libdir_flag_spec='-L$libdir'
10267 hardcode_shlibpath_var=no
10268 ;;
10269
10270 *)
10271 ld_shlibs=no
10272 ;;
10273 esac
10274
10275 if test x$host_vendor = xsni; then
10276 case $host in
10277 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10278 export_dynamic_flag_spec='${wl}-Blargedynsym'
10279 ;;
10280 esac
10281 fi
10282 fi
10283
10284{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10285$as_echo "$ld_shlibs" >&6; }
10286test "$ld_shlibs" = no && can_build_shared=no
10287
10288with_gnu_ld=$with_gnu_ld
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304#
10305# Do we need to explicitly link libc?
10306#
10307case "x$archive_cmds_need_lc" in
10308x|xyes)
10309 # Assume -lc should be added
10310 archive_cmds_need_lc=yes
10311
10312 if test "$enable_shared" = yes && test "$GCC" = yes; then
10313 case $archive_cmds in
10314 *'~'*)
10315 # FIXME: we may have to deal with multi-command sequences.
10316 ;;
10317 '$CC '*)
10318 # Test whether the compiler implicitly links with -lc since on some
10319 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10320 # to ld, don't add -lc before -lgcc.
10321 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10322$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10323 $RM conftest*
10324 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10325
10326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10327 (eval $ac_compile) 2>&5
10328 ac_status=$?
10329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330 (exit $ac_status); } 2>conftest.err; then
10331 soname=conftest
10332 lib=conftest
10333 libobjs=conftest.$ac_objext
10334 deplibs=
10335 wl=$lt_prog_compiler_wl
10336 pic_flag=$lt_prog_compiler_pic
10337 compiler_flags=-v
10338 linker_flags=-v
10339 verstring=
10340 output_objdir=.
10341 libname=conftest
10342 lt_save_allow_undefined_flag=$allow_undefined_flag
10343 allow_undefined_flag=
10344 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
10345 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10346 ac_status=$?
10347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348 (exit $ac_status); }
10349 then
10350 archive_cmds_need_lc=no
10351 else
10352 archive_cmds_need_lc=yes
10353 fi
10354 allow_undefined_flag=$lt_save_allow_undefined_flag
10355 else
10356 cat conftest.err 1>&5
10357 fi
10358 $RM conftest*
10359 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10360$as_echo "$archive_cmds_need_lc" >&6; }
10361 ;;
10362 esac
10363 fi
10364 ;;
10365esac
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
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10524$as_echo_n "checking dynamic linker characteristics... " >&6; }
10525
10526if test "$GCC" = yes; then
10527 case $host_os in
10528 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10529 *) lt_awk_arg="/^libraries:/" ;;
10530 esac
10531 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10532 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10533 # if the path contains ";" then we assume it to be the separator
10534 # otherwise default to the standard path separator (i.e. ":") - it is
10535 # assumed that no part of a normal pathname contains ";" but that should
10536 # okay in the real world where ";" in dirpaths is itself problematic.
10537 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10538 else
10539 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10540 fi
10541 # Ok, now we have the path, separated by spaces, we can step through it
10542 # and add multilib dir if necessary.
10543 lt_tmp_lt_search_path_spec=
10544 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10545 for lt_sys_path in $lt_search_path_spec; do
10546 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10547 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10548 else
10549 test -d "$lt_sys_path" && \
10550 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10551 fi
10552 done
10553 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10554BEGIN {RS=" "; FS="/|\n";} {
10555 lt_foo="";
10556 lt_count=0;
10557 for (lt_i = NF; lt_i > 0; lt_i--) {
10558 if ($lt_i != "" && $lt_i != ".") {
10559 if ($lt_i == "..") {
10560 lt_count++;
10561 } else {
10562 if (lt_count == 0) {
10563 lt_foo="/" $lt_i lt_foo;
10564 } else {
10565 lt_count--;
10566 }
10567 }
10568 }
10569 }
10570 if (lt_foo != "") { lt_freq[lt_foo]++; }
10571 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10572}'`
10573 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10574else
10575 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10576fi
10577library_names_spec=
10578libname_spec='lib$name'
10579soname_spec=
10580shrext_cmds=".so"
10581postinstall_cmds=
10582postuninstall_cmds=
10583finish_cmds=
10584finish_eval=
10585shlibpath_var=
10586shlibpath_overrides_runpath=unknown
10587version_type=none
10588dynamic_linker="$host_os ld.so"
10589sys_lib_dlsearch_path_spec="/lib /usr/lib"
10590need_lib_prefix=unknown
10591hardcode_into_libs=no
10592
10593# when you set need_version to no, make sure it does not cause -set_version
10594# flags to be left without arguments
10595need_version=unknown
10596
10597case $host_os in
10598aix3*)
10599 version_type=linux
10600 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10601 shlibpath_var=LIBPATH
10602
10603 # AIX 3 has no versioning support, so we append a major version to the name.
10604 soname_spec='${libname}${release}${shared_ext}$major'
10605 ;;
10606
10607aix[4-9]*)
10608 version_type=linux
10609 need_lib_prefix=no
10610 need_version=no
10611 hardcode_into_libs=yes
10612 if test "$host_cpu" = ia64; then
10613 # AIX 5 supports IA64
10614 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10615 shlibpath_var=LD_LIBRARY_PATH
10616 else
10617 # With GCC up to 2.95.x, collect2 would create an import file
10618 # for dependence libraries. The import file would start with
10619 # the line `#! .'. This would cause the generated library to
10620 # depend on `.', always an invalid library. This was fixed in
10621 # development snapshots of GCC prior to 3.0.
10622 case $host_os in
10623 aix4 | aix4.[01] | aix4.[01].*)
10624 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10625 echo ' yes '
10626 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10627 :
10628 else
10629 can_build_shared=no
10630 fi
10631 ;;
10632 esac
10633 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10634 # soname into executable. Probably we can add versioning support to
10635 # collect2, so additional links can be useful in future.
10636 if test "$aix_use_runtimelinking" = yes; then
10637 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10638 # instead of lib<name>.a to let people know that these are not
10639 # typical AIX shared libraries.
10640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10641 else
10642 # We preserve .a as extension for shared libraries through AIX4.2
10643 # and later when we are not doing run time linking.
10644 library_names_spec='${libname}${release}.a $libname.a'
10645 soname_spec='${libname}${release}${shared_ext}$major'
10646 fi
10647 shlibpath_var=LIBPATH
10648 fi
10649 ;;
10650
10651amigaos*)
10652 case $host_cpu in
10653 powerpc)
10654 # Since July 2007 AmigaOS4 officially supports .so libraries.
10655 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10657 ;;
10658 m68k)
10659 library_names_spec='$libname.ixlibrary $libname.a'
10660 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10661 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'
10662 ;;
10663 esac
10664 ;;
10665
10666beos*)
10667 library_names_spec='${libname}${shared_ext}'
10668 dynamic_linker="$host_os ld.so"
10669 shlibpath_var=LIBRARY_PATH
10670 ;;
10671
10672bsdi[45]*)
10673 version_type=linux
10674 need_version=no
10675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10676 soname_spec='${libname}${release}${shared_ext}$major'
10677 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10678 shlibpath_var=LD_LIBRARY_PATH
10679 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10680 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10681 # the default ld.so.conf also contains /usr/contrib/lib and
10682 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10683 # libtool to hard-code these into programs
10684 ;;
10685
10686cygwin* | mingw* | pw32* | cegcc*)
10687 version_type=windows
10688 shrext_cmds=".dll"
10689 need_version=no
10690 need_lib_prefix=no
10691
10692 case $GCC,$host_os in
10693 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10694 library_names_spec='$libname.dll.a'
10695 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10696 postinstall_cmds='base_file=`basename \${file}`~
10697 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10698 dldir=$destdir/`dirname \$dlpath`~
10699 test -d \$dldir || mkdir -p \$dldir~
10700 $install_prog $dir/$dlname \$dldir/$dlname~
10701 chmod a+x \$dldir/$dlname~
10702 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10703 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10704 fi'
10705 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10706 dlpath=$dir/\$dldll~
10707 $RM \$dlpath'
10708 shlibpath_overrides_runpath=yes
10709
10710 case $host_os in
10711 cygwin*)
10712 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10713 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10714 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10715 ;;
10716 mingw* | cegcc*)
10717 # MinGW DLLs use traditional 'lib' prefix
10718 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10719 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10720 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10721 # It is most probably a Windows format PATH printed by
10722 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10723 # path with ; separators, and with drive letters. We can handle the
10724 # drive letters (cygwin fileutils understands them), so leave them,
10725 # especially as we might pass files found there to a mingw objdump,
10726 # which wouldn't understand a cygwinified path. Ahh.
10727 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10728 else
10729 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10730 fi
10731 ;;
10732 pw32*)
10733 # pw32 DLLs use 'pw' prefix rather than 'lib'
10734 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10735 ;;
10736 esac
10737 ;;
10738
10739 *)
10740 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10741 ;;
10742 esac
10743 dynamic_linker='Win32 ld.exe'
10744 # FIXME: first we should search . and the directory the executable is in
10745 shlibpath_var=PATH
10746 ;;
10747
10748darwin* | rhapsody*)
10749 dynamic_linker="$host_os dyld"
10750 version_type=darwin
10751 need_lib_prefix=no
10752 need_version=no
10753 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10754 soname_spec='${libname}${release}${major}$shared_ext'
10755 shlibpath_overrides_runpath=yes
10756 shlibpath_var=DYLD_LIBRARY_PATH
10757 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10758
10759 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10760 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10761 ;;
10762
10763dgux*)
10764 version_type=linux
10765 need_lib_prefix=no
10766 need_version=no
10767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10768 soname_spec='${libname}${release}${shared_ext}$major'
10769 shlibpath_var=LD_LIBRARY_PATH
10770 ;;
10771
10772freebsd1*)
10773 dynamic_linker=no
10774 ;;
10775
10776freebsd* | dragonfly*)
10777 # DragonFly does not have aout. When/if they implement a new
10778 # versioning mechanism, adjust this.
10779 if test -x /usr/bin/objformat; then
10780 objformat=`/usr/bin/objformat`
10781 else
10782 case $host_os in
10783 freebsd[123]*) objformat=aout ;;
10784 *) objformat=elf ;;
10785 esac
10786 fi
10787 version_type=freebsd-$objformat
10788 case $version_type in
10789 freebsd-elf*)
10790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10791 need_version=no
10792 need_lib_prefix=no
10793 ;;
10794 freebsd-*)
10795 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10796 need_version=yes
10797 ;;
10798 esac
10799 shlibpath_var=LD_LIBRARY_PATH
10800 case $host_os in
10801 freebsd2*)
10802 shlibpath_overrides_runpath=yes
10803 ;;
10804 freebsd3.[01]* | freebsdelf3.[01]*)
10805 shlibpath_overrides_runpath=yes
10806 hardcode_into_libs=yes
10807 ;;
10808 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10809 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10810 shlibpath_overrides_runpath=no
10811 hardcode_into_libs=yes
10812 ;;
10813 *) # from 4.6 on, and DragonFly
10814 shlibpath_overrides_runpath=yes
10815 hardcode_into_libs=yes
10816 ;;
10817 esac
10818 ;;
10819
10820gnu*)
10821 version_type=linux
10822 need_lib_prefix=no
10823 need_version=no
10824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10825 soname_spec='${libname}${release}${shared_ext}$major'
10826 shlibpath_var=LD_LIBRARY_PATH
10827 hardcode_into_libs=yes
10828 ;;
10829
10830hpux9* | hpux10* | hpux11*)
10831 # Give a soname corresponding to the major version so that dld.sl refuses to
10832 # link against other versions.
10833 version_type=sunos
10834 need_lib_prefix=no
10835 need_version=no
10836 case $host_cpu in
10837 ia64*)
10838 shrext_cmds='.so'
10839 hardcode_into_libs=yes
10840 dynamic_linker="$host_os dld.so"
10841 shlibpath_var=LD_LIBRARY_PATH
10842 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10844 soname_spec='${libname}${release}${shared_ext}$major'
10845 if test "X$HPUX_IA64_MODE" = X32; then
10846 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10847 else
10848 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10849 fi
10850 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10851 ;;
10852 hppa*64*)
10853 shrext_cmds='.sl'
10854 hardcode_into_libs=yes
10855 dynamic_linker="$host_os dld.sl"
10856 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10857 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10859 soname_spec='${libname}${release}${shared_ext}$major'
10860 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10861 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10862 ;;
10863 *)
10864 shrext_cmds='.sl'
10865 dynamic_linker="$host_os dld.sl"
10866 shlibpath_var=SHLIB_PATH
10867 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10869 soname_spec='${libname}${release}${shared_ext}$major'
10870 ;;
10871 esac
10872 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10873 postinstall_cmds='chmod 555 $lib'
10874 ;;
10875
10876interix[3-9]*)
10877 version_type=linux
10878 need_lib_prefix=no
10879 need_version=no
10880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10881 soname_spec='${libname}${release}${shared_ext}$major'
10882 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10883 shlibpath_var=LD_LIBRARY_PATH
10884 shlibpath_overrides_runpath=no
10885 hardcode_into_libs=yes
10886 ;;
10887
10888irix5* | irix6* | nonstopux*)
10889 case $host_os in
10890 nonstopux*) version_type=nonstopux ;;
10891 *)
10892 if test "$lt_cv_prog_gnu_ld" = yes; then
10893 version_type=linux
10894 else
10895 version_type=irix
10896 fi ;;
10897 esac
10898 need_lib_prefix=no
10899 need_version=no
10900 soname_spec='${libname}${release}${shared_ext}$major'
10901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10902 case $host_os in
10903 irix5* | nonstopux*)
10904 libsuff= shlibsuff=
10905 ;;
10906 *)
10907 case $LD in # libtool.m4 will add one of these switches to LD
10908 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10909 libsuff= shlibsuff= libmagic=32-bit;;
10910 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10911 libsuff=32 shlibsuff=N32 libmagic=N32;;
10912 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10913 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10914 *) libsuff= shlibsuff= libmagic=never-match;;
10915 esac
10916 ;;
10917 esac
10918 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10919 shlibpath_overrides_runpath=no
10920 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10921 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10922 hardcode_into_libs=yes
10923 ;;
10924
10925# No shared lib support for Linux oldld, aout, or coff.
10926linux*oldld* | linux*aout* | linux*coff*)
10927 dynamic_linker=no
10928 ;;
10929
10930# This must be Linux ELF.
10931linux* | k*bsd*-gnu)
10932 version_type=linux
10933 need_lib_prefix=no
10934 need_version=no
10935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10936 soname_spec='${libname}${release}${shared_ext}$major'
10937 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10938 shlibpath_var=LD_LIBRARY_PATH
10939 shlibpath_overrides_runpath=no
10940 # Some binutils ld are patched to set DT_RUNPATH
10941 save_LDFLAGS=$LDFLAGS
10942 save_libdir=$libdir
10943 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10944 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10945 cat >conftest.$ac_ext <<_ACEOF
10946/* confdefs.h. */
10947_ACEOF
10948cat confdefs.h >>conftest.$ac_ext
10949cat >>conftest.$ac_ext <<_ACEOF
10950/* end confdefs.h. */
10951
10952int
10953main ()
10954{
10955
10956 ;
10957 return 0;
10958}
10959_ACEOF
10960rm -f conftest.$ac_objext conftest$ac_exeext
10961if { (ac_try="$ac_link"
10962case "(($ac_try" in
10963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10964 *) ac_try_echo=$ac_try;;
10965esac
10966eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10967$as_echo "$ac_try_echo") >&5
10968 (eval "$ac_link") 2>conftest.er1
10969 ac_status=$?
10970 grep -v '^ *+' conftest.er1 >conftest.err
10971 rm -f conftest.er1
10972 cat conftest.err >&5
10973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10974 (exit $ac_status); } && {
10975 test -z "$ac_c_werror_flag" ||
10976 test ! -s conftest.err
10977 } && test -s conftest$ac_exeext && {
10978 test "$cross_compiling" = yes ||
10979 $as_test_x conftest$ac_exeext
10980 }; then
10981 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10982 shlibpath_overrides_runpath=yes
10983fi
10984
10985else
10986 $as_echo "$as_me: failed program was:" >&5
10987sed 's/^/| /' conftest.$ac_ext >&5
10988
10989
10990fi
10991
10992rm -rf conftest.dSYM
10993rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10994 conftest$ac_exeext conftest.$ac_ext
10995 LDFLAGS=$save_LDFLAGS
10996 libdir=$save_libdir
10997
10998 # This implies no fast_install, which is unacceptable.
10999 # Some rework will be needed to allow for fast_install
11000 # before this can be enabled.
11001 hardcode_into_libs=yes
11002
11003 # Add ABI-specific directories to the system library path.
11004 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11005
11006 # Append ld.so.conf contents to the search path
11007 if test -f /etc/ld.so.conf; then
11008 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' ' '`
11009 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11010 fi
11011
11012 # We used to test for /lib/ld.so.1 and disable shared libraries on
11013 # powerpc, because MkLinux only supported shared libraries with the
11014 # GNU dynamic linker. Since this was broken with cross compilers,
11015 # most powerpc-linux boxes support dynamic linking these days and
11016 # people can always --disable-shared, the test was removed, and we
11017 # assume the GNU/Linux dynamic linker is in use.
11018 dynamic_linker='GNU/Linux ld.so'
11019 ;;
11020
11021netbsd*)
11022 version_type=sunos
11023 need_lib_prefix=no
11024 need_version=no
11025 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11027 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11028 dynamic_linker='NetBSD (a.out) ld.so'
11029 else
11030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11031 soname_spec='${libname}${release}${shared_ext}$major'
11032 dynamic_linker='NetBSD ld.elf_so'
11033 fi
11034 shlibpath_var=LD_LIBRARY_PATH
11035 shlibpath_overrides_runpath=yes
11036 hardcode_into_libs=yes
11037 ;;
11038
11039newsos6)
11040 version_type=linux
11041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11042 shlibpath_var=LD_LIBRARY_PATH
11043 shlibpath_overrides_runpath=yes
11044 ;;
11045
11046*nto* | *qnx*)
11047 version_type=qnx
11048 need_lib_prefix=no
11049 need_version=no
11050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11051 soname_spec='${libname}${release}${shared_ext}$major'
11052 shlibpath_var=LD_LIBRARY_PATH
11053 shlibpath_overrides_runpath=no
11054 hardcode_into_libs=yes
11055 dynamic_linker='ldqnx.so'
11056 ;;
11057
11058openbsd*)
11059 version_type=sunos
11060 sys_lib_dlsearch_path_spec="/usr/lib"
11061 need_lib_prefix=no
11062 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11063 case $host_os in
11064 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11065 *) need_version=no ;;
11066 esac
11067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11068 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11069 shlibpath_var=LD_LIBRARY_PATH
11070 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11071 case $host_os in
11072 openbsd2.[89] | openbsd2.[89].*)
11073 shlibpath_overrides_runpath=no
11074 ;;
11075 *)
11076 shlibpath_overrides_runpath=yes
11077 ;;
11078 esac
11079 else
11080 shlibpath_overrides_runpath=yes
11081 fi
11082 ;;
11083
11084os2*)
11085 libname_spec='$name'
11086 shrext_cmds=".dll"
11087 need_lib_prefix=no
11088 library_names_spec='$libname${shared_ext} $libname.a'
11089 dynamic_linker='OS/2 ld.exe'
11090 shlibpath_var=LIBPATH
11091 ;;
11092
11093osf3* | osf4* | osf5*)
11094 version_type=osf
11095 need_lib_prefix=no
11096 need_version=no
11097 soname_spec='${libname}${release}${shared_ext}$major'
11098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11099 shlibpath_var=LD_LIBRARY_PATH
11100 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11101 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11102 ;;
11103
11104rdos*)
11105 dynamic_linker=no
11106 ;;
11107
11108solaris*)
11109 version_type=linux
11110 need_lib_prefix=no
11111 need_version=no
11112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11113 soname_spec='${libname}${release}${shared_ext}$major'
11114 shlibpath_var=LD_LIBRARY_PATH
11115 shlibpath_overrides_runpath=yes
11116 hardcode_into_libs=yes
11117 # ldd complains unless libraries are executable
11118 postinstall_cmds='chmod +x $lib'
11119 ;;
11120
11121sunos4*)
11122 version_type=sunos
11123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11124 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11125 shlibpath_var=LD_LIBRARY_PATH
11126 shlibpath_overrides_runpath=yes
11127 if test "$with_gnu_ld" = yes; then
11128 need_lib_prefix=no
11129 fi
11130 need_version=yes
11131 ;;
11132
11133sysv4 | sysv4.3*)
11134 version_type=linux
11135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11136 soname_spec='${libname}${release}${shared_ext}$major'
11137 shlibpath_var=LD_LIBRARY_PATH
11138 case $host_vendor in
11139 sni)
11140 shlibpath_overrides_runpath=no
11141 need_lib_prefix=no
11142 runpath_var=LD_RUN_PATH
11143 ;;
11144 siemens)
11145 need_lib_prefix=no
11146 ;;
11147 motorola)
11148 need_lib_prefix=no
11149 need_version=no
11150 shlibpath_overrides_runpath=no
11151 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11152 ;;
11153 esac
11154 ;;
11155
11156sysv4*MP*)
11157 if test -d /usr/nec ;then
11158 version_type=linux
11159 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11160 soname_spec='$libname${shared_ext}.$major'
11161 shlibpath_var=LD_LIBRARY_PATH
11162 fi
11163 ;;
11164
11165sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11166 version_type=freebsd-elf
11167 need_lib_prefix=no
11168 need_version=no
11169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11170 soname_spec='${libname}${release}${shared_ext}$major'
11171 shlibpath_var=LD_LIBRARY_PATH
11172 shlibpath_overrides_runpath=yes
11173 hardcode_into_libs=yes
11174 if test "$with_gnu_ld" = yes; then
11175 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11176 else
11177 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11178 case $host_os in
11179 sco3.2v5*)
11180 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11181 ;;
11182 esac
11183 fi
11184 sys_lib_dlsearch_path_spec='/usr/lib'
11185 ;;
11186
11187tpf*)
11188 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11189 version_type=linux
11190 need_lib_prefix=no
11191 need_version=no
11192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11193 shlibpath_var=LD_LIBRARY_PATH
11194 shlibpath_overrides_runpath=no
11195 hardcode_into_libs=yes
11196 ;;
11197
11198uts4*)
11199 version_type=linux
11200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11201 soname_spec='${libname}${release}${shared_ext}$major'
11202 shlibpath_var=LD_LIBRARY_PATH
11203 ;;
11204
11205*)
11206 dynamic_linker=no
11207 ;;
11208esac
11209{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11210$as_echo "$dynamic_linker" >&6; }
11211test "$dynamic_linker" = no && can_build_shared=no
11212
11213variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11214if test "$GCC" = yes; then
11215 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11216fi
11217
11218if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11219 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11220fi
11221if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11222 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11223fi
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
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11312$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11313hardcode_action=
11314if test -n "$hardcode_libdir_flag_spec" ||
11315 test -n "$runpath_var" ||
11316 test "X$hardcode_automatic" = "Xyes" ; then
11317
11318 # We can hardcode non-existent directories.
11319 if test "$hardcode_direct" != no &&
11320 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11321 # have to relink, otherwise we might link with an installed library
11322 # when we should be linking with a yet-to-be-installed one
11323 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11324 test "$hardcode_minus_L" != no; then
11325 # Linking always hardcodes the temporary library directory.
11326 hardcode_action=relink
11327 else
11328 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11329 hardcode_action=immediate
11330 fi
11331else
11332 # We cannot hardcode anything, or else we can only hardcode existing
11333 # directories.
11334 hardcode_action=unsupported
11335fi
11336{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
11337$as_echo "$hardcode_action" >&6; }
11338
11339if test "$hardcode_action" = relink ||
11340 test "$inherit_rpath" = yes; then
11341 # Fast installation is not supported
11342 enable_fast_install=no
11343elif test "$shlibpath_overrides_runpath" = yes ||
11344 test "$enable_shared" = no; then
11345 # Fast installation is not necessary
11346 enable_fast_install=needless
11347fi
11348
11349
11350
11351
11352
11353
11354 if test "x$enable_dlopen" != xyes; then
11355 enable_dlopen=unknown
11356 enable_dlopen_self=unknown
11357 enable_dlopen_self_static=unknown
11358else
11359 lt_cv_dlopen=no
11360 lt_cv_dlopen_libs=
11361
11362 case $host_os in
11363 beos*)
11364 lt_cv_dlopen="load_add_on"
11365 lt_cv_dlopen_libs=
11366 lt_cv_dlopen_self=yes
11367 ;;
11368
11369 mingw* | pw32* | cegcc*)
11370 lt_cv_dlopen="LoadLibrary"
11371 lt_cv_dlopen_libs=
11372 ;;
11373
11374 cygwin*)
11375 lt_cv_dlopen="dlopen"
11376 lt_cv_dlopen_libs=
11377 ;;
11378
11379 darwin*)
11380 # if libdl is installed we need to link against it
11381 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11382$as_echo_n "checking for dlopen in -ldl... " >&6; }
11383if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11384 $as_echo_n "(cached) " >&6
11385else
11386 ac_check_lib_save_LIBS=$LIBS
11387LIBS="-ldl $LIBS"
11388cat >conftest.$ac_ext <<_ACEOF
11389/* confdefs.h. */
11390_ACEOF
11391cat confdefs.h >>conftest.$ac_ext
11392cat >>conftest.$ac_ext <<_ACEOF
11393/* end confdefs.h. */
11394
11395/* Override any GCC internal prototype to avoid an error.
11396 Use char because int might match the return type of a GCC
11397 builtin and then its argument prototype would still apply. */
11398#ifdef __cplusplus
11399extern "C"
11400#endif
11401char dlopen ();
11402int
11403main ()
11404{
11405return dlopen ();
11406 ;
11407 return 0;
11408}
11409_ACEOF
11410rm -f conftest.$ac_objext conftest$ac_exeext
11411if { (ac_try="$ac_link"
11412case "(($ac_try" in
11413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11414 *) ac_try_echo=$ac_try;;
11415esac
11416eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11417$as_echo "$ac_try_echo") >&5
11418 (eval "$ac_link") 2>conftest.er1
11419 ac_status=$?
11420 grep -v '^ *+' conftest.er1 >conftest.err
11421 rm -f conftest.er1
11422 cat conftest.err >&5
11423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424 (exit $ac_status); } && {
11425 test -z "$ac_c_werror_flag" ||
11426 test ! -s conftest.err
11427 } && test -s conftest$ac_exeext && {
11428 test "$cross_compiling" = yes ||
11429 $as_test_x conftest$ac_exeext
11430 }; then
11431 ac_cv_lib_dl_dlopen=yes
11432else
11433 $as_echo "$as_me: failed program was:" >&5
11434sed 's/^/| /' conftest.$ac_ext >&5
11435
11436 ac_cv_lib_dl_dlopen=no
11437fi
11438
11439rm -rf conftest.dSYM
11440rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11441 conftest$ac_exeext conftest.$ac_ext
11442LIBS=$ac_check_lib_save_LIBS
11443fi
11444{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11445$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11446if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11447 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11448else
11449
11450 lt_cv_dlopen="dyld"
11451 lt_cv_dlopen_libs=
11452 lt_cv_dlopen_self=yes
11453
11454fi
11455
11456 ;;
11457
11458 *)
11459 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
11460$as_echo_n "checking for shl_load... " >&6; }
11461if test "${ac_cv_func_shl_load+set}" = set; then
11462 $as_echo_n "(cached) " >&6
11463else
11464 cat >conftest.$ac_ext <<_ACEOF
11465/* confdefs.h. */
11466_ACEOF
11467cat confdefs.h >>conftest.$ac_ext
11468cat >>conftest.$ac_ext <<_ACEOF
11469/* end confdefs.h. */
11470/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11471 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11472#define shl_load innocuous_shl_load
11473
11474/* System header to define __stub macros and hopefully few prototypes,
11475 which can conflict with char shl_load (); below.
11476 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11477 <limits.h> exists even on freestanding compilers. */
11478
11479#ifdef __STDC__
11480# include <limits.h>
11481#else
11482# include <assert.h>
11483#endif
11484
11485#undef shl_load
11486
11487/* Override any GCC internal prototype to avoid an error.
11488 Use char because int might match the return type of a GCC
11489 builtin and then its argument prototype would still apply. */
11490#ifdef __cplusplus
11491extern "C"
11492#endif
11493char shl_load ();
11494/* The GNU C library defines this for functions which it implements
11495 to always fail with ENOSYS. Some functions are actually named
11496 something starting with __ and the normal name is an alias. */
11497#if defined __stub_shl_load || defined __stub___shl_load
11498choke me
11499#endif
11500
11501int
11502main ()
11503{
11504return shl_load ();
11505 ;
11506 return 0;
11507}
11508_ACEOF
11509rm -f conftest.$ac_objext conftest$ac_exeext
11510if { (ac_try="$ac_link"
11511case "(($ac_try" in
11512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11513 *) ac_try_echo=$ac_try;;
11514esac
11515eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11516$as_echo "$ac_try_echo") >&5
11517 (eval "$ac_link") 2>conftest.er1
11518 ac_status=$?
11519 grep -v '^ *+' conftest.er1 >conftest.err
11520 rm -f conftest.er1
11521 cat conftest.err >&5
11522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523 (exit $ac_status); } && {
11524 test -z "$ac_c_werror_flag" ||
11525 test ! -s conftest.err
11526 } && test -s conftest$ac_exeext && {
11527 test "$cross_compiling" = yes ||
11528 $as_test_x conftest$ac_exeext
11529 }; then
11530 ac_cv_func_shl_load=yes
11531else
11532 $as_echo "$as_me: failed program was:" >&5
11533sed 's/^/| /' conftest.$ac_ext >&5
11534
11535 ac_cv_func_shl_load=no
11536fi
11537
11538rm -rf conftest.dSYM
11539rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11540 conftest$ac_exeext conftest.$ac_ext
11541fi
11542{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11543$as_echo "$ac_cv_func_shl_load" >&6; }
11544if test "x$ac_cv_func_shl_load" = x""yes; then
11545 lt_cv_dlopen="shl_load"
11546else
11547 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11548$as_echo_n "checking for shl_load in -ldld... " >&6; }
11549if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11550 $as_echo_n "(cached) " >&6
11551else
11552 ac_check_lib_save_LIBS=$LIBS
11553LIBS="-ldld $LIBS"
11554cat >conftest.$ac_ext <<_ACEOF
11555/* confdefs.h. */
11556_ACEOF
11557cat confdefs.h >>conftest.$ac_ext
11558cat >>conftest.$ac_ext <<_ACEOF
11559/* end confdefs.h. */
11560
11561/* Override any GCC internal prototype to avoid an error.
11562 Use char because int might match the return type of a GCC
11563 builtin and then its argument prototype would still apply. */
11564#ifdef __cplusplus
11565extern "C"
11566#endif
11567char shl_load ();
11568int
11569main ()
11570{
11571return shl_load ();
11572 ;
11573 return 0;
11574}
11575_ACEOF
11576rm -f conftest.$ac_objext conftest$ac_exeext
11577if { (ac_try="$ac_link"
11578case "(($ac_try" in
11579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11580 *) ac_try_echo=$ac_try;;
11581esac
11582eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11583$as_echo "$ac_try_echo") >&5
11584 (eval "$ac_link") 2>conftest.er1
11585 ac_status=$?
11586 grep -v '^ *+' conftest.er1 >conftest.err
11587 rm -f conftest.er1
11588 cat conftest.err >&5
11589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11590 (exit $ac_status); } && {
11591 test -z "$ac_c_werror_flag" ||
11592 test ! -s conftest.err
11593 } && test -s conftest$ac_exeext && {
11594 test "$cross_compiling" = yes ||
11595 $as_test_x conftest$ac_exeext
11596 }; then
11597 ac_cv_lib_dld_shl_load=yes
11598else
11599 $as_echo "$as_me: failed program was:" >&5
11600sed 's/^/| /' conftest.$ac_ext >&5
11601
11602 ac_cv_lib_dld_shl_load=no
11603fi
11604
11605rm -rf conftest.dSYM
11606rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11607 conftest$ac_exeext conftest.$ac_ext
11608LIBS=$ac_check_lib_save_LIBS
11609fi
11610{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11611$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11612if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
11613 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11614else
11615 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
11616$as_echo_n "checking for dlopen... " >&6; }
11617if test "${ac_cv_func_dlopen+set}" = set; then
11618 $as_echo_n "(cached) " >&6
11619else
11620 cat >conftest.$ac_ext <<_ACEOF
11621/* confdefs.h. */
11622_ACEOF
11623cat confdefs.h >>conftest.$ac_ext
11624cat >>conftest.$ac_ext <<_ACEOF
11625/* end confdefs.h. */
11626/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11627 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11628#define dlopen innocuous_dlopen
11629
11630/* System header to define __stub macros and hopefully few prototypes,
11631 which can conflict with char dlopen (); below.
11632 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11633 <limits.h> exists even on freestanding compilers. */
11634
11635#ifdef __STDC__
11636# include <limits.h>
11637#else
11638# include <assert.h>
11639#endif
11640
11641#undef dlopen
11642
11643/* Override any GCC internal prototype to avoid an error.
11644 Use char because int might match the return type of a GCC
11645 builtin and then its argument prototype would still apply. */
11646#ifdef __cplusplus
11647extern "C"
11648#endif
11649char dlopen ();
11650/* The GNU C library defines this for functions which it implements
11651 to always fail with ENOSYS. Some functions are actually named
11652 something starting with __ and the normal name is an alias. */
11653#if defined __stub_dlopen || defined __stub___dlopen
11654choke me
11655#endif
11656
11657int
11658main ()
11659{
11660return dlopen ();
11661 ;
11662 return 0;
11663}
11664_ACEOF
11665rm -f conftest.$ac_objext conftest$ac_exeext
11666if { (ac_try="$ac_link"
11667case "(($ac_try" in
11668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11669 *) ac_try_echo=$ac_try;;
11670esac
11671eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11672$as_echo "$ac_try_echo") >&5
11673 (eval "$ac_link") 2>conftest.er1
11674 ac_status=$?
11675 grep -v '^ *+' conftest.er1 >conftest.err
11676 rm -f conftest.er1
11677 cat conftest.err >&5
11678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679 (exit $ac_status); } && {
11680 test -z "$ac_c_werror_flag" ||
11681 test ! -s conftest.err
11682 } && test -s conftest$ac_exeext && {
11683 test "$cross_compiling" = yes ||
11684 $as_test_x conftest$ac_exeext
11685 }; then
11686 ac_cv_func_dlopen=yes
11687else
11688 $as_echo "$as_me: failed program was:" >&5
11689sed 's/^/| /' conftest.$ac_ext >&5
11690
11691 ac_cv_func_dlopen=no
11692fi
11693
11694rm -rf conftest.dSYM
11695rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11696 conftest$ac_exeext conftest.$ac_ext
11697fi
11698{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11699$as_echo "$ac_cv_func_dlopen" >&6; }
11700if test "x$ac_cv_func_dlopen" = x""yes; then
11701 lt_cv_dlopen="dlopen"
11702else
11703 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11704$as_echo_n "checking for dlopen in -ldl... " >&6; }
11705if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11706 $as_echo_n "(cached) " >&6
11707else
11708 ac_check_lib_save_LIBS=$LIBS
11709LIBS="-ldl $LIBS"
11710cat >conftest.$ac_ext <<_ACEOF
11711/* confdefs.h. */
11712_ACEOF
11713cat confdefs.h >>conftest.$ac_ext
11714cat >>conftest.$ac_ext <<_ACEOF
11715/* end confdefs.h. */
11716
11717/* Override any GCC internal prototype to avoid an error.
11718 Use char because int might match the return type of a GCC
11719 builtin and then its argument prototype would still apply. */
11720#ifdef __cplusplus
11721extern "C"
11722#endif
11723char dlopen ();
11724int
11725main ()
11726{
11727return dlopen ();
11728 ;
11729 return 0;
11730}
11731_ACEOF
11732rm -f conftest.$ac_objext conftest$ac_exeext
11733if { (ac_try="$ac_link"
11734case "(($ac_try" in
11735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11736 *) ac_try_echo=$ac_try;;
11737esac
11738eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11739$as_echo "$ac_try_echo") >&5
11740 (eval "$ac_link") 2>conftest.er1
11741 ac_status=$?
11742 grep -v '^ *+' conftest.er1 >conftest.err
11743 rm -f conftest.er1
11744 cat conftest.err >&5
11745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746 (exit $ac_status); } && {
11747 test -z "$ac_c_werror_flag" ||
11748 test ! -s conftest.err
11749 } && test -s conftest$ac_exeext && {
11750 test "$cross_compiling" = yes ||
11751 $as_test_x conftest$ac_exeext
11752 }; then
11753 ac_cv_lib_dl_dlopen=yes
11754else
11755 $as_echo "$as_me: failed program was:" >&5
11756sed 's/^/| /' conftest.$ac_ext >&5
11757
11758 ac_cv_lib_dl_dlopen=no
11759fi
11760
11761rm -rf conftest.dSYM
11762rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11763 conftest$ac_exeext conftest.$ac_ext
11764LIBS=$ac_check_lib_save_LIBS
11765fi
11766{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11767$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11768if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11769 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11770else
11771 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11772$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11773if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11774 $as_echo_n "(cached) " >&6
11775else
11776 ac_check_lib_save_LIBS=$LIBS
11777LIBS="-lsvld $LIBS"
11778cat >conftest.$ac_ext <<_ACEOF
11779/* confdefs.h. */
11780_ACEOF
11781cat confdefs.h >>conftest.$ac_ext
11782cat >>conftest.$ac_ext <<_ACEOF
11783/* end confdefs.h. */
11784
11785/* Override any GCC internal prototype to avoid an error.
11786 Use char because int might match the return type of a GCC
11787 builtin and then its argument prototype would still apply. */
11788#ifdef __cplusplus
11789extern "C"
11790#endif
11791char dlopen ();
11792int
11793main ()
11794{
11795return dlopen ();
11796 ;
11797 return 0;
11798}
11799_ACEOF
11800rm -f conftest.$ac_objext conftest$ac_exeext
11801if { (ac_try="$ac_link"
11802case "(($ac_try" in
11803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11804 *) ac_try_echo=$ac_try;;
11805esac
11806eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11807$as_echo "$ac_try_echo") >&5
11808 (eval "$ac_link") 2>conftest.er1
11809 ac_status=$?
11810 grep -v '^ *+' conftest.er1 >conftest.err
11811 rm -f conftest.er1
11812 cat conftest.err >&5
11813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814 (exit $ac_status); } && {
11815 test -z "$ac_c_werror_flag" ||
11816 test ! -s conftest.err
11817 } && test -s conftest$ac_exeext && {
11818 test "$cross_compiling" = yes ||
11819 $as_test_x conftest$ac_exeext
11820 }; then
11821 ac_cv_lib_svld_dlopen=yes
11822else
11823 $as_echo "$as_me: failed program was:" >&5
11824sed 's/^/| /' conftest.$ac_ext >&5
11825
11826 ac_cv_lib_svld_dlopen=no
11827fi
11828
11829rm -rf conftest.dSYM
11830rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11831 conftest$ac_exeext conftest.$ac_ext
11832LIBS=$ac_check_lib_save_LIBS
11833fi
11834{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11835$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11836if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11837 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11838else
11839 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11840$as_echo_n "checking for dld_link in -ldld... " >&6; }
11841if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11842 $as_echo_n "(cached) " >&6
11843else
11844 ac_check_lib_save_LIBS=$LIBS
11845LIBS="-ldld $LIBS"
11846cat >conftest.$ac_ext <<_ACEOF
11847/* confdefs.h. */
11848_ACEOF
11849cat confdefs.h >>conftest.$ac_ext
11850cat >>conftest.$ac_ext <<_ACEOF
11851/* end confdefs.h. */
11852
11853/* Override any GCC internal prototype to avoid an error.
11854 Use char because int might match the return type of a GCC
11855 builtin and then its argument prototype would still apply. */
11856#ifdef __cplusplus
11857extern "C"
11858#endif
11859char dld_link ();
11860int
11861main ()
11862{
11863return dld_link ();
11864 ;
11865 return 0;
11866}
11867_ACEOF
11868rm -f conftest.$ac_objext conftest$ac_exeext
11869if { (ac_try="$ac_link"
11870case "(($ac_try" in
11871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11872 *) ac_try_echo=$ac_try;;
11873esac
11874eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11875$as_echo "$ac_try_echo") >&5
11876 (eval "$ac_link") 2>conftest.er1
11877 ac_status=$?
11878 grep -v '^ *+' conftest.er1 >conftest.err
11879 rm -f conftest.er1
11880 cat conftest.err >&5
11881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882 (exit $ac_status); } && {
11883 test -z "$ac_c_werror_flag" ||
11884 test ! -s conftest.err
11885 } && test -s conftest$ac_exeext && {
11886 test "$cross_compiling" = yes ||
11887 $as_test_x conftest$ac_exeext
11888 }; then
11889 ac_cv_lib_dld_dld_link=yes
11890else
11891 $as_echo "$as_me: failed program was:" >&5
11892sed 's/^/| /' conftest.$ac_ext >&5
11893
11894 ac_cv_lib_dld_dld_link=no
11895fi
11896
11897rm -rf conftest.dSYM
11898rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11899 conftest$ac_exeext conftest.$ac_ext
11900LIBS=$ac_check_lib_save_LIBS
11901fi
11902{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11903$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11904if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11905 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11906fi
11907
11908
11909fi
11910
11911
11912fi
11913
11914
11915fi
11916
11917
11918fi
11919
11920
11921fi
11922
11923 ;;
11924 esac
11925
11926 if test "x$lt_cv_dlopen" != xno; then
11927 enable_dlopen=yes
11928 else
11929 enable_dlopen=no
11930 fi
11931
11932 case $lt_cv_dlopen in
11933 dlopen)
11934 save_CPPFLAGS="$CPPFLAGS"
11935 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11936
11937 save_LDFLAGS="$LDFLAGS"
11938 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11939
11940 save_LIBS="$LIBS"
11941 LIBS="$lt_cv_dlopen_libs $LIBS"
11942
11943 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11944$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11945if test "${lt_cv_dlopen_self+set}" = set; then
11946 $as_echo_n "(cached) " >&6
11947else
11948 if test "$cross_compiling" = yes; then :
11949 lt_cv_dlopen_self=cross
11950else
11951 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11952 lt_status=$lt_dlunknown
11953 cat > conftest.$ac_ext <<_LT_EOF
11954#line 11954 "configure"
11955#include "confdefs.h"
11956
11957#if HAVE_DLFCN_H
11958#include <dlfcn.h>
11959#endif
11960
11961#include <stdio.h>
11962
11963#ifdef RTLD_GLOBAL
11964# define LT_DLGLOBAL RTLD_GLOBAL
11965#else
11966# ifdef DL_GLOBAL
11967# define LT_DLGLOBAL DL_GLOBAL
11968# else
11969# define LT_DLGLOBAL 0
11970# endif
11971#endif
11972
11973/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11974 find out it does not work in some platform. */
11975#ifndef LT_DLLAZY_OR_NOW
11976# ifdef RTLD_LAZY
11977# define LT_DLLAZY_OR_NOW RTLD_LAZY
11978# else
11979# ifdef DL_LAZY
11980# define LT_DLLAZY_OR_NOW DL_LAZY
11981# else
11982# ifdef RTLD_NOW
11983# define LT_DLLAZY_OR_NOW RTLD_NOW
11984# else
11985# ifdef DL_NOW
11986# define LT_DLLAZY_OR_NOW DL_NOW
11987# else
11988# define LT_DLLAZY_OR_NOW 0
11989# endif
11990# endif
11991# endif
11992# endif
11993#endif
11994
11995void fnord() { int i=42;}
11996int main ()
11997{
11998 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11999 int status = $lt_dlunknown;
12000
12001 if (self)
12002 {
12003 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12004 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12005 /* dlclose (self); */
12006 }
12007 else
12008 puts (dlerror ());
12009
12010 return status;
12011}
12012_LT_EOF
12013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12014 (eval $ac_link) 2>&5
12015 ac_status=$?
12016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12018 (./conftest; exit; ) >&5 2>/dev/null
12019 lt_status=$?
12020 case x$lt_status in
12021 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12022 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12023 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12024 esac
12025 else :
12026 # compilation failed
12027 lt_cv_dlopen_self=no
12028 fi
12029fi
12030rm -fr conftest*
12031
12032
12033fi
12034{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12035$as_echo "$lt_cv_dlopen_self" >&6; }
12036
12037 if test "x$lt_cv_dlopen_self" = xyes; then
12038 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12039 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12040$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12041if test "${lt_cv_dlopen_self_static+set}" = set; then
12042 $as_echo_n "(cached) " >&6
12043else
12044 if test "$cross_compiling" = yes; then :
12045 lt_cv_dlopen_self_static=cross
12046else
12047 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12048 lt_status=$lt_dlunknown
12049 cat > conftest.$ac_ext <<_LT_EOF
12050#line 12050 "configure"
12051#include "confdefs.h"
12052
12053#if HAVE_DLFCN_H
12054#include <dlfcn.h>
12055#endif
12056
12057#include <stdio.h>
12058
12059#ifdef RTLD_GLOBAL
12060# define LT_DLGLOBAL RTLD_GLOBAL
12061#else
12062# ifdef DL_GLOBAL
12063# define LT_DLGLOBAL DL_GLOBAL
12064# else
12065# define LT_DLGLOBAL 0
12066# endif
12067#endif
12068
12069/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12070 find out it does not work in some platform. */
12071#ifndef LT_DLLAZY_OR_NOW
12072# ifdef RTLD_LAZY
12073# define LT_DLLAZY_OR_NOW RTLD_LAZY
12074# else
12075# ifdef DL_LAZY
12076# define LT_DLLAZY_OR_NOW DL_LAZY
12077# else
12078# ifdef RTLD_NOW
12079# define LT_DLLAZY_OR_NOW RTLD_NOW
12080# else
12081# ifdef DL_NOW
12082# define LT_DLLAZY_OR_NOW DL_NOW
12083# else
12084# define LT_DLLAZY_OR_NOW 0
12085# endif
12086# endif
12087# endif
12088# endif
12089#endif
12090
12091void fnord() { int i=42;}
12092int main ()
12093{
12094 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12095 int status = $lt_dlunknown;
12096
12097 if (self)
12098 {
12099 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12100 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12101 /* dlclose (self); */
12102 }
12103 else
12104 puts (dlerror ());
12105
12106 return status;
12107}
12108_LT_EOF
12109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12110 (eval $ac_link) 2>&5
12111 ac_status=$?
12112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12114 (./conftest; exit; ) >&5 2>/dev/null
12115 lt_status=$?
12116 case x$lt_status in
12117 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12118 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12119 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12120 esac
12121 else :
12122 # compilation failed
12123 lt_cv_dlopen_self_static=no
12124 fi
12125fi
12126rm -fr conftest*
12127
12128
12129fi
12130{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12131$as_echo "$lt_cv_dlopen_self_static" >&6; }
12132 fi
12133
12134 CPPFLAGS="$save_CPPFLAGS"
12135 LDFLAGS="$save_LDFLAGS"
12136 LIBS="$save_LIBS"
12137 ;;
12138 esac
12139
12140 case $lt_cv_dlopen_self in
12141 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12142 *) enable_dlopen_self=unknown ;;
12143 esac
12144
12145 case $lt_cv_dlopen_self_static in
12146 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12147 *) enable_dlopen_self_static=unknown ;;
12148 esac
12149fi
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167striplib=
12168old_striplib=
12169{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12170$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12171if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12172 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12173 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12174 { $as_echo "$as_me:$LINENO: result: yes" >&5
12175$as_echo "yes" >&6; }
12176else
12177# FIXME - insert some real tests, host_os isn't really good enough
12178 case $host_os in
12179 darwin*)
12180 if test -n "$STRIP" ; then
12181 striplib="$STRIP -x"
12182 old_striplib="$STRIP -S"
12183 { $as_echo "$as_me:$LINENO: result: yes" >&5
12184$as_echo "yes" >&6; }
12185 else
12186 { $as_echo "$as_me:$LINENO: result: no" >&5
12187$as_echo "no" >&6; }
12188 fi
12189 ;;
12190 *)
12191 { $as_echo "$as_me:$LINENO: result: no" >&5
12192$as_echo "no" >&6; }
12193 ;;
12194 esac
12195fi
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208 # Report which library types will actually be built
12209 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12210$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12211 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
12212$as_echo "$can_build_shared" >&6; }
12213
12214 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12215$as_echo_n "checking whether to build shared libraries... " >&6; }
12216 test "$can_build_shared" = "no" && enable_shared=no
12217
12218 # On AIX, shared libraries and static libraries use the same namespace, and
12219 # are all built from PIC.
12220 case $host_os in
12221 aix3*)
12222 test "$enable_shared" = yes && enable_static=no
12223 if test -n "$RANLIB"; then
12224 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12225 postinstall_cmds='$RANLIB $lib'
12226 fi
12227 ;;
12228
12229 aix[4-9]*)
12230 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12231 test "$enable_shared" = yes && enable_static=no
12232 fi
12233 ;;
12234 esac
12235 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
12236$as_echo "$enable_shared" >&6; }
12237
12238 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12239$as_echo_n "checking whether to build static libraries... " >&6; }
12240 # Make sure either enable_shared or enable_static is yes.
12241 test "$enable_shared" = yes || enable_static=yes
12242 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
12243$as_echo "$enable_static" >&6; }
12244
12245
12246
12247
12248fi
12249ac_ext=c
12250ac_cpp='$CPP $CPPFLAGS'
12251ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12252ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12253ac_compiler_gnu=$ac_cv_c_compiler_gnu
12254
12255CC="$lt_save_CC"
12256
12257
12258ac_ext=cpp
12259ac_cpp='$CXXCPP $CPPFLAGS'
12260ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12261ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12262ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12263
12264archive_cmds_need_lc_CXX=no
12265allow_undefined_flag_CXX=
12266always_export_symbols_CXX=no
12267archive_expsym_cmds_CXX=
12268compiler_needs_object_CXX=no
12269export_dynamic_flag_spec_CXX=
12270hardcode_direct_CXX=no
12271hardcode_direct_absolute_CXX=no
12272hardcode_libdir_flag_spec_CXX=
12273hardcode_libdir_flag_spec_ld_CXX=
12274hardcode_libdir_separator_CXX=
12275hardcode_minus_L_CXX=no
12276hardcode_shlibpath_var_CXX=unsupported
12277hardcode_automatic_CXX=no
12278inherit_rpath_CXX=no
12279module_cmds_CXX=
12280module_expsym_cmds_CXX=
12281link_all_deplibs_CXX=unknown
12282old_archive_cmds_CXX=$old_archive_cmds
12283no_undefined_flag_CXX=
12284whole_archive_flag_spec_CXX=
12285enable_shared_with_static_runtimes_CXX=no
12286
12287# Source file extension for C++ test sources.
12288ac_ext=cpp
12289
12290# Object file extension for compiled C++ test sources.
12291objext=o
12292objext_CXX=$objext
12293
12294# No sense in running all these tests if we already determined that
12295# the CXX compiler isn't working. Some variables (like enable_shared)
12296# are currently assumed to apply to all compilers on this platform,
12297# and will be corrupted by setting them based on a non-working compiler.
12298if test "$_lt_caught_CXX_error" != yes; then
12299 # Code to be used in simple compile tests
12300 lt_simple_compile_test_code="int some_variable = 0;"
12301
12302 # Code to be used in simple link tests
12303 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12304
12305 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12306
12307
12308
12309
12310
12311
12312# If no C compiler was specified, use CC.
12313LTCC=${LTCC-"$CC"}
12314
12315# If no C compiler flags were specified, use CFLAGS.
12316LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12317
12318# Allow CC to be a program name with arguments.
12319compiler=$CC
12320
12321
12322 # save warnings/boilerplate of simple test code
12323 ac_outfile=conftest.$ac_objext
12324echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12325eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12326_lt_compiler_boilerplate=`cat conftest.err`
12327$RM conftest*
12328
12329 ac_outfile=conftest.$ac_objext
12330echo "$lt_simple_link_test_code" >conftest.$ac_ext
12331eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12332_lt_linker_boilerplate=`cat conftest.err`
12333$RM -r conftest*
12334
12335
12336 # Allow CC to be a program name with arguments.
12337 lt_save_CC=$CC
12338 lt_save_LD=$LD
12339 lt_save_GCC=$GCC
12340 GCC=$GXX
12341 lt_save_with_gnu_ld=$with_gnu_ld
12342 lt_save_path_LD=$lt_cv_path_LD
12343 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12344 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12345 else
12346 $as_unset lt_cv_prog_gnu_ld
12347 fi
12348 if test -n "${lt_cv_path_LDCXX+set}"; then
12349 lt_cv_path_LD=$lt_cv_path_LDCXX
12350 else
12351 $as_unset lt_cv_path_LD
12352 fi
12353 test -z "${LDCXX+set}" || LD=$LDCXX
12354 CC=${CXX-"c++"}
12355 compiler=$CC
12356 compiler_CXX=$CC
12357 for cc_temp in $compiler""; do
12358 case $cc_temp in
12359 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12360 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12361 \-*) ;;
12362 *) break;;
12363 esac
12364done
12365cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12366
12367
12368 if test -n "$compiler"; then
12369 # We don't want -fno-exception when compiling C++ code, so set the
12370 # no_builtin_flag separately
12371 if test "$GXX" = yes; then
12372 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12373 else
12374 lt_prog_compiler_no_builtin_flag_CXX=
12375 fi
12376
12377 if test "$GXX" = yes; then
12378 # Set up default GNU C++ configuration
12379
12380
12381
12382# Check whether --with-gnu-ld was given.
12383if test "${with_gnu_ld+set}" = set; then
12384 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12385else
12386 with_gnu_ld=no
12387fi
12388
12389ac_prog=ld
12390if test "$GCC" = yes; then
12391 # Check if gcc -print-prog-name=ld gives a path.
12392 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12393$as_echo_n "checking for ld used by $CC... " >&6; }
12394 case $host in
12395 *-*-mingw*)
12396 # gcc leaves a trailing carriage return which upsets mingw
12397 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12398 *)
12399 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12400 esac
12401 case $ac_prog in
12402 # Accept absolute paths.
12403 [\\/]* | ?:[\\/]*)
12404 re_direlt='/[^/][^/]*/\.\./'
12405 # Canonicalize the pathname of ld
12406 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12407 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12408 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12409 done
12410 test -z "$LD" && LD="$ac_prog"
12411 ;;
12412 "")
12413 # If it fails, then pretend we aren't using GCC.
12414 ac_prog=ld
12415 ;;
12416 *)
12417 # If it is relative, then search for the first ld in PATH.
12418 with_gnu_ld=unknown
12419 ;;
12420 esac
12421elif test "$with_gnu_ld" = yes; then
12422 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
12423$as_echo_n "checking for GNU ld... " >&6; }
12424else
12425 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12426$as_echo_n "checking for non-GNU ld... " >&6; }
12427fi
12428if test "${lt_cv_path_LD+set}" = set; then
12429 $as_echo_n "(cached) " >&6
12430else
12431 if test -z "$LD"; then
12432 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12433 for ac_dir in $PATH; do
12434 IFS="$lt_save_ifs"
12435 test -z "$ac_dir" && ac_dir=.
12436 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12437 lt_cv_path_LD="$ac_dir/$ac_prog"
12438 # Check to see if the program is GNU ld. I'd rather use --version,
12439 # but apparently some variants of GNU ld only accept -v.
12440 # Break only if it was the GNU/non-GNU ld that we prefer.
12441 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12442 *GNU* | *'with BFD'*)
12443 test "$with_gnu_ld" != no && break
12444 ;;
12445 *)
12446 test "$with_gnu_ld" != yes && break
12447 ;;
12448 esac
12449 fi
12450 done
12451 IFS="$lt_save_ifs"
12452else
12453 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12454fi
12455fi
12456
12457LD="$lt_cv_path_LD"
12458if test -n "$LD"; then
12459 { $as_echo "$as_me:$LINENO: result: $LD" >&5
12460$as_echo "$LD" >&6; }
12461else
12462 { $as_echo "$as_me:$LINENO: result: no" >&5
12463$as_echo "no" >&6; }
12464fi
12465test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12466$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12467 { (exit 1); exit 1; }; }
12468{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12469$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12470if test "${lt_cv_prog_gnu_ld+set}" = set; then
12471 $as_echo_n "(cached) " >&6
12472else
12473 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12474case `$LD -v 2>&1 </dev/null` in
12475*GNU* | *'with BFD'*)
12476 lt_cv_prog_gnu_ld=yes
12477 ;;
12478*)
12479 lt_cv_prog_gnu_ld=no
12480 ;;
12481esac
12482fi
12483{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12484$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12485with_gnu_ld=$lt_cv_prog_gnu_ld
12486
12487
12488
12489
12490
12491
12492
12493 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12494 # archiving commands below assume that GNU ld is being used.
12495 if test "$with_gnu_ld" = yes; then
12496 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12497 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'
12498
12499 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12500 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12501
12502 # If archive_cmds runs LD, not CC, wlarc should be empty
12503 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12504 # investigate it a little bit more. (MM)
12505 wlarc='${wl}'
12506
12507 # ancient GNU ld didn't support --whole-archive et. al.
12508 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12509 $GREP 'no-whole-archive' > /dev/null; then
12510 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12511 else
12512 whole_archive_flag_spec_CXX=
12513 fi
12514 else
12515 with_gnu_ld=no
12516 wlarc=
12517
12518 # A generic and very simple default shared library creation
12519 # command for GNU C++ for the case where it uses the native
12520 # linker, instead of GNU ld. If possible, this setting should
12521 # overridden to take advantage of the native linker features on
12522 # the platform it is being used on.
12523 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12524 fi
12525
12526 # Commands to make compiler produce verbose output that lists
12527 # what "hidden" libraries, object files and flags are used when
12528 # linking a shared library.
12529 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12530
12531 else
12532 GXX=no
12533 with_gnu_ld=no
12534 wlarc=
12535 fi
12536
12537 # PORTME: fill in a description of your system's C++ link characteristics
12538 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12539$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12540 ld_shlibs_CXX=yes
12541 case $host_os in
12542 aix3*)
12543 # FIXME: insert proper C++ library support
12544 ld_shlibs_CXX=no
12545 ;;
12546 aix[4-9]*)
12547 if test "$host_cpu" = ia64; then
12548 # On IA64, the linker does run time linking by default, so we don't
12549 # have to do anything special.
12550 aix_use_runtimelinking=no
12551 exp_sym_flag='-Bexport'
12552 no_entry_flag=""
12553 else
12554 aix_use_runtimelinking=no
12555
12556 # Test if we are trying to use run time linking or normal
12557 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12558 # need to do runtime linking.
12559 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12560 for ld_flag in $LDFLAGS; do
12561 case $ld_flag in
12562 *-brtl*)
12563 aix_use_runtimelinking=yes
12564 break
12565 ;;
12566 esac
12567 done
12568 ;;
12569 esac
12570
12571 exp_sym_flag='-bexport'
12572 no_entry_flag='-bnoentry'
12573 fi
12574
12575 # When large executables or shared objects are built, AIX ld can
12576 # have problems creating the table of contents. If linking a library
12577 # or program results in "error TOC overflow" add -mminimal-toc to
12578 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12579 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12580
12581 archive_cmds_CXX=''
12582 hardcode_direct_CXX=yes
12583 hardcode_direct_absolute_CXX=yes
12584 hardcode_libdir_separator_CXX=':'
12585 link_all_deplibs_CXX=yes
12586 file_list_spec_CXX='${wl}-f,'
12587
12588 if test "$GXX" = yes; then
12589 case $host_os in aix4.[012]|aix4.[012].*)
12590 # We only want to do this on AIX 4.2 and lower, the check
12591 # below for broken collect2 doesn't work under 4.3+
12592 collect2name=`${CC} -print-prog-name=collect2`
12593 if test -f "$collect2name" &&
12594 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12595 then
12596 # We have reworked collect2
12597 :
12598 else
12599 # We have old collect2
12600 hardcode_direct_CXX=unsupported
12601 # It fails to find uninstalled libraries when the uninstalled
12602 # path is not listed in the libpath. Setting hardcode_minus_L
12603 # to unsupported forces relinking
12604 hardcode_minus_L_CXX=yes
12605 hardcode_libdir_flag_spec_CXX='-L$libdir'
12606 hardcode_libdir_separator_CXX=
12607 fi
12608 esac
12609 shared_flag='-shared'
12610 if test "$aix_use_runtimelinking" = yes; then
12611 shared_flag="$shared_flag "'${wl}-G'
12612 fi
12613 else
12614 # not using gcc
12615 if test "$host_cpu" = ia64; then
12616 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12617 # chokes on -Wl,-G. The following line is correct:
12618 shared_flag='-G'
12619 else
12620 if test "$aix_use_runtimelinking" = yes; then
12621 shared_flag='${wl}-G'
12622 else
12623 shared_flag='${wl}-bM:SRE'
12624 fi
12625 fi
12626 fi
12627
12628 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12629 # It seems that -bexpall does not export symbols beginning with
12630 # underscore (_), so it is better to generate a list of symbols to
12631 # export.
12632 always_export_symbols_CXX=yes
12633 if test "$aix_use_runtimelinking" = yes; then
12634 # Warning - without using the other runtime loading flags (-brtl),
12635 # -berok will link without error, but may produce a broken library.
12636 allow_undefined_flag_CXX='-berok'
12637 # Determine the default libpath from the value encoded in an empty
12638 # executable.
12639 cat >conftest.$ac_ext <<_ACEOF
12640/* confdefs.h. */
12641_ACEOF
12642cat confdefs.h >>conftest.$ac_ext
12643cat >>conftest.$ac_ext <<_ACEOF
12644/* end confdefs.h. */
12645
12646int
12647main ()
12648{
12649
12650 ;
12651 return 0;
12652}
12653_ACEOF
12654rm -f conftest.$ac_objext conftest$ac_exeext
12655if { (ac_try="$ac_link"
12656case "(($ac_try" in
12657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12658 *) ac_try_echo=$ac_try;;
12659esac
12660eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12661$as_echo "$ac_try_echo") >&5
12662 (eval "$ac_link") 2>conftest.er1
12663 ac_status=$?
12664 grep -v '^ *+' conftest.er1 >conftest.err
12665 rm -f conftest.er1
12666 cat conftest.err >&5
12667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12668 (exit $ac_status); } && {
12669 test -z "$ac_cxx_werror_flag" ||
12670 test ! -s conftest.err
12671 } && test -s conftest$ac_exeext && {
12672 test "$cross_compiling" = yes ||
12673 $as_test_x conftest$ac_exeext
12674 }; then
12675
12676lt_aix_libpath_sed='
12677 /Import File Strings/,/^$/ {
12678 /^0/ {
12679 s/^0 *\(.*\)$/\1/
12680 p
12681 }
12682 }'
12683aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12684# Check for a 64-bit object if we didn't find anything.
12685if test -z "$aix_libpath"; then
12686 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12687fi
12688else
12689 $as_echo "$as_me: failed program was:" >&5
12690sed 's/^/| /' conftest.$ac_ext >&5
12691
12692
12693fi
12694
12695rm -rf conftest.dSYM
12696rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12697 conftest$ac_exeext conftest.$ac_ext
12698if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12699
12700 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12701
12702 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"
12703 else
12704 if test "$host_cpu" = ia64; then
12705 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12706 allow_undefined_flag_CXX="-z nodefs"
12707 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"
12708 else
12709 # Determine the default libpath from the value encoded in an
12710 # empty executable.
12711 cat >conftest.$ac_ext <<_ACEOF
12712/* confdefs.h. */
12713_ACEOF
12714cat confdefs.h >>conftest.$ac_ext
12715cat >>conftest.$ac_ext <<_ACEOF
12716/* end confdefs.h. */
12717
12718int
12719main ()
12720{
12721
12722 ;
12723 return 0;
12724}
12725_ACEOF
12726rm -f conftest.$ac_objext conftest$ac_exeext
12727if { (ac_try="$ac_link"
12728case "(($ac_try" in
12729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12730 *) ac_try_echo=$ac_try;;
12731esac
12732eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12733$as_echo "$ac_try_echo") >&5
12734 (eval "$ac_link") 2>conftest.er1
12735 ac_status=$?
12736 grep -v '^ *+' conftest.er1 >conftest.err
12737 rm -f conftest.er1
12738 cat conftest.err >&5
12739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12740 (exit $ac_status); } && {
12741 test -z "$ac_cxx_werror_flag" ||
12742 test ! -s conftest.err
12743 } && test -s conftest$ac_exeext && {
12744 test "$cross_compiling" = yes ||
12745 $as_test_x conftest$ac_exeext
12746 }; then
12747
12748lt_aix_libpath_sed='
12749 /Import File Strings/,/^$/ {
12750 /^0/ {
12751 s/^0 *\(.*\)$/\1/
12752 p
12753 }
12754 }'
12755aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12756# Check for a 64-bit object if we didn't find anything.
12757if test -z "$aix_libpath"; then
12758 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12759fi
12760else
12761 $as_echo "$as_me: failed program was:" >&5
12762sed 's/^/| /' conftest.$ac_ext >&5
12763
12764
12765fi
12766
12767rm -rf conftest.dSYM
12768rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12769 conftest$ac_exeext conftest.$ac_ext
12770if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12771
12772 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12773 # Warning - without using the other run time loading flags,
12774 # -berok will link without error, but may produce a broken library.
12775 no_undefined_flag_CXX=' ${wl}-bernotok'
12776 allow_undefined_flag_CXX=' ${wl}-berok'
12777 # Exported symbols can be pulled into shared objects from archives
12778 whole_archive_flag_spec_CXX='$convenience'
12779 archive_cmds_need_lc_CXX=yes
12780 # This is similar to how AIX traditionally builds its shared
12781 # libraries.
12782 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'
12783 fi
12784 fi
12785 ;;
12786
12787 beos*)
12788 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12789 allow_undefined_flag_CXX=unsupported
12790 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12791 # support --undefined. This deserves some investigation. FIXME
12792 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12793 else
12794 ld_shlibs_CXX=no
12795 fi
12796 ;;
12797
12798 chorus*)
12799 case $cc_basename in
12800 *)
12801 # FIXME: insert proper C++ library support
12802 ld_shlibs_CXX=no
12803 ;;
12804 esac
12805 ;;
12806
12807 cygwin* | mingw* | pw32* | cegcc*)
12808 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12809 # as there is no search path for DLLs.
12810 hardcode_libdir_flag_spec_CXX='-L$libdir'
12811 allow_undefined_flag_CXX=unsupported
12812 always_export_symbols_CXX=no
12813 enable_shared_with_static_runtimes_CXX=yes
12814
12815 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12816 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'
12817 # If the export-symbols file already is a .def file (1st line
12818 # is EXPORTS), use it as is; otherwise, prepend...
12819 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12820 cp $export_symbols $output_objdir/$soname.def;
12821 else
12822 echo EXPORTS > $output_objdir/$soname.def;
12823 cat $export_symbols >> $output_objdir/$soname.def;
12824 fi~
12825 $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'
12826 else
12827 ld_shlibs_CXX=no
12828 fi
12829 ;;
12830 darwin* | rhapsody*)
12831
12832
12833 archive_cmds_need_lc_CXX=no
12834 hardcode_direct_CXX=no
12835 hardcode_automatic_CXX=yes
12836 hardcode_shlibpath_var_CXX=unsupported
12837 whole_archive_flag_spec_CXX=''
12838 link_all_deplibs_CXX=yes
12839 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12840 case $cc_basename in
12841 ifort*) _lt_dar_can_shared=yes ;;
12842 *) _lt_dar_can_shared=$GCC ;;
12843 esac
12844 if test "$_lt_dar_can_shared" = "yes"; then
12845 output_verbose_link_cmd=echo
12846 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}"
12847 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12848 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}"
12849 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}"
12850 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12851 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}"
12852 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}"
12853 fi
12854
12855 else
12856 ld_shlibs_CXX=no
12857 fi
12858
12859 ;;
12860
12861 dgux*)
12862 case $cc_basename in
12863 ec++*)
12864 # FIXME: insert proper C++ library support
12865 ld_shlibs_CXX=no
12866 ;;
12867 ghcx*)
12868 # Green Hills C++ Compiler
12869 # FIXME: insert proper C++ library support
12870 ld_shlibs_CXX=no
12871 ;;
12872 *)
12873 # FIXME: insert proper C++ library support
12874 ld_shlibs_CXX=no
12875 ;;
12876 esac
12877 ;;
12878
12879 freebsd[12]*)
12880 # C++ shared libraries reported to be fairly broken before
12881 # switch to ELF
12882 ld_shlibs_CXX=no
12883 ;;
12884
12885 freebsd-elf*)
12886 archive_cmds_need_lc_CXX=no
12887 ;;
12888
12889 freebsd* | dragonfly*)
12890 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12891 # conventions
12892 ld_shlibs_CXX=yes
12893 ;;
12894
12895 gnu*)
12896 ;;
12897
12898 hpux9*)
12899 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12900 hardcode_libdir_separator_CXX=:
12901 export_dynamic_flag_spec_CXX='${wl}-E'
12902 hardcode_direct_CXX=yes
12903 hardcode_minus_L_CXX=yes # Not in the search PATH,
12904 # but as the default
12905 # location of the library.
12906
12907 case $cc_basename in
12908 CC*)
12909 # FIXME: insert proper C++ library support
12910 ld_shlibs_CXX=no
12911 ;;
12912 aCC*)
12913 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'
12914 # Commands to make compiler produce verbose output that lists
12915 # what "hidden" libraries, object files and flags are used when
12916 # linking a shared library.
12917 #
12918 # There doesn't appear to be a way to prevent this compiler from
12919 # explicitly linking system object files so we need to strip them
12920 # from the output so that they don't get included in the library
12921 # dependencies.
12922 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'
12923 ;;
12924 *)
12925 if test "$GXX" = yes; then
12926 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'
12927 else
12928 # FIXME: insert proper C++ library support
12929 ld_shlibs_CXX=no
12930 fi
12931 ;;
12932 esac
12933 ;;
12934
12935 hpux10*|hpux11*)
12936 if test $with_gnu_ld = no; then
12937 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12938 hardcode_libdir_separator_CXX=:
12939
12940 case $host_cpu in
12941 hppa*64*|ia64*)
12942 ;;
12943 *)
12944 export_dynamic_flag_spec_CXX='${wl}-E'
12945 ;;
12946 esac
12947 fi
12948 case $host_cpu in
12949 hppa*64*|ia64*)
12950 hardcode_direct_CXX=no
12951 hardcode_shlibpath_var_CXX=no
12952 ;;
12953 *)
12954 hardcode_direct_CXX=yes
12955 hardcode_direct_absolute_CXX=yes
12956 hardcode_minus_L_CXX=yes # Not in the search PATH,
12957 # but as the default
12958 # location of the library.
12959 ;;
12960 esac
12961
12962 case $cc_basename in
12963 CC*)
12964 # FIXME: insert proper C++ library support
12965 ld_shlibs_CXX=no
12966 ;;
12967 aCC*)
12968 case $host_cpu in
12969 hppa*64*)
12970 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12971 ;;
12972 ia64*)
12973 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12974 ;;
12975 *)
12976 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12977 ;;
12978 esac
12979 # Commands to make compiler produce verbose output that lists
12980 # what "hidden" libraries, object files and flags are used when
12981 # linking a shared library.
12982 #
12983 # There doesn't appear to be a way to prevent this compiler from
12984 # explicitly linking system object files so we need to strip them
12985 # from the output so that they don't get included in the library
12986 # dependencies.
12987 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'
12988 ;;
12989 *)
12990 if test "$GXX" = yes; then
12991 if test $with_gnu_ld = no; then
12992 case $host_cpu in
12993 hppa*64*)
12994 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12995 ;;
12996 ia64*)
12997 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12998 ;;
12999 *)
13000 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'
13001 ;;
13002 esac
13003 fi
13004 else
13005 # FIXME: insert proper C++ library support
13006 ld_shlibs_CXX=no
13007 fi
13008 ;;
13009 esac
13010 ;;
13011
13012 interix[3-9]*)
13013 hardcode_direct_CXX=no
13014 hardcode_shlibpath_var_CXX=no
13015 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13016 export_dynamic_flag_spec_CXX='${wl}-E'
13017 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13018 # Instead, shared libraries are loaded at an image base (0x10000000 by
13019 # default) and relocated if they conflict, which is a slow very memory
13020 # consuming and fragmenting process. To avoid this, we pick a random,
13021 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13022 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13023 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'
13024 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'
13025 ;;
13026 irix5* | irix6*)
13027 case $cc_basename in
13028 CC*)
13029 # SGI C++
13030 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'
13031
13032 # Archives containing C++ object files must be created using
13033 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13034 # necessary to make sure instantiated templates are included
13035 # in the archive.
13036 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13037 ;;
13038 *)
13039 if test "$GXX" = yes; then
13040 if test "$with_gnu_ld" = no; then
13041 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'
13042 else
13043 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'
13044 fi
13045 fi
13046 link_all_deplibs_CXX=yes
13047 ;;
13048 esac
13049 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13050 hardcode_libdir_separator_CXX=:
13051 inherit_rpath_CXX=yes
13052 ;;
13053
13054 linux* | k*bsd*-gnu)
13055 case $cc_basename in
13056 KCC*)
13057 # Kuck and Associates, Inc. (KAI) C++ Compiler
13058
13059 # KCC will only create a shared library if the output file
13060 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13061 # to its proper name (with version) after linking.
13062 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'
13063 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'
13064 # Commands to make compiler produce verbose output that lists
13065 # what "hidden" libraries, object files and flags are used when
13066 # linking a shared library.
13067 #
13068 # There doesn't appear to be a way to prevent this compiler from
13069 # explicitly linking system object files so we need to strip them
13070 # from the output so that they don't get included in the library
13071 # dependencies.
13072 output_verbose_link_cmd='templist=`$CC $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'
13073
13074 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13075 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13076
13077 # Archives containing C++ object files must be created using
13078 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13079 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13080 ;;
13081 icpc* | ecpc* )
13082 # Intel C++
13083 with_gnu_ld=yes
13084 # version 8.0 and above of icpc choke on multiply defined symbols
13085 # if we add $predep_objects and $postdep_objects, however 7.1 and
13086 # earlier do not add the objects themselves.
13087 case `$CC -V 2>&1` in
13088 *"Version 7."*)
13089 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13090 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'
13091 ;;
13092 *) # Version 8.0 or newer
13093 tmp_idyn=
13094 case $host_cpu in
13095 ia64*) tmp_idyn=' -i_dynamic';;
13096 esac
13097 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13098 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'
13099 ;;
13100 esac
13101 archive_cmds_need_lc_CXX=no
13102 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13103 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13104 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13105 ;;
13106 pgCC* | pgcpp*)
13107 # Portland Group C++ compiler
13108 case `$CC -V` in
13109 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13110 prelink_cmds_CXX='tpldir=Template.dir~
13111 rm -rf $tpldir~
13112 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13113 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13114 old_archive_cmds_CXX='tpldir=Template.dir~
13115 rm -rf $tpldir~
13116 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13117 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13118 $RANLIB $oldlib'
13119 archive_cmds_CXX='tpldir=Template.dir~
13120 rm -rf $tpldir~
13121 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13122 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13123 archive_expsym_cmds_CXX='tpldir=Template.dir~
13124 rm -rf $tpldir~
13125 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13126 $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'
13127 ;;
13128 *) # Version 6 will use weak symbols
13129 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13130 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'
13131 ;;
13132 esac
13133
13134 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13135 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13136 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'
13137 ;;
13138 cxx*)
13139 # Compaq C++
13140 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13141 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'
13142
13143 runpath_var=LD_RUN_PATH
13144 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13145 hardcode_libdir_separator_CXX=:
13146
13147 # Commands to make compiler produce verbose output that lists
13148 # what "hidden" libraries, object files and flags are used when
13149 # linking a shared library.
13150 #
13151 # There doesn't appear to be a way to prevent this compiler from
13152 # explicitly linking system object files so we need to strip them
13153 # from the output so that they don't get included in the library
13154 # dependencies.
13155 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'
13156 ;;
13157 xl*)
13158 # IBM XL 8.0 on PPC, with GNU ld
13159 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13160 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13161 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13162 if test "x$supports_anon_versioning" = xyes; then
13163 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13164 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13165 echo "local: *; };" >> $output_objdir/$libname.ver~
13166 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13167 fi
13168 ;;
13169 *)
13170 case `$CC -V 2>&1 | sed 5q` in
13171 *Sun\ C*)
13172 # Sun C++ 5.9
13173 no_undefined_flag_CXX=' -zdefs'
13174 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13175 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'
13176 hardcode_libdir_flag_spec_CXX='-R$libdir'
13177 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'
13178 compiler_needs_object_CXX=yes
13179
13180 # Not sure whether something based on
13181 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13182 # would be better.
13183 output_verbose_link_cmd='echo'
13184
13185 # Archives containing C++ object files must be created using
13186 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13187 # necessary to make sure instantiated templates are included
13188 # in the archive.
13189 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13190 ;;
13191 esac
13192 ;;
13193 esac
13194 ;;
13195
13196 lynxos*)
13197 # FIXME: insert proper C++ library support
13198 ld_shlibs_CXX=no
13199 ;;
13200
13201 m88k*)
13202 # FIXME: insert proper C++ library support
13203 ld_shlibs_CXX=no
13204 ;;
13205
13206 mvs*)
13207 case $cc_basename in
13208 cxx*)
13209 # FIXME: insert proper C++ library support
13210 ld_shlibs_CXX=no
13211 ;;
13212 *)
13213 # FIXME: insert proper C++ library support
13214 ld_shlibs_CXX=no
13215 ;;
13216 esac
13217 ;;
13218
13219 netbsd*)
13220 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13221 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13222 wlarc=
13223 hardcode_libdir_flag_spec_CXX='-R$libdir'
13224 hardcode_direct_CXX=yes
13225 hardcode_shlibpath_var_CXX=no
13226 fi
13227 # Workaround some broken pre-1.5 toolchains
13228 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13229 ;;
13230
13231 *nto* | *qnx*)
13232 ld_shlibs_CXX=yes
13233 ;;
13234
13235 openbsd2*)
13236 # C++ shared libraries are fairly broken
13237 ld_shlibs_CXX=no
13238 ;;
13239
13240 openbsd*)
13241 if test -f /usr/libexec/ld.so; then
13242 hardcode_direct_CXX=yes
13243 hardcode_shlibpath_var_CXX=no
13244 hardcode_direct_absolute_CXX=yes
13245 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13246 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13247 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13248 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13249 export_dynamic_flag_spec_CXX='${wl}-E'
13250 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13251 fi
13252 output_verbose_link_cmd=echo
13253 else
13254 ld_shlibs_CXX=no
13255 fi
13256 ;;
13257
13258 osf3* | osf4* | osf5*)
13259 case $cc_basename in
13260 KCC*)
13261 # Kuck and Associates, Inc. (KAI) C++ Compiler
13262
13263 # KCC will only create a shared library if the output file
13264 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13265 # to its proper name (with version) after linking.
13266 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'
13267
13268 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13269 hardcode_libdir_separator_CXX=:
13270
13271 # Archives containing C++ object files must be created using
13272 # the KAI C++ compiler.
13273 case $host in
13274 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13275 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13276 esac
13277 ;;
13278 RCC*)
13279 # Rational C++ 2.4.1
13280 # FIXME: insert proper C++ library support
13281 ld_shlibs_CXX=no
13282 ;;
13283 cxx*)
13284 case $host in
13285 osf3*)
13286 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13287 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'
13288 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13289 ;;
13290 *)
13291 allow_undefined_flag_CXX=' -expect_unresolved \*'
13292 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'
13293 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13294 echo "-hidden">> $lib.exp~
13295 $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~
13296 $RM $lib.exp'
13297 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13298 ;;
13299 esac
13300
13301 hardcode_libdir_separator_CXX=:
13302
13303 # Commands to make compiler produce verbose output that lists
13304 # what "hidden" libraries, object files and flags are used when
13305 # linking a shared library.
13306 #
13307 # There doesn't appear to be a way to prevent this compiler from
13308 # explicitly linking system object files so we need to strip them
13309 # from the output so that they don't get included in the library
13310 # dependencies.
13311 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'
13312 ;;
13313 *)
13314 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13315 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13316 case $host in
13317 osf3*)
13318 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'
13319 ;;
13320 *)
13321 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'
13322 ;;
13323 esac
13324
13325 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13326 hardcode_libdir_separator_CXX=:
13327
13328 # Commands to make compiler produce verbose output that lists
13329 # what "hidden" libraries, object files and flags are used when
13330 # linking a shared library.
13331 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13332
13333 else
13334 # FIXME: insert proper C++ library support
13335 ld_shlibs_CXX=no
13336 fi
13337 ;;
13338 esac
13339 ;;
13340
13341 psos*)
13342 # FIXME: insert proper C++ library support
13343 ld_shlibs_CXX=no
13344 ;;
13345
13346 sunos4*)
13347 case $cc_basename in
13348 CC*)
13349 # Sun C++ 4.x
13350 # FIXME: insert proper C++ library support
13351 ld_shlibs_CXX=no
13352 ;;
13353 lcc*)
13354 # Lucid
13355 # FIXME: insert proper C++ library support
13356 ld_shlibs_CXX=no
13357 ;;
13358 *)
13359 # FIXME: insert proper C++ library support
13360 ld_shlibs_CXX=no
13361 ;;
13362 esac
13363 ;;
13364
13365 solaris*)
13366 case $cc_basename in
13367 CC*)
13368 # Sun C++ 4.2, 5.x and Centerline C++
13369 archive_cmds_need_lc_CXX=yes
13370 no_undefined_flag_CXX=' -zdefs'
13371 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13372 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13373 $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'
13374
13375 hardcode_libdir_flag_spec_CXX='-R$libdir'
13376 hardcode_shlibpath_var_CXX=no
13377 case $host_os in
13378 solaris2.[0-5] | solaris2.[0-5].*) ;;
13379 *)
13380 # The compiler driver will combine and reorder linker options,
13381 # but understands `-z linker_flag'.
13382 # Supported since Solaris 2.6 (maybe 2.5.1?)
13383 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13384 ;;
13385 esac
13386 link_all_deplibs_CXX=yes
13387
13388 output_verbose_link_cmd='echo'
13389
13390 # Archives containing C++ object files must be created using
13391 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13392 # necessary to make sure instantiated templates are included
13393 # in the archive.
13394 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13395 ;;
13396 gcx*)
13397 # Green Hills C++ Compiler
13398 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13399
13400 # The C++ compiler must be used to create the archive.
13401 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13402 ;;
13403 *)
13404 # GNU C++ compiler with Solaris linker
13405 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13406 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13407 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13408 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13409 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13410 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13411
13412 # Commands to make compiler produce verbose output that lists
13413 # what "hidden" libraries, object files and flags are used when
13414 # linking a shared library.
13415 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13416 else
13417 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13418 # platform.
13419 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13420 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13421 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13422
13423 # Commands to make compiler produce verbose output that lists
13424 # what "hidden" libraries, object files and flags are used when
13425 # linking a shared library.
13426 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13427 fi
13428
13429 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13430 case $host_os in
13431 solaris2.[0-5] | solaris2.[0-5].*) ;;
13432 *)
13433 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13434 ;;
13435 esac
13436 fi
13437 ;;
13438 esac
13439 ;;
13440
13441 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13442 no_undefined_flag_CXX='${wl}-z,text'
13443 archive_cmds_need_lc_CXX=no
13444 hardcode_shlibpath_var_CXX=no
13445 runpath_var='LD_RUN_PATH'
13446
13447 case $cc_basename in
13448 CC*)
13449 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13450 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13451 ;;
13452 *)
13453 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13454 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13455 ;;
13456 esac
13457 ;;
13458
13459 sysv5* | sco3.2v5* | sco5v6*)
13460 # Note: We can NOT use -z defs as we might desire, because we do not
13461 # link with -lc, and that would cause any symbols used from libc to
13462 # always be unresolved, which means just about no library would
13463 # ever link correctly. If we're not using GNU ld we use -z text
13464 # though, which does catch some bad symbols but isn't as heavy-handed
13465 # as -z defs.
13466 no_undefined_flag_CXX='${wl}-z,text'
13467 allow_undefined_flag_CXX='${wl}-z,nodefs'
13468 archive_cmds_need_lc_CXX=no
13469 hardcode_shlibpath_var_CXX=no
13470 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13471 hardcode_libdir_separator_CXX=':'
13472 link_all_deplibs_CXX=yes
13473 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13474 runpath_var='LD_RUN_PATH'
13475
13476 case $cc_basename in
13477 CC*)
13478 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13479 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13480 ;;
13481 *)
13482 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13483 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13484 ;;
13485 esac
13486 ;;
13487
13488 tandem*)
13489 case $cc_basename in
13490 NCC*)
13491 # NonStop-UX NCC 3.20
13492 # FIXME: insert proper C++ library support
13493 ld_shlibs_CXX=no
13494 ;;
13495 *)
13496 # FIXME: insert proper C++ library support
13497 ld_shlibs_CXX=no
13498 ;;
13499 esac
13500 ;;
13501
13502 vxworks*)
13503 # FIXME: insert proper C++ library support
13504 ld_shlibs_CXX=no
13505 ;;
13506
13507 *)
13508 # FIXME: insert proper C++ library support
13509 ld_shlibs_CXX=no
13510 ;;
13511 esac
13512
13513 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13514$as_echo "$ld_shlibs_CXX" >&6; }
13515 test "$ld_shlibs_CXX" = no && can_build_shared=no
13516
13517 GCC_CXX="$GXX"
13518 LD_CXX="$LD"
13519
13520 ## CAVEAT EMPTOR:
13521 ## There is no encapsulation within the following macros, do not change
13522 ## the running order or otherwise move them around unless you know exactly
13523 ## what you are doing...
13524 # Dependencies to place before and after the object being linked:
13525predep_objects_CXX=
13526postdep_objects_CXX=
13527predeps_CXX=
13528postdeps_CXX=
13529compiler_lib_search_path_CXX=
13530
13531cat > conftest.$ac_ext <<_LT_EOF
13532class Foo
13533{
13534public:
13535 Foo (void) { a = 0; }
13536private:
13537 int a;
13538};
13539_LT_EOF
13540
13541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13542 (eval $ac_compile) 2>&5
13543 ac_status=$?
13544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545 (exit $ac_status); }; then
13546 # Parse the compiler output and extract the necessary
13547 # objects, libraries and library flags.
13548
13549 # Sentinel used to keep track of whether or not we are before
13550 # the conftest object file.
13551 pre_test_object_deps_done=no
13552
13553 for p in `eval "$output_verbose_link_cmd"`; do
13554 case $p in
13555
13556 -L* | -R* | -l*)
13557 # Some compilers place space between "-{L,R}" and the path.
13558 # Remove the space.
13559 if test $p = "-L" ||
13560 test $p = "-R"; then
13561 prev=$p
13562 continue
13563 else
13564 prev=
13565 fi
13566
13567 if test "$pre_test_object_deps_done" = no; then
13568 case $p in
13569 -L* | -R*)
13570 # Internal compiler library paths should come after those
13571 # provided the user. The postdeps already come after the
13572 # user supplied libs so there is no need to process them.
13573 if test -z "$compiler_lib_search_path_CXX"; then
13574 compiler_lib_search_path_CXX="${prev}${p}"
13575 else
13576 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13577 fi
13578 ;;
13579 # The "-l" case would never come before the object being
13580 # linked, so don't bother handling this case.
13581 esac
13582 else
13583 if test -z "$postdeps_CXX"; then
13584 postdeps_CXX="${prev}${p}"
13585 else
13586 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13587 fi
13588 fi
13589 ;;
13590
13591 *.$objext)
13592 # This assumes that the test object file only shows up
13593 # once in the compiler output.
13594 if test "$p" = "conftest.$objext"; then
13595 pre_test_object_deps_done=yes
13596 continue
13597 fi
13598
13599 if test "$pre_test_object_deps_done" = no; then
13600 if test -z "$predep_objects_CXX"; then
13601 predep_objects_CXX="$p"
13602 else
13603 predep_objects_CXX="$predep_objects_CXX $p"
13604 fi
13605 else
13606 if test -z "$postdep_objects_CXX"; then
13607 postdep_objects_CXX="$p"
13608 else
13609 postdep_objects_CXX="$postdep_objects_CXX $p"
13610 fi
13611 fi
13612 ;;
13613
13614 *) ;; # Ignore the rest.
13615
13616 esac
13617 done
13618
13619 # Clean up.
13620 rm -f a.out a.exe
13621else
13622 echo "libtool.m4: error: problem compiling CXX test program"
13623fi
13624
13625$RM -f confest.$objext
13626
13627# PORTME: override above test on systems where it is broken
13628case $host_os in
13629interix[3-9]*)
13630 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13631 # hack all around it, let's just trust "g++" to DTRT.
13632 predep_objects_CXX=
13633 postdep_objects_CXX=
13634 postdeps_CXX=
13635 ;;
13636
13637linux*)
13638 case `$CC -V 2>&1 | sed 5q` in
13639 *Sun\ C*)
13640 # Sun C++ 5.9
13641
13642 # The more standards-conforming stlport4 library is
13643 # incompatible with the Cstd library. Avoid specifying
13644 # it if it's in CXXFLAGS. Ignore libCrun as
13645 # -library=stlport4 depends on it.
13646 case " $CXX $CXXFLAGS " in
13647 *" -library=stlport4 "*)
13648 solaris_use_stlport4=yes
13649 ;;
13650 esac
13651
13652 if test "$solaris_use_stlport4" != yes; then
13653 postdeps_CXX='-library=Cstd -library=Crun'
13654 fi
13655 ;;
13656 esac
13657 ;;
13658
13659solaris*)
13660 case $cc_basename in
13661 CC*)
13662 # The more standards-conforming stlport4 library is
13663 # incompatible with the Cstd library. Avoid specifying
13664 # it if it's in CXXFLAGS. Ignore libCrun as
13665 # -library=stlport4 depends on it.
13666 case " $CXX $CXXFLAGS " in
13667 *" -library=stlport4 "*)
13668 solaris_use_stlport4=yes
13669 ;;
13670 esac
13671
13672 # Adding this requires a known-good setup of shared libraries for
13673 # Sun compiler versions before 5.6, else PIC objects from an old
13674 # archive will be linked into the output, leading to subtle bugs.
13675 if test "$solaris_use_stlport4" != yes; then
13676 postdeps_CXX='-library=Cstd -library=Crun'
13677 fi
13678 ;;
13679 esac
13680 ;;
13681esac
13682
13683
13684case " $postdeps_CXX " in
13685*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13686esac
13687 compiler_lib_search_dirs_CXX=
13688if test -n "${compiler_lib_search_path_CXX}"; then
13689 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13690fi
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722 lt_prog_compiler_wl_CXX=
13723lt_prog_compiler_pic_CXX=
13724lt_prog_compiler_static_CXX=
13725
13726{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13727$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13728
13729 # C++ specific cases for pic, static, wl, etc.
13730 if test "$GXX" = yes; then
13731 lt_prog_compiler_wl_CXX='-Wl,'
13732 lt_prog_compiler_static_CXX='-static'
13733
13734 case $host_os in
13735 aix*)
13736 # All AIX code is PIC.
13737 if test "$host_cpu" = ia64; then
13738 # AIX 5 now supports IA64 processor
13739 lt_prog_compiler_static_CXX='-Bstatic'
13740 fi
13741 ;;
13742
13743 amigaos*)
13744 case $host_cpu in
13745 powerpc)
13746 # see comment about AmigaOS4 .so support
13747 lt_prog_compiler_pic_CXX='-fPIC'
13748 ;;
13749 m68k)
13750 # FIXME: we need at least 68020 code to build shared libraries, but
13751 # adding the `-m68020' flag to GCC prevents building anything better,
13752 # like `-m68040'.
13753 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13754 ;;
13755 esac
13756 ;;
13757
13758 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13759 # PIC is the default for these OSes.
13760 ;;
13761 mingw* | cygwin* | os2* | pw32* | cegcc*)
13762 # This hack is so that the source file can tell whether it is being
13763 # built for inclusion in a dll (and should export symbols for example).
13764 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13765 # (--disable-auto-import) libraries
13766 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13767 ;;
13768 darwin* | rhapsody*)
13769 # PIC is the default on this platform
13770 # Common symbols not allowed in MH_DYLIB files
13771 lt_prog_compiler_pic_CXX='-fno-common'
13772 ;;
13773 *djgpp*)
13774 # DJGPP does not support shared libraries at all
13775 lt_prog_compiler_pic_CXX=
13776 ;;
13777 interix[3-9]*)
13778 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13779 # Instead, we relocate shared libraries at runtime.
13780 ;;
13781 sysv4*MP*)
13782 if test -d /usr/nec; then
13783 lt_prog_compiler_pic_CXX=-Kconform_pic
13784 fi
13785 ;;
13786 hpux*)
13787 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13788 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13789 # sets the default TLS model and affects inlining.
13790 case $host_cpu in
13791 hppa*64*)
13792 ;;
13793 *)
13794 lt_prog_compiler_pic_CXX='-fPIC'
13795 ;;
13796 esac
13797 ;;
13798 *qnx* | *nto*)
13799 # QNX uses GNU C++, but need to define -shared option too, otherwise
13800 # it will coredump.
13801 lt_prog_compiler_pic_CXX='-fPIC -shared'
13802 ;;
13803 *)
13804 lt_prog_compiler_pic_CXX='-fPIC'
13805 ;;
13806 esac
13807 else
13808 case $host_os in
13809 aix[4-9]*)
13810 # All AIX code is PIC.
13811 if test "$host_cpu" = ia64; then
13812 # AIX 5 now supports IA64 processor
13813 lt_prog_compiler_static_CXX='-Bstatic'
13814 else
13815 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13816 fi
13817 ;;
13818 chorus*)
13819 case $cc_basename in
13820 cxch68*)
13821 # Green Hills C++ Compiler
13822 # _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"
13823 ;;
13824 esac
13825 ;;
13826 dgux*)
13827 case $cc_basename in
13828 ec++*)
13829 lt_prog_compiler_pic_CXX='-KPIC'
13830 ;;
13831 ghcx*)
13832 # Green Hills C++ Compiler
13833 lt_prog_compiler_pic_CXX='-pic'
13834 ;;
13835 *)
13836 ;;
13837 esac
13838 ;;
13839 freebsd* | dragonfly*)
13840 # FreeBSD uses GNU C++
13841 ;;
13842 hpux9* | hpux10* | hpux11*)
13843 case $cc_basename in
13844 CC*)
13845 lt_prog_compiler_wl_CXX='-Wl,'
13846 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13847 if test "$host_cpu" != ia64; then
13848 lt_prog_compiler_pic_CXX='+Z'
13849 fi
13850 ;;
13851 aCC*)
13852 lt_prog_compiler_wl_CXX='-Wl,'
13853 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13854 case $host_cpu in
13855 hppa*64*|ia64*)
13856 # +Z the default
13857 ;;
13858 *)
13859 lt_prog_compiler_pic_CXX='+Z'
13860 ;;
13861 esac
13862 ;;
13863 *)
13864 ;;
13865 esac
13866 ;;
13867 interix*)
13868 # This is c89, which is MS Visual C++ (no shared libs)
13869 # Anyone wants to do a port?
13870 ;;
13871 irix5* | irix6* | nonstopux*)
13872 case $cc_basename in
13873 CC*)
13874 lt_prog_compiler_wl_CXX='-Wl,'
13875 lt_prog_compiler_static_CXX='-non_shared'
13876 # CC pic flag -KPIC is the default.
13877 ;;
13878 *)
13879 ;;
13880 esac
13881 ;;
13882 linux* | k*bsd*-gnu)
13883 case $cc_basename in
13884 KCC*)
13885 # KAI C++ Compiler
13886 lt_prog_compiler_wl_CXX='--backend -Wl,'
13887 lt_prog_compiler_pic_CXX='-fPIC'
13888 ;;
13889 ecpc* )
13890 # old Intel C++ for x86_64 which still supported -KPIC.
13891 lt_prog_compiler_wl_CXX='-Wl,'
13892 lt_prog_compiler_pic_CXX='-KPIC'
13893 lt_prog_compiler_static_CXX='-static'
13894 ;;
13895 icpc* )
13896 # Intel C++, used to be incompatible with GCC.
13897 # ICC 10 doesn't accept -KPIC any more.
13898 lt_prog_compiler_wl_CXX='-Wl,'
13899 lt_prog_compiler_pic_CXX='-fPIC'
13900 lt_prog_compiler_static_CXX='-static'
13901 ;;
13902 pgCC* | pgcpp*)
13903 # Portland Group C++ compiler
13904 lt_prog_compiler_wl_CXX='-Wl,'
13905 lt_prog_compiler_pic_CXX='-fpic'
13906 lt_prog_compiler_static_CXX='-Bstatic'
13907 ;;
13908 cxx*)
13909 # Compaq C++
13910 # Make sure the PIC flag is empty. It appears that all Alpha
13911 # Linux and Compaq Tru64 Unix objects are PIC.
13912 lt_prog_compiler_pic_CXX=
13913 lt_prog_compiler_static_CXX='-non_shared'
13914 ;;
13915 xlc* | xlC*)
13916 # IBM XL 8.0 on PPC
13917 lt_prog_compiler_wl_CXX='-Wl,'
13918 lt_prog_compiler_pic_CXX='-qpic'
13919 lt_prog_compiler_static_CXX='-qstaticlink'
13920 ;;
13921 *)
13922 case `$CC -V 2>&1 | sed 5q` in
13923 *Sun\ C*)
13924 # Sun C++ 5.9
13925 lt_prog_compiler_pic_CXX='-KPIC'
13926 lt_prog_compiler_static_CXX='-Bstatic'
13927 lt_prog_compiler_wl_CXX='-Qoption ld '
13928 ;;
13929 esac
13930 ;;
13931 esac
13932 ;;
13933 lynxos*)
13934 ;;
13935 m88k*)
13936 ;;
13937 mvs*)
13938 case $cc_basename in
13939 cxx*)
13940 lt_prog_compiler_pic_CXX='-W c,exportall'
13941 ;;
13942 *)
13943 ;;
13944 esac
13945 ;;
13946 netbsd*)
13947 ;;
13948 *qnx* | *nto*)
13949 # QNX uses GNU C++, but need to define -shared option too, otherwise
13950 # it will coredump.
13951 lt_prog_compiler_pic_CXX='-fPIC -shared'
13952 ;;
13953 osf3* | osf4* | osf5*)
13954 case $cc_basename in
13955 KCC*)
13956 lt_prog_compiler_wl_CXX='--backend -Wl,'
13957 ;;
13958 RCC*)
13959 # Rational C++ 2.4.1
13960 lt_prog_compiler_pic_CXX='-pic'
13961 ;;
13962 cxx*)
13963 # Digital/Compaq C++
13964 lt_prog_compiler_wl_CXX='-Wl,'
13965 # Make sure the PIC flag is empty. It appears that all Alpha
13966 # Linux and Compaq Tru64 Unix objects are PIC.
13967 lt_prog_compiler_pic_CXX=
13968 lt_prog_compiler_static_CXX='-non_shared'
13969 ;;
13970 *)
13971 ;;
13972 esac
13973 ;;
13974 psos*)
13975 ;;
13976 solaris*)
13977 case $cc_basename in
13978 CC*)
13979 # Sun C++ 4.2, 5.x and Centerline C++
13980 lt_prog_compiler_pic_CXX='-KPIC'
13981 lt_prog_compiler_static_CXX='-Bstatic'
13982 lt_prog_compiler_wl_CXX='-Qoption ld '
13983 ;;
13984 gcx*)
13985 # Green Hills C++ Compiler
13986 lt_prog_compiler_pic_CXX='-PIC'
13987 ;;
13988 *)
13989 ;;
13990 esac
13991 ;;
13992 sunos4*)
13993 case $cc_basename in
13994 CC*)
13995 # Sun C++ 4.x
13996 lt_prog_compiler_pic_CXX='-pic'
13997 lt_prog_compiler_static_CXX='-Bstatic'
13998 ;;
13999 lcc*)
14000 # Lucid
14001 lt_prog_compiler_pic_CXX='-pic'
14002 ;;
14003 *)
14004 ;;
14005 esac
14006 ;;
14007 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14008 case $cc_basename in
14009 CC*)
14010 lt_prog_compiler_wl_CXX='-Wl,'
14011 lt_prog_compiler_pic_CXX='-KPIC'
14012 lt_prog_compiler_static_CXX='-Bstatic'
14013 ;;
14014 esac
14015 ;;
14016 tandem*)
14017 case $cc_basename in
14018 NCC*)
14019 # NonStop-UX NCC 3.20
14020 lt_prog_compiler_pic_CXX='-KPIC'
14021 ;;
14022 *)
14023 ;;
14024 esac
14025 ;;
14026 vxworks*)
14027 ;;
14028 *)
14029 lt_prog_compiler_can_build_shared_CXX=no
14030 ;;
14031 esac
14032 fi
14033
14034case $host_os in
14035 # For platforms which do not support PIC, -DPIC is meaningless:
14036 *djgpp*)
14037 lt_prog_compiler_pic_CXX=
14038 ;;
14039 *)
14040 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14041 ;;
14042esac
14043{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14044$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14045
14046
14047
14048#
14049# Check to make sure the PIC flag actually works.
14050#
14051if test -n "$lt_prog_compiler_pic_CXX"; then
14052 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14053$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14054if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14055 $as_echo_n "(cached) " >&6
14056else
14057 lt_cv_prog_compiler_pic_works_CXX=no
14058 ac_outfile=conftest.$ac_objext
14059 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14060 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14061 # Insert the option either (1) after the last *FLAGS variable, or
14062 # (2) before a word containing "conftest.", or (3) at the end.
14063 # Note that $ac_compile itself does not contain backslashes and begins
14064 # with a dollar sign (not a hyphen), so the echo should work correctly.
14065 # The option is referenced via a variable to avoid confusing sed.
14066 lt_compile=`echo "$ac_compile" | $SED \
14067 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14068 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14069 -e 's:$: $lt_compiler_flag:'`
14070 (eval echo "\"\$as_me:14070: $lt_compile\"" >&5)
14071 (eval "$lt_compile" 2>conftest.err)
14072 ac_status=$?
14073 cat conftest.err >&5
14074 echo "$as_me:14074: \$? = $ac_status" >&5
14075 if (exit $ac_status) && test -s "$ac_outfile"; then
14076 # The compiler can only warn and ignore the option if not recognized
14077 # So say no if there are warnings other than the usual output.
14078 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14079 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14080 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14081 lt_cv_prog_compiler_pic_works_CXX=yes
14082 fi
14083 fi
14084 $RM conftest*
14085
14086fi
14087{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14088$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14089
14090if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14091 case $lt_prog_compiler_pic_CXX in
14092 "" | " "*) ;;
14093 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14094 esac
14095else
14096 lt_prog_compiler_pic_CXX=
14097 lt_prog_compiler_can_build_shared_CXX=no
14098fi
14099
14100fi
14101
14102
14103
14104#
14105# Check to make sure the static flag actually works.
14106#
14107wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14108{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14109$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14110if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14111 $as_echo_n "(cached) " >&6
14112else
14113 lt_cv_prog_compiler_static_works_CXX=no
14114 save_LDFLAGS="$LDFLAGS"
14115 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14116 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14117 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14118 # The linker can only warn and ignore the option if not recognized
14119 # So say no if there are warnings
14120 if test -s conftest.err; then
14121 # Append any errors to the config.log.
14122 cat conftest.err 1>&5
14123 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14124 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14125 if diff conftest.exp conftest.er2 >/dev/null; then
14126 lt_cv_prog_compiler_static_works_CXX=yes
14127 fi
14128 else
14129 lt_cv_prog_compiler_static_works_CXX=yes
14130 fi
14131 fi
14132 $RM -r conftest*
14133 LDFLAGS="$save_LDFLAGS"
14134
14135fi
14136{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14137$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14138
14139if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14140 :
14141else
14142 lt_prog_compiler_static_CXX=
14143fi
14144
14145
14146
14147
14148 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14149$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14150if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14151 $as_echo_n "(cached) " >&6
14152else
14153 lt_cv_prog_compiler_c_o_CXX=no
14154 $RM -r conftest 2>/dev/null
14155 mkdir conftest
14156 cd conftest
14157 mkdir out
14158 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14159
14160 lt_compiler_flag="-o out/conftest2.$ac_objext"
14161 # Insert the option either (1) after the last *FLAGS variable, or
14162 # (2) before a word containing "conftest.", or (3) at the end.
14163 # Note that $ac_compile itself does not contain backslashes and begins
14164 # with a dollar sign (not a hyphen), so the echo should work correctly.
14165 lt_compile=`echo "$ac_compile" | $SED \
14166 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14167 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14168 -e 's:$: $lt_compiler_flag:'`
14169 (eval echo "\"\$as_me:14169: $lt_compile\"" >&5)
14170 (eval "$lt_compile" 2>out/conftest.err)
14171 ac_status=$?
14172 cat out/conftest.err >&5
14173 echo "$as_me:14173: \$? = $ac_status" >&5
14174 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14175 then
14176 # The compiler can only warn and ignore the option if not recognized
14177 # So say no if there are warnings
14178 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14179 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14180 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14181 lt_cv_prog_compiler_c_o_CXX=yes
14182 fi
14183 fi
14184 chmod u+w . 2>&5
14185 $RM conftest*
14186 # SGI C++ compiler will create directory out/ii_files/ for
14187 # template instantiation
14188 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14189 $RM out/* && rmdir out
14190 cd ..
14191 $RM -r conftest
14192 $RM conftest*
14193
14194fi
14195{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14196$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14197
14198
14199
14200 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14201$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14202if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14203 $as_echo_n "(cached) " >&6
14204else
14205 lt_cv_prog_compiler_c_o_CXX=no
14206 $RM -r conftest 2>/dev/null
14207 mkdir conftest
14208 cd conftest
14209 mkdir out
14210 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14211
14212 lt_compiler_flag="-o out/conftest2.$ac_objext"
14213 # Insert the option either (1) after the last *FLAGS variable, or
14214 # (2) before a word containing "conftest.", or (3) at the end.
14215 # Note that $ac_compile itself does not contain backslashes and begins
14216 # with a dollar sign (not a hyphen), so the echo should work correctly.
14217 lt_compile=`echo "$ac_compile" | $SED \
14218 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14219 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14220 -e 's:$: $lt_compiler_flag:'`
14221 (eval echo "\"\$as_me:14221: $lt_compile\"" >&5)
14222 (eval "$lt_compile" 2>out/conftest.err)
14223 ac_status=$?
14224 cat out/conftest.err >&5
14225 echo "$as_me:14225: \$? = $ac_status" >&5
14226 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14227 then
14228 # The compiler can only warn and ignore the option if not recognized
14229 # So say no if there are warnings
14230 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14231 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14232 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14233 lt_cv_prog_compiler_c_o_CXX=yes
14234 fi
14235 fi
14236 chmod u+w . 2>&5
14237 $RM conftest*
14238 # SGI C++ compiler will create directory out/ii_files/ for
14239 # template instantiation
14240 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14241 $RM out/* && rmdir out
14242 cd ..
14243 $RM -r conftest
14244 $RM conftest*
14245
14246fi
14247{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14248$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14249
14250
14251
14252
14253hard_links="nottested"
14254if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14255 # do not overwrite the value of need_locks provided by the user
14256 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14257$as_echo_n "checking if we can lock with hard links... " >&6; }
14258 hard_links=yes
14259 $RM conftest*
14260 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14261 touch conftest.a
14262 ln conftest.a conftest.b 2>&5 || hard_links=no
14263 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14264 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14265$as_echo "$hard_links" >&6; }
14266 if test "$hard_links" = no; then
14267 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14268$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14269 need_locks=warn
14270 fi
14271else
14272 need_locks=no
14273fi
14274
14275
14276
14277 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14278$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14279
14280 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14281 case $host_os in
14282 aix[4-9]*)
14283 # If we're using GNU nm, then we don't want the "-C" option.
14284 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14285 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14286 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'
14287 else
14288 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'
14289 fi
14290 ;;
14291 pw32*)
14292 export_symbols_cmds_CXX="$ltdll_cmds"
14293 ;;
14294 cygwin* | mingw* | cegcc*)
14295 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'
14296 ;;
14297 *)
14298 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14299 ;;
14300 esac
14301 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14302
14303{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14304$as_echo "$ld_shlibs_CXX" >&6; }
14305test "$ld_shlibs_CXX" = no && can_build_shared=no
14306
14307with_gnu_ld_CXX=$with_gnu_ld
14308
14309
14310
14311
14312
14313
14314#
14315# Do we need to explicitly link libc?
14316#
14317case "x$archive_cmds_need_lc_CXX" in
14318x|xyes)
14319 # Assume -lc should be added
14320 archive_cmds_need_lc_CXX=yes
14321
14322 if test "$enable_shared" = yes && test "$GCC" = yes; then
14323 case $archive_cmds_CXX in
14324 *'~'*)
14325 # FIXME: we may have to deal with multi-command sequences.
14326 ;;
14327 '$CC '*)
14328 # Test whether the compiler implicitly links with -lc since on some
14329 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14330 # to ld, don't add -lc before -lgcc.
14331 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14332$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14333 $RM conftest*
14334 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14335
14336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14337 (eval $ac_compile) 2>&5
14338 ac_status=$?
14339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340 (exit $ac_status); } 2>conftest.err; then
14341 soname=conftest
14342 lib=conftest
14343 libobjs=conftest.$ac_objext
14344 deplibs=
14345 wl=$lt_prog_compiler_wl_CXX
14346 pic_flag=$lt_prog_compiler_pic_CXX
14347 compiler_flags=-v
14348 linker_flags=-v
14349 verstring=
14350 output_objdir=.
14351 libname=conftest
14352 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14353 allow_undefined_flag_CXX=
14354 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
14355 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14356 ac_status=$?
14357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358 (exit $ac_status); }
14359 then
14360 archive_cmds_need_lc_CXX=no
14361 else
14362 archive_cmds_need_lc_CXX=yes
14363 fi
14364 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14365 else
14366 cat conftest.err 1>&5
14367 fi
14368 $RM conftest*
14369 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14370$as_echo "$archive_cmds_need_lc_CXX" >&6; }
14371 ;;
14372 esac
14373 fi
14374 ;;
14375esac
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14441$as_echo_n "checking dynamic linker characteristics... " >&6; }
14442
14443library_names_spec=
14444libname_spec='lib$name'
14445soname_spec=
14446shrext_cmds=".so"
14447postinstall_cmds=
14448postuninstall_cmds=
14449finish_cmds=
14450finish_eval=
14451shlibpath_var=
14452shlibpath_overrides_runpath=unknown
14453version_type=none
14454dynamic_linker="$host_os ld.so"
14455sys_lib_dlsearch_path_spec="/lib /usr/lib"
14456need_lib_prefix=unknown
14457hardcode_into_libs=no
14458
14459# when you set need_version to no, make sure it does not cause -set_version
14460# flags to be left without arguments
14461need_version=unknown
14462
14463case $host_os in
14464aix3*)
14465 version_type=linux
14466 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14467 shlibpath_var=LIBPATH
14468
14469 # AIX 3 has no versioning support, so we append a major version to the name.
14470 soname_spec='${libname}${release}${shared_ext}$major'
14471 ;;
14472
14473aix[4-9]*)
14474 version_type=linux
14475 need_lib_prefix=no
14476 need_version=no
14477 hardcode_into_libs=yes
14478 if test "$host_cpu" = ia64; then
14479 # AIX 5 supports IA64
14480 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14481 shlibpath_var=LD_LIBRARY_PATH
14482 else
14483 # With GCC up to 2.95.x, collect2 would create an import file
14484 # for dependence libraries. The import file would start with
14485 # the line `#! .'. This would cause the generated library to
14486 # depend on `.', always an invalid library. This was fixed in
14487 # development snapshots of GCC prior to 3.0.
14488 case $host_os in
14489 aix4 | aix4.[01] | aix4.[01].*)
14490 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14491 echo ' yes '
14492 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14493 :
14494 else
14495 can_build_shared=no
14496 fi
14497 ;;
14498 esac
14499 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14500 # soname into executable. Probably we can add versioning support to
14501 # collect2, so additional links can be useful in future.
14502 if test "$aix_use_runtimelinking" = yes; then
14503 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14504 # instead of lib<name>.a to let people know that these are not
14505 # typical AIX shared libraries.
14506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14507 else
14508 # We preserve .a as extension for shared libraries through AIX4.2
14509 # and later when we are not doing run time linking.
14510 library_names_spec='${libname}${release}.a $libname.a'
14511 soname_spec='${libname}${release}${shared_ext}$major'
14512 fi
14513 shlibpath_var=LIBPATH
14514 fi
14515 ;;
14516
14517amigaos*)
14518 case $host_cpu in
14519 powerpc)
14520 # Since July 2007 AmigaOS4 officially supports .so libraries.
14521 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14523 ;;
14524 m68k)
14525 library_names_spec='$libname.ixlibrary $libname.a'
14526 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14527 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'
14528 ;;
14529 esac
14530 ;;
14531
14532beos*)
14533 library_names_spec='${libname}${shared_ext}'
14534 dynamic_linker="$host_os ld.so"
14535 shlibpath_var=LIBRARY_PATH
14536 ;;
14537
14538bsdi[45]*)
14539 version_type=linux
14540 need_version=no
14541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14542 soname_spec='${libname}${release}${shared_ext}$major'
14543 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14544 shlibpath_var=LD_LIBRARY_PATH
14545 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14546 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14547 # the default ld.so.conf also contains /usr/contrib/lib and
14548 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14549 # libtool to hard-code these into programs
14550 ;;
14551
14552cygwin* | mingw* | pw32* | cegcc*)
14553 version_type=windows
14554 shrext_cmds=".dll"
14555 need_version=no
14556 need_lib_prefix=no
14557
14558 case $GCC,$host_os in
14559 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14560 library_names_spec='$libname.dll.a'
14561 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14562 postinstall_cmds='base_file=`basename \${file}`~
14563 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14564 dldir=$destdir/`dirname \$dlpath`~
14565 test -d \$dldir || mkdir -p \$dldir~
14566 $install_prog $dir/$dlname \$dldir/$dlname~
14567 chmod a+x \$dldir/$dlname~
14568 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14569 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14570 fi'
14571 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14572 dlpath=$dir/\$dldll~
14573 $RM \$dlpath'
14574 shlibpath_overrides_runpath=yes
14575
14576 case $host_os in
14577 cygwin*)
14578 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14579 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14580 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14581 ;;
14582 mingw* | cegcc*)
14583 # MinGW DLLs use traditional 'lib' prefix
14584 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14585 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14586 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14587 # It is most probably a Windows format PATH printed by
14588 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14589 # path with ; separators, and with drive letters. We can handle the
14590 # drive letters (cygwin fileutils understands them), so leave them,
14591 # especially as we might pass files found there to a mingw objdump,
14592 # which wouldn't understand a cygwinified path. Ahh.
14593 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14594 else
14595 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14596 fi
14597 ;;
14598 pw32*)
14599 # pw32 DLLs use 'pw' prefix rather than 'lib'
14600 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14601 ;;
14602 esac
14603 ;;
14604
14605 *)
14606 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14607 ;;
14608 esac
14609 dynamic_linker='Win32 ld.exe'
14610 # FIXME: first we should search . and the directory the executable is in
14611 shlibpath_var=PATH
14612 ;;
14613
14614darwin* | rhapsody*)
14615 dynamic_linker="$host_os dyld"
14616 version_type=darwin
14617 need_lib_prefix=no
14618 need_version=no
14619 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14620 soname_spec='${libname}${release}${major}$shared_ext'
14621 shlibpath_overrides_runpath=yes
14622 shlibpath_var=DYLD_LIBRARY_PATH
14623 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14624
14625 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14626 ;;
14627
14628dgux*)
14629 version_type=linux
14630 need_lib_prefix=no
14631 need_version=no
14632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14633 soname_spec='${libname}${release}${shared_ext}$major'
14634 shlibpath_var=LD_LIBRARY_PATH
14635 ;;
14636
14637freebsd1*)
14638 dynamic_linker=no
14639 ;;
14640
14641freebsd* | dragonfly*)
14642 # DragonFly does not have aout. When/if they implement a new
14643 # versioning mechanism, adjust this.
14644 if test -x /usr/bin/objformat; then
14645 objformat=`/usr/bin/objformat`
14646 else
14647 case $host_os in
14648 freebsd[123]*) objformat=aout ;;
14649 *) objformat=elf ;;
14650 esac
14651 fi
14652 version_type=freebsd-$objformat
14653 case $version_type in
14654 freebsd-elf*)
14655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14656 need_version=no
14657 need_lib_prefix=no
14658 ;;
14659 freebsd-*)
14660 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14661 need_version=yes
14662 ;;
14663 esac
14664 shlibpath_var=LD_LIBRARY_PATH
14665 case $host_os in
14666 freebsd2*)
14667 shlibpath_overrides_runpath=yes
14668 ;;
14669 freebsd3.[01]* | freebsdelf3.[01]*)
14670 shlibpath_overrides_runpath=yes
14671 hardcode_into_libs=yes
14672 ;;
14673 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14674 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14675 shlibpath_overrides_runpath=no
14676 hardcode_into_libs=yes
14677 ;;
14678 *) # from 4.6 on, and DragonFly
14679 shlibpath_overrides_runpath=yes
14680 hardcode_into_libs=yes
14681 ;;
14682 esac
14683 ;;
14684
14685gnu*)
14686 version_type=linux
14687 need_lib_prefix=no
14688 need_version=no
14689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14690 soname_spec='${libname}${release}${shared_ext}$major'
14691 shlibpath_var=LD_LIBRARY_PATH
14692 hardcode_into_libs=yes
14693 ;;
14694
14695hpux9* | hpux10* | hpux11*)
14696 # Give a soname corresponding to the major version so that dld.sl refuses to
14697 # link against other versions.
14698 version_type=sunos
14699 need_lib_prefix=no
14700 need_version=no
14701 case $host_cpu in
14702 ia64*)
14703 shrext_cmds='.so'
14704 hardcode_into_libs=yes
14705 dynamic_linker="$host_os dld.so"
14706 shlibpath_var=LD_LIBRARY_PATH
14707 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14709 soname_spec='${libname}${release}${shared_ext}$major'
14710 if test "X$HPUX_IA64_MODE" = X32; then
14711 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14712 else
14713 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14714 fi
14715 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14716 ;;
14717 hppa*64*)
14718 shrext_cmds='.sl'
14719 hardcode_into_libs=yes
14720 dynamic_linker="$host_os dld.sl"
14721 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14722 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14724 soname_spec='${libname}${release}${shared_ext}$major'
14725 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14726 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14727 ;;
14728 *)
14729 shrext_cmds='.sl'
14730 dynamic_linker="$host_os dld.sl"
14731 shlibpath_var=SHLIB_PATH
14732 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14734 soname_spec='${libname}${release}${shared_ext}$major'
14735 ;;
14736 esac
14737 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14738 postinstall_cmds='chmod 555 $lib'
14739 ;;
14740
14741interix[3-9]*)
14742 version_type=linux
14743 need_lib_prefix=no
14744 need_version=no
14745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14746 soname_spec='${libname}${release}${shared_ext}$major'
14747 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14748 shlibpath_var=LD_LIBRARY_PATH
14749 shlibpath_overrides_runpath=no
14750 hardcode_into_libs=yes
14751 ;;
14752
14753irix5* | irix6* | nonstopux*)
14754 case $host_os in
14755 nonstopux*) version_type=nonstopux ;;
14756 *)
14757 if test "$lt_cv_prog_gnu_ld" = yes; then
14758 version_type=linux
14759 else
14760 version_type=irix
14761 fi ;;
14762 esac
14763 need_lib_prefix=no
14764 need_version=no
14765 soname_spec='${libname}${release}${shared_ext}$major'
14766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14767 case $host_os in
14768 irix5* | nonstopux*)
14769 libsuff= shlibsuff=
14770 ;;
14771 *)
14772 case $LD in # libtool.m4 will add one of these switches to LD
14773 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14774 libsuff= shlibsuff= libmagic=32-bit;;
14775 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14776 libsuff=32 shlibsuff=N32 libmagic=N32;;
14777 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14778 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14779 *) libsuff= shlibsuff= libmagic=never-match;;
14780 esac
14781 ;;
14782 esac
14783 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14784 shlibpath_overrides_runpath=no
14785 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14786 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14787 hardcode_into_libs=yes
14788 ;;
14789
14790# No shared lib support for Linux oldld, aout, or coff.
14791linux*oldld* | linux*aout* | linux*coff*)
14792 dynamic_linker=no
14793 ;;
14794
14795# This must be Linux ELF.
14796linux* | k*bsd*-gnu)
14797 version_type=linux
14798 need_lib_prefix=no
14799 need_version=no
14800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14801 soname_spec='${libname}${release}${shared_ext}$major'
14802 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14803 shlibpath_var=LD_LIBRARY_PATH
14804 shlibpath_overrides_runpath=no
14805 # Some binutils ld are patched to set DT_RUNPATH
14806 save_LDFLAGS=$LDFLAGS
14807 save_libdir=$libdir
14808 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14809 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14810 cat >conftest.$ac_ext <<_ACEOF
14811/* confdefs.h. */
14812_ACEOF
14813cat confdefs.h >>conftest.$ac_ext
14814cat >>conftest.$ac_ext <<_ACEOF
14815/* end confdefs.h. */
14816
14817int
14818main ()
14819{
14820
14821 ;
14822 return 0;
14823}
14824_ACEOF
14825rm -f conftest.$ac_objext conftest$ac_exeext
14826if { (ac_try="$ac_link"
14827case "(($ac_try" in
14828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14829 *) ac_try_echo=$ac_try;;
14830esac
14831eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14832$as_echo "$ac_try_echo") >&5
14833 (eval "$ac_link") 2>conftest.er1
14834 ac_status=$?
14835 grep -v '^ *+' conftest.er1 >conftest.err
14836 rm -f conftest.er1
14837 cat conftest.err >&5
14838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839 (exit $ac_status); } && {
14840 test -z "$ac_cxx_werror_flag" ||
14841 test ! -s conftest.err
14842 } && test -s conftest$ac_exeext && {
14843 test "$cross_compiling" = yes ||
14844 $as_test_x conftest$ac_exeext
14845 }; then
14846 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
14847 shlibpath_overrides_runpath=yes
14848fi
14849
14850else
14851 $as_echo "$as_me: failed program was:" >&5
14852sed 's/^/| /' conftest.$ac_ext >&5
14853
14854
14855fi
14856
14857rm -rf conftest.dSYM
14858rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14859 conftest$ac_exeext conftest.$ac_ext
14860 LDFLAGS=$save_LDFLAGS
14861 libdir=$save_libdir
14862
14863 # This implies no fast_install, which is unacceptable.
14864 # Some rework will be needed to allow for fast_install
14865 # before this can be enabled.
14866 hardcode_into_libs=yes
14867
14868 # Add ABI-specific directories to the system library path.
14869 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
14870
14871 # Append ld.so.conf contents to the search path
14872 if test -f /etc/ld.so.conf; then
14873 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' ' '`
14874 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
14875 fi
14876
14877 # We used to test for /lib/ld.so.1 and disable shared libraries on
14878 # powerpc, because MkLinux only supported shared libraries with the
14879 # GNU dynamic linker. Since this was broken with cross compilers,
14880 # most powerpc-linux boxes support dynamic linking these days and
14881 # people can always --disable-shared, the test was removed, and we
14882 # assume the GNU/Linux dynamic linker is in use.
14883 dynamic_linker='GNU/Linux ld.so'
14884 ;;
14885
14886netbsd*)
14887 version_type=sunos
14888 need_lib_prefix=no
14889 need_version=no
14890 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14892 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14893 dynamic_linker='NetBSD (a.out) ld.so'
14894 else
14895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14896 soname_spec='${libname}${release}${shared_ext}$major'
14897 dynamic_linker='NetBSD ld.elf_so'
14898 fi
14899 shlibpath_var=LD_LIBRARY_PATH
14900 shlibpath_overrides_runpath=yes
14901 hardcode_into_libs=yes
14902 ;;
14903
14904newsos6)
14905 version_type=linux
14906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14907 shlibpath_var=LD_LIBRARY_PATH
14908 shlibpath_overrides_runpath=yes
14909 ;;
14910
14911*nto* | *qnx*)
14912 version_type=qnx
14913 need_lib_prefix=no
14914 need_version=no
14915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14916 soname_spec='${libname}${release}${shared_ext}$major'
14917 shlibpath_var=LD_LIBRARY_PATH
14918 shlibpath_overrides_runpath=no
14919 hardcode_into_libs=yes
14920 dynamic_linker='ldqnx.so'
14921 ;;
14922
14923openbsd*)
14924 version_type=sunos
14925 sys_lib_dlsearch_path_spec="/usr/lib"
14926 need_lib_prefix=no
14927 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14928 case $host_os in
14929 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14930 *) need_version=no ;;
14931 esac
14932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14933 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14934 shlibpath_var=LD_LIBRARY_PATH
14935 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14936 case $host_os in
14937 openbsd2.[89] | openbsd2.[89].*)
14938 shlibpath_overrides_runpath=no
14939 ;;
14940 *)
14941 shlibpath_overrides_runpath=yes
14942 ;;
14943 esac
14944 else
14945 shlibpath_overrides_runpath=yes
14946 fi
14947 ;;
14948
14949os2*)
14950 libname_spec='$name'
14951 shrext_cmds=".dll"
14952 need_lib_prefix=no
14953 library_names_spec='$libname${shared_ext} $libname.a'
14954 dynamic_linker='OS/2 ld.exe'
14955 shlibpath_var=LIBPATH
14956 ;;
14957
14958osf3* | osf4* | osf5*)
14959 version_type=osf
14960 need_lib_prefix=no
14961 need_version=no
14962 soname_spec='${libname}${release}${shared_ext}$major'
14963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14964 shlibpath_var=LD_LIBRARY_PATH
14965 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14966 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14967 ;;
14968
14969rdos*)
14970 dynamic_linker=no
14971 ;;
14972
14973solaris*)
14974 version_type=linux
14975 need_lib_prefix=no
14976 need_version=no
14977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14978 soname_spec='${libname}${release}${shared_ext}$major'
14979 shlibpath_var=LD_LIBRARY_PATH
14980 shlibpath_overrides_runpath=yes
14981 hardcode_into_libs=yes
14982 # ldd complains unless libraries are executable
14983 postinstall_cmds='chmod +x $lib'
14984 ;;
14985
14986sunos4*)
14987 version_type=sunos
14988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14989 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14990 shlibpath_var=LD_LIBRARY_PATH
14991 shlibpath_overrides_runpath=yes
14992 if test "$with_gnu_ld" = yes; then
14993 need_lib_prefix=no
14994 fi
14995 need_version=yes
14996 ;;
14997
14998sysv4 | sysv4.3*)
14999 version_type=linux
15000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15001 soname_spec='${libname}${release}${shared_ext}$major'
15002 shlibpath_var=LD_LIBRARY_PATH
15003 case $host_vendor in
15004 sni)
15005 shlibpath_overrides_runpath=no
15006 need_lib_prefix=no
15007 runpath_var=LD_RUN_PATH
15008 ;;
15009 siemens)
15010 need_lib_prefix=no
15011 ;;
15012 motorola)
15013 need_lib_prefix=no
15014 need_version=no
15015 shlibpath_overrides_runpath=no
15016 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15017 ;;
15018 esac
15019 ;;
15020
15021sysv4*MP*)
15022 if test -d /usr/nec ;then
15023 version_type=linux
15024 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15025 soname_spec='$libname${shared_ext}.$major'
15026 shlibpath_var=LD_LIBRARY_PATH
15027 fi
15028 ;;
15029
15030sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15031 version_type=freebsd-elf
15032 need_lib_prefix=no
15033 need_version=no
15034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15035 soname_spec='${libname}${release}${shared_ext}$major'
15036 shlibpath_var=LD_LIBRARY_PATH
15037 shlibpath_overrides_runpath=yes
15038 hardcode_into_libs=yes
15039 if test "$with_gnu_ld" = yes; then
15040 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15041 else
15042 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15043 case $host_os in
15044 sco3.2v5*)
15045 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15046 ;;
15047 esac
15048 fi
15049 sys_lib_dlsearch_path_spec='/usr/lib'
15050 ;;
15051
15052tpf*)
15053 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15054 version_type=linux
15055 need_lib_prefix=no
15056 need_version=no
15057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15058 shlibpath_var=LD_LIBRARY_PATH
15059 shlibpath_overrides_runpath=no
15060 hardcode_into_libs=yes
15061 ;;
15062
15063uts4*)
15064 version_type=linux
15065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15066 soname_spec='${libname}${release}${shared_ext}$major'
15067 shlibpath_var=LD_LIBRARY_PATH
15068 ;;
15069
15070*)
15071 dynamic_linker=no
15072 ;;
15073esac
15074{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15075$as_echo "$dynamic_linker" >&6; }
15076test "$dynamic_linker" = no && can_build_shared=no
15077
15078variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15079if test "$GCC" = yes; then
15080 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15081fi
15082
15083if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15084 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15085fi
15086if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15087 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15088fi
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15126$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15127hardcode_action_CXX=
15128if test -n "$hardcode_libdir_flag_spec_CXX" ||
15129 test -n "$runpath_var_CXX" ||
15130 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15131
15132 # We can hardcode non-existent directories.
15133 if test "$hardcode_direct_CXX" != no &&
15134 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15135 # have to relink, otherwise we might link with an installed library
15136 # when we should be linking with a yet-to-be-installed one
15137 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15138 test "$hardcode_minus_L_CXX" != no; then
15139 # Linking always hardcodes the temporary library directory.
15140 hardcode_action_CXX=relink
15141 else
15142 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15143 hardcode_action_CXX=immediate
15144 fi
15145else
15146 # We cannot hardcode anything, or else we can only hardcode existing
15147 # directories.
15148 hardcode_action_CXX=unsupported
15149fi
15150{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15151$as_echo "$hardcode_action_CXX" >&6; }
15152
15153if test "$hardcode_action_CXX" = relink ||
15154 test "$inherit_rpath_CXX" = yes; then
15155 # Fast installation is not supported
15156 enable_fast_install=no
15157elif test "$shlibpath_overrides_runpath" = yes ||
15158 test "$enable_shared" = no; then
15159 # Fast installation is not necessary
15160 enable_fast_install=needless
15161fi
15162
15163
15164
15165
15166
15167
15168
15169 fi # test -n "$compiler"
15170
15171 CC=$lt_save_CC
15172 LDCXX=$LD
15173 LD=$lt_save_LD
15174 GCC=$lt_save_GCC
15175 with_gnu_ld=$lt_save_with_gnu_ld
15176 lt_cv_path_LDCXX=$lt_cv_path_LD
15177 lt_cv_path_LD=$lt_save_path_LD
15178 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15179 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15180fi # test "$_lt_caught_CXX_error" != yes
15181
15182ac_ext=c
15183ac_cpp='$CPP $CPPFLAGS'
15184ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15185ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15186ac_compiler_gnu=$ac_cv_c_compiler_gnu
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200 ac_config_commands="$ac_config_commands libtool"
15201
15202
15203
15204
15205# Only expand once:
15206
15207
15208ac_ext=cpp
15209ac_cpp='$CXXCPP $CPPFLAGS'
15210ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15211ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15212ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15213
15214
15215
15216 MKINSTALLDIRS=
15217 if test -n "$ac_aux_dir"; then
15218 case "$ac_aux_dir" in
15219 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
15220 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
15221 esac
15222 fi
15223 if test -z "$MKINSTALLDIRS"; then
15224 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
15225 fi
15226
15227
15228
15229 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
15230$as_echo_n "checking whether NLS is requested... " >&6; }
15231 # Check whether --enable-nls was given.
15232if test "${enable_nls+set}" = set; then
15233 enableval=$enable_nls; USE_NLS=$enableval
15234else
15235 USE_NLS=yes
15236fi
15237
15238 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
15239$as_echo "$USE_NLS" >&6; }
15240
15241
15242
15243
15244
15245
15246# Prepare PATH_SEPARATOR.
15247# The user is always right.
15248if test "${PATH_SEPARATOR+set}" != set; then
15249 echo "#! /bin/sh" >conf$$.sh
15250 echo "exit 0" >>conf$$.sh
15251 chmod +x conf$$.sh
15252 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15253 PATH_SEPARATOR=';'
15254 else
15255 PATH_SEPARATOR=:
15256 fi
15257 rm -f conf$$.sh
15258fi
15259
15260# Find out how to test for executable files. Don't use a zero-byte file,
15261# as systems may use methods other than mode bits to determine executability.
15262cat >conf$$.file <<_ASEOF
15263#! /bin/sh
15264exit 0
15265_ASEOF
15266chmod +x conf$$.file
15267if test -x conf$$.file >/dev/null 2>&1; then
15268 ac_executable_p="test -x"
15269else
15270 ac_executable_p="test -f"
15271fi
15272rm -f conf$$.file
15273
15274# Extract the first word of "msgfmt", so it can be a program name with args.
15275set dummy msgfmt; ac_word=$2
15276{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15277$as_echo_n "checking for $ac_word... " >&6; }
15278if test "${ac_cv_path_MSGFMT+set}" = set; then
15279 $as_echo_n "(cached) " >&6
15280else
15281 case "$MSGFMT" in
15282 [\\/]* | ?:[\\/]*)
15283 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15284 ;;
15285 *)
15286 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15287 for ac_dir in $PATH; do
15288 IFS="$ac_save_IFS"
15289 test -z "$ac_dir" && ac_dir=.
15290 for ac_exec_ext in '' $ac_executable_extensions; do
15291 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15292 echo "$as_me: trying $ac_dir/$ac_word..." >&5
15293 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
15294 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15295 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
15296 break 2
15297 fi
15298 fi
15299 done
15300 done
15301 IFS="$ac_save_IFS"
15302 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
15303 ;;
15304esac
15305fi
15306MSGFMT="$ac_cv_path_MSGFMT"
15307if test "$MSGFMT" != ":"; then
15308 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
15309$as_echo "$MSGFMT" >&6; }
15310else
15311 { $as_echo "$as_me:$LINENO: result: no" >&5
15312$as_echo "no" >&6; }
15313fi
15314
15315 # Extract the first word of "gmsgfmt", so it can be a program name with args.
15316set dummy gmsgfmt; ac_word=$2
15317{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15318$as_echo_n "checking for $ac_word... " >&6; }
15319if test "${ac_cv_path_GMSGFMT+set}" = set; then
15320 $as_echo_n "(cached) " >&6
15321else
15322 case $GMSGFMT in
15323 [\\/]* | ?:[\\/]*)
15324 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15325 ;;
15326 *)
15327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15328for as_dir in $PATH
15329do
15330 IFS=$as_save_IFS
15331 test -z "$as_dir" && as_dir=.
15332 for ac_exec_ext in '' $ac_executable_extensions; do
15333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15334 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
15335 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15336 break 2
15337 fi
15338done
15339done
15340IFS=$as_save_IFS
15341
15342 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15343 ;;
15344esac
15345fi
15346GMSGFMT=$ac_cv_path_GMSGFMT
15347if test -n "$GMSGFMT"; then
15348 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
15349$as_echo "$GMSGFMT" >&6; }
15350else
15351 { $as_echo "$as_me:$LINENO: result: no" >&5
15352$as_echo "no" >&6; }
15353fi
15354
15355
15356
15357
15358# Prepare PATH_SEPARATOR.
15359# The user is always right.
15360if test "${PATH_SEPARATOR+set}" != set; then
15361 echo "#! /bin/sh" >conf$$.sh
15362 echo "exit 0" >>conf$$.sh
15363 chmod +x conf$$.sh
15364 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15365 PATH_SEPARATOR=';'
15366 else
15367 PATH_SEPARATOR=:
15368 fi
15369 rm -f conf$$.sh
15370fi
15371
15372# Find out how to test for executable files. Don't use a zero-byte file,
15373# as systems may use methods other than mode bits to determine executability.
15374cat >conf$$.file <<_ASEOF
15375#! /bin/sh
15376exit 0
15377_ASEOF
15378chmod +x conf$$.file
15379if test -x conf$$.file >/dev/null 2>&1; then
15380 ac_executable_p="test -x"
15381else
15382 ac_executable_p="test -f"
15383fi
15384rm -f conf$$.file
15385
15386# Extract the first word of "xgettext", so it can be a program name with args.
15387set dummy xgettext; ac_word=$2
15388{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15389$as_echo_n "checking for $ac_word... " >&6; }
15390if test "${ac_cv_path_XGETTEXT+set}" = set; then
15391 $as_echo_n "(cached) " >&6
15392else
15393 case "$XGETTEXT" in
15394 [\\/]* | ?:[\\/]*)
15395 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15396 ;;
15397 *)
15398 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15399 for ac_dir in $PATH; do
15400 IFS="$ac_save_IFS"
15401 test -z "$ac_dir" && ac_dir=.
15402 for ac_exec_ext in '' $ac_executable_extensions; do
15403 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15404 echo "$as_me: trying $ac_dir/$ac_word..." >&5
15405 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
15406 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15407 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
15408 break 2
15409 fi
15410 fi
15411 done
15412 done
15413 IFS="$ac_save_IFS"
15414 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15415 ;;
15416esac
15417fi
15418XGETTEXT="$ac_cv_path_XGETTEXT"
15419if test "$XGETTEXT" != ":"; then
15420 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15421$as_echo "$XGETTEXT" >&6; }
15422else
15423 { $as_echo "$as_me:$LINENO: result: no" >&5
15424$as_echo "no" >&6; }
15425fi
15426
15427 rm -f messages.po
15428
15429
15430# Prepare PATH_SEPARATOR.
15431# The user is always right.
15432if test "${PATH_SEPARATOR+set}" != set; then
15433 echo "#! /bin/sh" >conf$$.sh
15434 echo "exit 0" >>conf$$.sh
15435 chmod +x conf$$.sh
15436 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15437 PATH_SEPARATOR=';'
15438 else
15439 PATH_SEPARATOR=:
15440 fi
15441 rm -f conf$$.sh
15442fi
15443
15444# Find out how to test for executable files. Don't use a zero-byte file,
15445# as systems may use methods other than mode bits to determine executability.
15446cat >conf$$.file <<_ASEOF
15447#! /bin/sh
15448exit 0
15449_ASEOF
15450chmod +x conf$$.file
15451if test -x conf$$.file >/dev/null 2>&1; then
15452 ac_executable_p="test -x"
15453else
15454 ac_executable_p="test -f"
15455fi
15456rm -f conf$$.file
15457
15458# Extract the first word of "msgmerge", so it can be a program name with args.
15459set dummy msgmerge; ac_word=$2
15460{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15461$as_echo_n "checking for $ac_word... " >&6; }
15462if test "${ac_cv_path_MSGMERGE+set}" = set; then
15463 $as_echo_n "(cached) " >&6
15464else
15465 case "$MSGMERGE" in
15466 [\\/]* | ?:[\\/]*)
15467 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
15468 ;;
15469 *)
15470 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15471 for ac_dir in $PATH; do
15472 IFS="$ac_save_IFS"
15473 test -z "$ac_dir" && ac_dir=.
15474 for ac_exec_ext in '' $ac_executable_extensions; do
15475 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15476 echo "$as_me: trying $ac_dir/$ac_word..." >&5
15477 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
15478 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
15479 break 2
15480 fi
15481 fi
15482 done
15483 done
15484 IFS="$ac_save_IFS"
15485 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
15486 ;;
15487esac
15488fi
15489MSGMERGE="$ac_cv_path_MSGMERGE"
15490if test "$MSGMERGE" != ":"; then
15491 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
15492$as_echo "$MSGMERGE" >&6; }
15493else
15494 { $as_echo "$as_me:$LINENO: result: no" >&5
15495$as_echo "no" >&6; }
15496fi
15497
15498
15499 if test "$GMSGFMT" != ":"; then
15500 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
15501 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15502 : ;
15503 else
15504 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
15505 { $as_echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
15506$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
15507 GMSGFMT=":"
15508 fi
15509 fi
15510
15511 if test "$XGETTEXT" != ":"; then
15512 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
15513 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15514 : ;
15515 else
15516 { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
15517$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
15518 XGETTEXT=":"
15519 fi
15520 rm -f messages.po
15521 fi
15522
15523 ac_config_commands="$ac_config_commands default-1"
15524
15525
15526
15527 if test "X$prefix" = "XNONE"; then
15528 acl_final_prefix="$ac_default_prefix"
15529 else
15530 acl_final_prefix="$prefix"
15531 fi
15532 if test "X$exec_prefix" = "XNONE"; then
15533 acl_final_exec_prefix='${prefix}'
15534 else
15535 acl_final_exec_prefix="$exec_prefix"
15536 fi
15537 acl_save_prefix="$prefix"
15538 prefix="$acl_final_prefix"
15539 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
15540 prefix="$acl_save_prefix"
15541
15542
15543# Check whether --with-gnu-ld was given.
15544if test "${with_gnu_ld+set}" = set; then
15545 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15546else
15547 with_gnu_ld=no
15548fi
15549
15550# Prepare PATH_SEPARATOR.
15551# The user is always right.
15552if test "${PATH_SEPARATOR+set}" != set; then
15553 echo "#! /bin/sh" >conf$$.sh
15554 echo "exit 0" >>conf$$.sh
15555 chmod +x conf$$.sh
15556 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15557 PATH_SEPARATOR=';'
15558 else
15559 PATH_SEPARATOR=:
15560 fi
15561 rm -f conf$$.sh
15562fi
15563ac_prog=ld
15564if test "$GCC" = yes; then
15565 # Check if gcc -print-prog-name=ld gives a path.
15566 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
15567$as_echo_n "checking for ld used by GCC... " >&6; }
15568 case $host in
15569 *-*-mingw*)
15570 # gcc leaves a trailing carriage return which upsets mingw
15571 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15572 *)
15573 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15574 esac
15575 case $ac_prog in
15576 # Accept absolute paths.
15577 [\\/]* | [A-Za-z]:[\\/]*)
15578 re_direlt='/[^/][^/]*/\.\./'
15579 # Canonicalize the path of ld
15580 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
15581 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15582 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
15583 done
15584 test -z "$LD" && LD="$ac_prog"
15585 ;;
15586 "")
15587 # If it fails, then pretend we aren't using GCC.
15588 ac_prog=ld
15589 ;;
15590 *)
15591 # If it is relative, then search for the first ld in PATH.
15592 with_gnu_ld=unknown
15593 ;;
15594 esac
15595elif test "$with_gnu_ld" = yes; then
15596 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
15597$as_echo_n "checking for GNU ld... " >&6; }
15598else
15599 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15600$as_echo_n "checking for non-GNU ld... " >&6; }
15601fi
15602if test "${acl_cv_path_LD+set}" = set; then
15603 $as_echo_n "(cached) " >&6
15604else
15605 if test -z "$LD"; then
15606 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
15607 for ac_dir in $PATH; do
15608 test -z "$ac_dir" && ac_dir=.
15609 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15610 acl_cv_path_LD="$ac_dir/$ac_prog"
15611 # Check to see if the program is GNU ld. I'd rather use --version,
15612 # but apparently some GNU ld's only accept -v.
15613 # Break only if it was the GNU/non-GNU ld that we prefer.
15614 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
15615 *GNU* | *'with BFD'*)
15616 test "$with_gnu_ld" != no && break ;;
15617 *)
15618 test "$with_gnu_ld" != yes && break ;;
15619 esac
15620 fi
15621 done
15622 IFS="$ac_save_ifs"
15623else
15624 acl_cv_path_LD="$LD" # Let the user override the test with a path.
15625fi
15626fi
15627
15628LD="$acl_cv_path_LD"
15629if test -n "$LD"; then
15630 { $as_echo "$as_me:$LINENO: result: $LD" >&5
15631$as_echo "$LD" >&6; }
15632else
15633 { $as_echo "$as_me:$LINENO: result: no" >&5
15634$as_echo "no" >&6; }
15635fi
15636test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15637$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15638 { (exit 1); exit 1; }; }
15639{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15640$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15641if test "${acl_cv_prog_gnu_ld+set}" = set; then
15642 $as_echo_n "(cached) " >&6
15643else
15644 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15645case `$LD -v 2>&1 </dev/null` in
15646*GNU* | *'with BFD'*)
15647 acl_cv_prog_gnu_ld=yes ;;
15648*)
15649 acl_cv_prog_gnu_ld=no ;;
15650esac
15651fi
15652{ $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
15653$as_echo "$acl_cv_prog_gnu_ld" >&6; }
15654with_gnu_ld=$acl_cv_prog_gnu_ld
15655
15656
15657
15658
15659 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
15660$as_echo_n "checking for shared library run path origin... " >&6; }
15661if test "${acl_cv_rpath+set}" = set; then
15662 $as_echo_n "(cached) " >&6
15663else
15664
15665 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
15666 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
15667 . ./conftest.sh
15668 rm -f ./conftest.sh
15669 acl_cv_rpath=done
15670
15671fi
15672{ $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
15673$as_echo "$acl_cv_rpath" >&6; }
15674 wl="$acl_cv_wl"
15675 libext="$acl_cv_libext"
15676 shlibext="$acl_cv_shlibext"
15677 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
15678 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
15679 hardcode_direct="$acl_cv_hardcode_direct"
15680 hardcode_minus_L="$acl_cv_hardcode_minus_L"
15681 # Check whether --enable-rpath was given.
15682if test "${enable_rpath+set}" = set; then
15683 enableval=$enable_rpath; :
15684else
15685 enable_rpath=yes
15686fi
15687
15688
15689
15690
15691
15692
15693
15694
15695 use_additional=yes
15696
15697 acl_save_prefix="$prefix"
15698 prefix="$acl_final_prefix"
15699 acl_save_exec_prefix="$exec_prefix"
15700 exec_prefix="$acl_final_exec_prefix"
15701
15702 eval additional_includedir=\"$includedir\"
15703 eval additional_libdir=\"$libdir\"
15704
15705 exec_prefix="$acl_save_exec_prefix"
15706 prefix="$acl_save_prefix"
15707
15708
15709# Check whether --with-libiconv-prefix was given.
15710if test "${with_libiconv_prefix+set}" = set; then
15711 withval=$with_libiconv_prefix;
15712 if test "X$withval" = "Xno"; then
15713 use_additional=no
15714 else
15715 if test "X$withval" = "X"; then
15716
15717 acl_save_prefix="$prefix"
15718 prefix="$acl_final_prefix"
15719 acl_save_exec_prefix="$exec_prefix"
15720 exec_prefix="$acl_final_exec_prefix"
15721
15722 eval additional_includedir=\"$includedir\"
15723 eval additional_libdir=\"$libdir\"
15724
15725 exec_prefix="$acl_save_exec_prefix"
15726 prefix="$acl_save_prefix"
15727
15728 else
15729 additional_includedir="$withval/include"
15730 additional_libdir="$withval/lib"
15731 fi
15732 fi
15733
15734fi
15735
15736 LIBICONV=
15737 LTLIBICONV=
15738 INCICONV=
15739 rpathdirs=
15740 ltrpathdirs=
15741 names_already_handled=
15742 names_next_round='iconv '
15743 while test -n "$names_next_round"; do
15744 names_this_round="$names_next_round"
15745 names_next_round=
15746 for name in $names_this_round; do
15747 already_handled=
15748 for n in $names_already_handled; do
15749 if test "$n" = "$name"; then
15750 already_handled=yes
15751 break
15752 fi
15753 done
15754 if test -z "$already_handled"; then
15755 names_already_handled="$names_already_handled $name"
15756 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15757 eval value=\"\$HAVE_LIB$uppername\"
15758 if test -n "$value"; then
15759 if test "$value" = yes; then
15760 eval value=\"\$LIB$uppername\"
15761 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
15762 eval value=\"\$LTLIB$uppername\"
15763 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
15764 else
15765 :
15766 fi
15767 else
15768 found_dir=
15769 found_la=
15770 found_so=
15771 found_a=
15772 if test $use_additional = yes; then
15773 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
15774 found_dir="$additional_libdir"
15775 found_so="$additional_libdir/lib$name.$shlibext"
15776 if test -f "$additional_libdir/lib$name.la"; then
15777 found_la="$additional_libdir/lib$name.la"
15778 fi
15779 else
15780 if test -f "$additional_libdir/lib$name.$libext"; then
15781 found_dir="$additional_libdir"
15782 found_a="$additional_libdir/lib$name.$libext"
15783 if test -f "$additional_libdir/lib$name.la"; then
15784 found_la="$additional_libdir/lib$name.la"
15785 fi
15786 fi
15787 fi
15788 fi
15789 if test "X$found_dir" = "X"; then
15790 for x in $LDFLAGS $LTLIBICONV; do
15791
15792 acl_save_prefix="$prefix"
15793 prefix="$acl_final_prefix"
15794 acl_save_exec_prefix="$exec_prefix"
15795 exec_prefix="$acl_final_exec_prefix"
15796 eval x=\"$x\"
15797 exec_prefix="$acl_save_exec_prefix"
15798 prefix="$acl_save_prefix"
15799
15800 case "$x" in
15801 -L*)
15802 dir=`echo "X$x" | sed -e 's/^X-L//'`
15803 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
15804 found_dir="$dir"
15805 found_so="$dir/lib$name.$shlibext"
15806 if test -f "$dir/lib$name.la"; then
15807 found_la="$dir/lib$name.la"
15808 fi
15809 else
15810 if test -f "$dir/lib$name.$libext"; then
15811 found_dir="$dir"
15812 found_a="$dir/lib$name.$libext"
15813 if test -f "$dir/lib$name.la"; then
15814 found_la="$dir/lib$name.la"
15815 fi
15816 fi
15817 fi
15818 ;;
15819 esac
15820 if test "X$found_dir" != "X"; then
15821 break
15822 fi
15823 done
15824 fi
15825 if test "X$found_dir" != "X"; then
15826 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
15827 if test "X$found_so" != "X"; then
15828 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
15829 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15830 else
15831 haveit=
15832 for x in $ltrpathdirs; do
15833 if test "X$x" = "X$found_dir"; then
15834 haveit=yes
15835 break
15836 fi
15837 done
15838 if test -z "$haveit"; then
15839 ltrpathdirs="$ltrpathdirs $found_dir"
15840 fi
15841 if test "$hardcode_direct" = yes; then
15842 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15843 else
15844 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
15845 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15846 haveit=
15847 for x in $rpathdirs; do
15848 if test "X$x" = "X$found_dir"; then
15849 haveit=yes
15850 break
15851 fi
15852 done
15853 if test -z "$haveit"; then
15854 rpathdirs="$rpathdirs $found_dir"
15855 fi
15856 else
15857 haveit=
15858 for x in $LDFLAGS $LIBICONV; do
15859
15860 acl_save_prefix="$prefix"
15861 prefix="$acl_final_prefix"
15862 acl_save_exec_prefix="$exec_prefix"
15863 exec_prefix="$acl_final_exec_prefix"
15864 eval x=\"$x\"
15865 exec_prefix="$acl_save_exec_prefix"
15866 prefix="$acl_save_prefix"
15867
15868 if test "X$x" = "X-L$found_dir"; then
15869 haveit=yes
15870 break
15871 fi
15872 done
15873 if test -z "$haveit"; then
15874 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
15875 fi
15876 if test "$hardcode_minus_L" != no; then
15877 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15878 else
15879 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15880 fi
15881 fi
15882 fi
15883 fi
15884 else
15885 if test "X$found_a" != "X"; then
15886 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
15887 else
15888 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
15889 fi
15890 fi
15891 additional_includedir=
15892 case "$found_dir" in
15893 */lib | */lib/)
15894 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
15895 additional_includedir="$basedir/include"
15896 ;;
15897 esac
15898 if test "X$additional_includedir" != "X"; then
15899 if test "X$additional_includedir" != "X/usr/include"; then
15900 haveit=
15901 if test "X$additional_includedir" = "X/usr/local/include"; then
15902 if test -n "$GCC"; then
15903 case $host_os in
15904 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15905 esac
15906 fi
15907 fi
15908 if test -z "$haveit"; then
15909 for x in $CPPFLAGS $INCICONV; do
15910
15911 acl_save_prefix="$prefix"
15912 prefix="$acl_final_prefix"
15913 acl_save_exec_prefix="$exec_prefix"
15914 exec_prefix="$acl_final_exec_prefix"
15915 eval x=\"$x\"
15916 exec_prefix="$acl_save_exec_prefix"
15917 prefix="$acl_save_prefix"
15918
15919 if test "X$x" = "X-I$additional_includedir"; then
15920 haveit=yes
15921 break
15922 fi
15923 done
15924 if test -z "$haveit"; then
15925 if test -d "$additional_includedir"; then
15926 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
15927 fi
15928 fi
15929 fi
15930 fi
15931 fi
15932 if test -n "$found_la"; then
15933 save_libdir="$libdir"
15934 case "$found_la" in
15935 */* | *\\*) . "$found_la" ;;
15936 *) . "./$found_la" ;;
15937 esac
15938 libdir="$save_libdir"
15939 for dep in $dependency_libs; do
15940 case "$dep" in
15941 -L*)
15942 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15943 if test "X$additional_libdir" != "X/usr/lib"; then
15944 haveit=
15945 if test "X$additional_libdir" = "X/usr/local/lib"; then
15946 if test -n "$GCC"; then
15947 case $host_os in
15948 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15949 esac
15950 fi
15951 fi
15952 if test -z "$haveit"; then
15953 haveit=
15954 for x in $LDFLAGS $LIBICONV; do
15955
15956 acl_save_prefix="$prefix"
15957 prefix="$acl_final_prefix"
15958 acl_save_exec_prefix="$exec_prefix"
15959 exec_prefix="$acl_final_exec_prefix"
15960 eval x=\"$x\"
15961 exec_prefix="$acl_save_exec_prefix"
15962 prefix="$acl_save_prefix"
15963
15964 if test "X$x" = "X-L$additional_libdir"; then
15965 haveit=yes
15966 break
15967 fi
15968 done
15969 if test -z "$haveit"; then
15970 if test -d "$additional_libdir"; then
15971 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
15972 fi
15973 fi
15974 haveit=
15975 for x in $LDFLAGS $LTLIBICONV; do
15976
15977 acl_save_prefix="$prefix"
15978 prefix="$acl_final_prefix"
15979 acl_save_exec_prefix="$exec_prefix"
15980 exec_prefix="$acl_final_exec_prefix"
15981 eval x=\"$x\"
15982 exec_prefix="$acl_save_exec_prefix"
15983 prefix="$acl_save_prefix"
15984
15985 if test "X$x" = "X-L$additional_libdir"; then
15986 haveit=yes
15987 break
15988 fi
15989 done
15990 if test -z "$haveit"; then
15991 if test -d "$additional_libdir"; then
15992 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
15993 fi
15994 fi
15995 fi
15996 fi
15997 ;;
15998 -R*)
15999 dir=`echo "X$dep" | sed -e 's/^X-R//'`
16000 if test "$enable_rpath" != no; then
16001 haveit=
16002 for x in $rpathdirs; do
16003 if test "X$x" = "X$dir"; then
16004 haveit=yes
16005 break
16006 fi
16007 done
16008 if test -z "$haveit"; then
16009 rpathdirs="$rpathdirs $dir"
16010 fi
16011 haveit=
16012 for x in $ltrpathdirs; do
16013 if test "X$x" = "X$dir"; then
16014 haveit=yes
16015 break
16016 fi
16017 done
16018 if test -z "$haveit"; then
16019 ltrpathdirs="$ltrpathdirs $dir"
16020 fi
16021 fi
16022 ;;
16023 -l*)
16024 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16025 ;;
16026 *.la)
16027 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16028 ;;
16029 *)
16030 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
16031 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16032 ;;
16033 esac
16034 done
16035 fi
16036 else
16037 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16038 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16039 fi
16040 fi
16041 fi
16042 done
16043 done
16044 if test "X$rpathdirs" != "X"; then
16045 if test -n "$hardcode_libdir_separator"; then
16046 alldirs=
16047 for found_dir in $rpathdirs; do
16048 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16049 done
16050 acl_save_libdir="$libdir"
16051 libdir="$alldirs"
16052 eval flag=\"$hardcode_libdir_flag_spec\"
16053 libdir="$acl_save_libdir"
16054 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16055 else
16056 for found_dir in $rpathdirs; do
16057 acl_save_libdir="$libdir"
16058 libdir="$found_dir"
16059 eval flag=\"$hardcode_libdir_flag_spec\"
16060 libdir="$acl_save_libdir"
16061 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16062 done
16063 fi
16064 fi
16065 if test "X$ltrpathdirs" != "X"; then
16066 for found_dir in $ltrpathdirs; do
16067 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16068 done
16069 fi
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088 { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
16089$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
16090if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
16091 $as_echo_n "(cached) " >&6
16092else
16093 gt_save_CPPFLAGS="$CPPFLAGS"
16094 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
16095 gt_save_LIBS="$LIBS"
16096 LIBS="$LIBS -framework CoreFoundation"
16097 cat >conftest.$ac_ext <<_ACEOF
16098/* confdefs.h. */
16099_ACEOF
16100cat confdefs.h >>conftest.$ac_ext
16101cat >>conftest.$ac_ext <<_ACEOF
16102/* end confdefs.h. */
16103#include <CFPreferences.h>
16104int
16105main ()
16106{
16107CFPreferencesCopyAppValue(NULL, NULL)
16108 ;
16109 return 0;
16110}
16111_ACEOF
16112rm -f conftest.$ac_objext conftest$ac_exeext
16113if { (ac_try="$ac_link"
16114case "(($ac_try" in
16115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16116 *) ac_try_echo=$ac_try;;
16117esac
16118eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16119$as_echo "$ac_try_echo") >&5
16120 (eval "$ac_link") 2>conftest.er1
16121 ac_status=$?
16122 grep -v '^ *+' conftest.er1 >conftest.err
16123 rm -f conftest.er1
16124 cat conftest.err >&5
16125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16126 (exit $ac_status); } && {
16127 test -z "$ac_cxx_werror_flag" ||
16128 test ! -s conftest.err
16129 } && test -s conftest$ac_exeext && {
16130 test "$cross_compiling" = yes ||
16131 $as_test_x conftest$ac_exeext
16132 }; then
16133 gt_cv_func_CFPreferencesCopyAppValue=yes
16134else
16135 $as_echo "$as_me: failed program was:" >&5
16136sed 's/^/| /' conftest.$ac_ext >&5
16137
16138 gt_cv_func_CFPreferencesCopyAppValue=no
16139fi
16140
16141rm -rf conftest.dSYM
16142rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16143 conftest$ac_exeext conftest.$ac_ext
16144 CPPFLAGS="$gt_save_CPPFLAGS"
16145 LIBS="$gt_save_LIBS"
16146fi
16147{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
16148$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
16149 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
16150
16151cat >>confdefs.h <<\_ACEOF
16152#define HAVE_CFPREFERENCESCOPYAPPVALUE 1
16153_ACEOF
16154
16155 fi
16156 { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
16157$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
16158if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
16159 $as_echo_n "(cached) " >&6
16160else
16161 gt_save_CPPFLAGS="$CPPFLAGS"
16162 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
16163 gt_save_LIBS="$LIBS"
16164 LIBS="$LIBS -framework CoreFoundation"
16165 cat >conftest.$ac_ext <<_ACEOF
16166/* confdefs.h. */
16167_ACEOF
16168cat confdefs.h >>conftest.$ac_ext
16169cat >>conftest.$ac_ext <<_ACEOF
16170/* end confdefs.h. */
16171#include <CFLocale.h>
16172int
16173main ()
16174{
16175CFLocaleCopyCurrent();
16176 ;
16177 return 0;
16178}
16179_ACEOF
16180rm -f conftest.$ac_objext conftest$ac_exeext
16181if { (ac_try="$ac_link"
16182case "(($ac_try" in
16183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16184 *) ac_try_echo=$ac_try;;
16185esac
16186eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16187$as_echo "$ac_try_echo") >&5
16188 (eval "$ac_link") 2>conftest.er1
16189 ac_status=$?
16190 grep -v '^ *+' conftest.er1 >conftest.err
16191 rm -f conftest.er1
16192 cat conftest.err >&5
16193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16194 (exit $ac_status); } && {
16195 test -z "$ac_cxx_werror_flag" ||
16196 test ! -s conftest.err
16197 } && test -s conftest$ac_exeext && {
16198 test "$cross_compiling" = yes ||
16199 $as_test_x conftest$ac_exeext
16200 }; then
16201 gt_cv_func_CFLocaleCopyCurrent=yes
16202else
16203 $as_echo "$as_me: failed program was:" >&5
16204sed 's/^/| /' conftest.$ac_ext >&5
16205
16206 gt_cv_func_CFLocaleCopyCurrent=no
16207fi
16208
16209rm -rf conftest.dSYM
16210rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16211 conftest$ac_exeext conftest.$ac_ext
16212 CPPFLAGS="$gt_save_CPPFLAGS"
16213 LIBS="$gt_save_LIBS"
16214fi
16215{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
16216$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
16217 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
16218
16219cat >>confdefs.h <<\_ACEOF
16220#define HAVE_CFLOCALECOPYCURRENT 1
16221_ACEOF
16222
16223 fi
16224 INTL_MACOSX_LIBS=
16225 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
16226 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
16227 fi
16228
16229
16230
16231
16232 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16233$as_echo_n "checking whether NLS is requested... " >&6; }
16234 # Check whether --enable-nls was given.
16235if test "${enable_nls+set}" = set; then
16236 enableval=$enable_nls; USE_NLS=$enableval
16237else
16238 USE_NLS=yes
16239fi
16240
16241 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
16242$as_echo "$USE_NLS" >&6; }
16243
16244
16245
16246
16247 LIBINTL=
16248 LTLIBINTL=
16249 POSUB=
16250
16251 if test "$USE_NLS" = "yes"; then
16252 gt_use_preinstalled_gnugettext=no
16253
16254
16255
16256
16257
16258
16259 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
16260$as_echo_n "checking for GNU gettext in libc... " >&6; }
16261if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
16262 $as_echo_n "(cached) " >&6
16263else
16264 cat >conftest.$ac_ext <<_ACEOF
16265/* confdefs.h. */
16266_ACEOF
16267cat confdefs.h >>conftest.$ac_ext
16268cat >>conftest.$ac_ext <<_ACEOF
16269/* end confdefs.h. */
16270#include <libintl.h>
16271extern int _nl_msg_cat_cntr;
16272extern int *_nl_domain_bindings;
16273int
16274main ()
16275{
16276bindtextdomain ("", "");
16277return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
16278 ;
16279 return 0;
16280}
16281_ACEOF
16282rm -f conftest.$ac_objext conftest$ac_exeext
16283if { (ac_try="$ac_link"
16284case "(($ac_try" in
16285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16286 *) ac_try_echo=$ac_try;;
16287esac
16288eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16289$as_echo "$ac_try_echo") >&5
16290 (eval "$ac_link") 2>conftest.er1
16291 ac_status=$?
16292 grep -v '^ *+' conftest.er1 >conftest.err
16293 rm -f conftest.er1
16294 cat conftest.err >&5
16295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16296 (exit $ac_status); } && {
16297 test -z "$ac_cxx_werror_flag" ||
16298 test ! -s conftest.err
16299 } && test -s conftest$ac_exeext && {
16300 test "$cross_compiling" = yes ||
16301 $as_test_x conftest$ac_exeext
16302 }; then
16303 gt_cv_func_gnugettext1_libc=yes
16304else
16305 $as_echo "$as_me: failed program was:" >&5
16306sed 's/^/| /' conftest.$ac_ext >&5
16307
16308 gt_cv_func_gnugettext1_libc=no
16309fi
16310
16311rm -rf conftest.dSYM
16312rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16313 conftest$ac_exeext conftest.$ac_ext
16314fi
16315{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
16316$as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
16317
16318 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
16319
16320
16321
16322
16323
16324 am_save_CPPFLAGS="$CPPFLAGS"
16325
16326 for element in $INCICONV; do
16327 haveit=
16328 for x in $CPPFLAGS; do
16329
16330 acl_save_prefix="$prefix"
16331 prefix="$acl_final_prefix"
16332 acl_save_exec_prefix="$exec_prefix"
16333 exec_prefix="$acl_final_exec_prefix"
16334 eval x=\"$x\"
16335 exec_prefix="$acl_save_exec_prefix"
16336 prefix="$acl_save_prefix"
16337
16338 if test "X$x" = "X$element"; then
16339 haveit=yes
16340 break
16341 fi
16342 done
16343 if test -z "$haveit"; then
16344 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16345 fi
16346 done
16347
16348
16349 { $as_echo "$as_me:$LINENO: checking for iconv" >&5
16350$as_echo_n "checking for iconv... " >&6; }
16351if test "${am_cv_func_iconv+set}" = set; then
16352 $as_echo_n "(cached) " >&6
16353else
16354
16355 am_cv_func_iconv="no, consider installing GNU libiconv"
16356 am_cv_lib_iconv=no
16357 cat >conftest.$ac_ext <<_ACEOF
16358/* confdefs.h. */
16359_ACEOF
16360cat confdefs.h >>conftest.$ac_ext
16361cat >>conftest.$ac_ext <<_ACEOF
16362/* end confdefs.h. */
16363#include <stdlib.h>
16364#include <iconv.h>
16365int
16366main ()
16367{
16368iconv_t cd = iconv_open("","");
16369 iconv(cd,NULL,NULL,NULL,NULL);
16370 iconv_close(cd);
16371 ;
16372 return 0;
16373}
16374_ACEOF
16375rm -f conftest.$ac_objext conftest$ac_exeext
16376if { (ac_try="$ac_link"
16377case "(($ac_try" in
16378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16379 *) ac_try_echo=$ac_try;;
16380esac
16381eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16382$as_echo "$ac_try_echo") >&5
16383 (eval "$ac_link") 2>conftest.er1
16384 ac_status=$?
16385 grep -v '^ *+' conftest.er1 >conftest.err
16386 rm -f conftest.er1
16387 cat conftest.err >&5
16388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389 (exit $ac_status); } && {
16390 test -z "$ac_cxx_werror_flag" ||
16391 test ! -s conftest.err
16392 } && test -s conftest$ac_exeext && {
16393 test "$cross_compiling" = yes ||
16394 $as_test_x conftest$ac_exeext
16395 }; then
16396 am_cv_func_iconv=yes
16397else
16398 $as_echo "$as_me: failed program was:" >&5
16399sed 's/^/| /' conftest.$ac_ext >&5
16400
16401
16402fi
16403
16404rm -rf conftest.dSYM
16405rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16406 conftest$ac_exeext conftest.$ac_ext
16407 if test "$am_cv_func_iconv" != yes; then
16408 am_save_LIBS="$LIBS"
16409 LIBS="$LIBS $LIBICONV"
16410 cat >conftest.$ac_ext <<_ACEOF
16411/* confdefs.h. */
16412_ACEOF
16413cat confdefs.h >>conftest.$ac_ext
16414cat >>conftest.$ac_ext <<_ACEOF
16415/* end confdefs.h. */
16416#include <stdlib.h>
16417#include <iconv.h>
16418int
16419main ()
16420{
16421iconv_t cd = iconv_open("","");
16422 iconv(cd,NULL,NULL,NULL,NULL);
16423 iconv_close(cd);
16424 ;
16425 return 0;
16426}
16427_ACEOF
16428rm -f conftest.$ac_objext conftest$ac_exeext
16429if { (ac_try="$ac_link"
16430case "(($ac_try" in
16431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16432 *) ac_try_echo=$ac_try;;
16433esac
16434eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16435$as_echo "$ac_try_echo") >&5
16436 (eval "$ac_link") 2>conftest.er1
16437 ac_status=$?
16438 grep -v '^ *+' conftest.er1 >conftest.err
16439 rm -f conftest.er1
16440 cat conftest.err >&5
16441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16442 (exit $ac_status); } && {
16443 test -z "$ac_cxx_werror_flag" ||
16444 test ! -s conftest.err
16445 } && test -s conftest$ac_exeext && {
16446 test "$cross_compiling" = yes ||
16447 $as_test_x conftest$ac_exeext
16448 }; then
16449 am_cv_lib_iconv=yes
16450 am_cv_func_iconv=yes
16451else
16452 $as_echo "$as_me: failed program was:" >&5
16453sed 's/^/| /' conftest.$ac_ext >&5
16454
16455
16456fi
16457
16458rm -rf conftest.dSYM
16459rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16460 conftest$ac_exeext conftest.$ac_ext
16461 LIBS="$am_save_LIBS"
16462 fi
16463
16464fi
16465{ $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
16466$as_echo "$am_cv_func_iconv" >&6; }
16467 if test "$am_cv_func_iconv" = yes; then
16468
16469cat >>confdefs.h <<\_ACEOF
16470#define HAVE_ICONV 1
16471_ACEOF
16472
16473 fi
16474 if test "$am_cv_lib_iconv" = yes; then
16475 { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
16476$as_echo_n "checking how to link with libiconv... " >&6; }
16477 { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
16478$as_echo "$LIBICONV" >&6; }
16479 else
16480 CPPFLAGS="$am_save_CPPFLAGS"
16481 LIBICONV=
16482 LTLIBICONV=
16483 fi
16484
16485
16486
16487
16488
16489
16490 use_additional=yes
16491
16492 acl_save_prefix="$prefix"
16493 prefix="$acl_final_prefix"
16494 acl_save_exec_prefix="$exec_prefix"
16495 exec_prefix="$acl_final_exec_prefix"
16496
16497 eval additional_includedir=\"$includedir\"
16498 eval additional_libdir=\"$libdir\"
16499
16500 exec_prefix="$acl_save_exec_prefix"
16501 prefix="$acl_save_prefix"
16502
16503
16504# Check whether --with-libintl-prefix was given.
16505if test "${with_libintl_prefix+set}" = set; then
16506 withval=$with_libintl_prefix;
16507 if test "X$withval" = "Xno"; then
16508 use_additional=no
16509 else
16510 if test "X$withval" = "X"; then
16511
16512 acl_save_prefix="$prefix"
16513 prefix="$acl_final_prefix"
16514 acl_save_exec_prefix="$exec_prefix"
16515 exec_prefix="$acl_final_exec_prefix"
16516
16517 eval additional_includedir=\"$includedir\"
16518 eval additional_libdir=\"$libdir\"
16519
16520 exec_prefix="$acl_save_exec_prefix"
16521 prefix="$acl_save_prefix"
16522
16523 else
16524 additional_includedir="$withval/include"
16525 additional_libdir="$withval/lib"
16526 fi
16527 fi
16528
16529fi
16530
16531 LIBINTL=
16532 LTLIBINTL=
16533 INCINTL=
16534 rpathdirs=
16535 ltrpathdirs=
16536 names_already_handled=
16537 names_next_round='intl '
16538 while test -n "$names_next_round"; do
16539 names_this_round="$names_next_round"
16540 names_next_round=
16541 for name in $names_this_round; do
16542 already_handled=
16543 for n in $names_already_handled; do
16544 if test "$n" = "$name"; then
16545 already_handled=yes
16546 break
16547 fi
16548 done
16549 if test -z "$already_handled"; then
16550 names_already_handled="$names_already_handled $name"
16551 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16552 eval value=\"\$HAVE_LIB$uppername\"
16553 if test -n "$value"; then
16554 if test "$value" = yes; then
16555 eval value=\"\$LIB$uppername\"
16556 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
16557 eval value=\"\$LTLIB$uppername\"
16558 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
16559 else
16560 :
16561 fi
16562 else
16563 found_dir=
16564 found_la=
16565 found_so=
16566 found_a=
16567 if test $use_additional = yes; then
16568 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16569 found_dir="$additional_libdir"
16570 found_so="$additional_libdir/lib$name.$shlibext"
16571 if test -f "$additional_libdir/lib$name.la"; then
16572 found_la="$additional_libdir/lib$name.la"
16573 fi
16574 else
16575 if test -f "$additional_libdir/lib$name.$libext"; then
16576 found_dir="$additional_libdir"
16577 found_a="$additional_libdir/lib$name.$libext"
16578 if test -f "$additional_libdir/lib$name.la"; then
16579 found_la="$additional_libdir/lib$name.la"
16580 fi
16581 fi
16582 fi
16583 fi
16584 if test "X$found_dir" = "X"; then
16585 for x in $LDFLAGS $LTLIBINTL; do
16586
16587 acl_save_prefix="$prefix"
16588 prefix="$acl_final_prefix"
16589 acl_save_exec_prefix="$exec_prefix"
16590 exec_prefix="$acl_final_exec_prefix"
16591 eval x=\"$x\"
16592 exec_prefix="$acl_save_exec_prefix"
16593 prefix="$acl_save_prefix"
16594
16595 case "$x" in
16596 -L*)
16597 dir=`echo "X$x" | sed -e 's/^X-L//'`
16598 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16599 found_dir="$dir"
16600 found_so="$dir/lib$name.$shlibext"
16601 if test -f "$dir/lib$name.la"; then
16602 found_la="$dir/lib$name.la"
16603 fi
16604 else
16605 if test -f "$dir/lib$name.$libext"; then
16606 found_dir="$dir"
16607 found_a="$dir/lib$name.$libext"
16608 if test -f "$dir/lib$name.la"; then
16609 found_la="$dir/lib$name.la"
16610 fi
16611 fi
16612 fi
16613 ;;
16614 esac
16615 if test "X$found_dir" != "X"; then
16616 break
16617 fi
16618 done
16619 fi
16620 if test "X$found_dir" != "X"; then
16621 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
16622 if test "X$found_so" != "X"; then
16623 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16624 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16625 else
16626 haveit=
16627 for x in $ltrpathdirs; do
16628 if test "X$x" = "X$found_dir"; then
16629 haveit=yes
16630 break
16631 fi
16632 done
16633 if test -z "$haveit"; then
16634 ltrpathdirs="$ltrpathdirs $found_dir"
16635 fi
16636 if test "$hardcode_direct" = yes; then
16637 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16638 else
16639 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
16640 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16641 haveit=
16642 for x in $rpathdirs; do
16643 if test "X$x" = "X$found_dir"; then
16644 haveit=yes
16645 break
16646 fi
16647 done
16648 if test -z "$haveit"; then
16649 rpathdirs="$rpathdirs $found_dir"
16650 fi
16651 else
16652 haveit=
16653 for x in $LDFLAGS $LIBINTL; do
16654
16655 acl_save_prefix="$prefix"
16656 prefix="$acl_final_prefix"
16657 acl_save_exec_prefix="$exec_prefix"
16658 exec_prefix="$acl_final_exec_prefix"
16659 eval x=\"$x\"
16660 exec_prefix="$acl_save_exec_prefix"
16661 prefix="$acl_save_prefix"
16662
16663 if test "X$x" = "X-L$found_dir"; then
16664 haveit=yes
16665 break
16666 fi
16667 done
16668 if test -z "$haveit"; then
16669 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
16670 fi
16671 if test "$hardcode_minus_L" != no; then
16672 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16673 else
16674 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
16675 fi
16676 fi
16677 fi
16678 fi
16679 else
16680 if test "X$found_a" != "X"; then
16681 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
16682 else
16683 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
16684 fi
16685 fi
16686 additional_includedir=
16687 case "$found_dir" in
16688 */lib | */lib/)
16689 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16690 additional_includedir="$basedir/include"
16691 ;;
16692 esac
16693 if test "X$additional_includedir" != "X"; then
16694 if test "X$additional_includedir" != "X/usr/include"; then
16695 haveit=
16696 if test "X$additional_includedir" = "X/usr/local/include"; then
16697 if test -n "$GCC"; then
16698 case $host_os in
16699 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16700 esac
16701 fi
16702 fi
16703 if test -z "$haveit"; then
16704 for x in $CPPFLAGS $INCINTL; do
16705
16706 acl_save_prefix="$prefix"
16707 prefix="$acl_final_prefix"
16708 acl_save_exec_prefix="$exec_prefix"
16709 exec_prefix="$acl_final_exec_prefix"
16710 eval x=\"$x\"
16711 exec_prefix="$acl_save_exec_prefix"
16712 prefix="$acl_save_prefix"
16713
16714 if test "X$x" = "X-I$additional_includedir"; then
16715 haveit=yes
16716 break
16717 fi
16718 done
16719 if test -z "$haveit"; then
16720 if test -d "$additional_includedir"; then
16721 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
16722 fi
16723 fi
16724 fi
16725 fi
16726 fi
16727 if test -n "$found_la"; then
16728 save_libdir="$libdir"
16729 case "$found_la" in
16730 */* | *\\*) . "$found_la" ;;
16731 *) . "./$found_la" ;;
16732 esac
16733 libdir="$save_libdir"
16734 for dep in $dependency_libs; do
16735 case "$dep" in
16736 -L*)
16737 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16738 if test "X$additional_libdir" != "X/usr/lib"; then
16739 haveit=
16740 if test "X$additional_libdir" = "X/usr/local/lib"; then
16741 if test -n "$GCC"; then
16742 case $host_os in
16743 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16744 esac
16745 fi
16746 fi
16747 if test -z "$haveit"; then
16748 haveit=
16749 for x in $LDFLAGS $LIBINTL; do
16750
16751 acl_save_prefix="$prefix"
16752 prefix="$acl_final_prefix"
16753 acl_save_exec_prefix="$exec_prefix"
16754 exec_prefix="$acl_final_exec_prefix"
16755 eval x=\"$x\"
16756 exec_prefix="$acl_save_exec_prefix"
16757 prefix="$acl_save_prefix"
16758
16759 if test "X$x" = "X-L$additional_libdir"; then
16760 haveit=yes
16761 break
16762 fi
16763 done
16764 if test -z "$haveit"; then
16765 if test -d "$additional_libdir"; then
16766 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
16767 fi
16768 fi
16769 haveit=
16770 for x in $LDFLAGS $LTLIBINTL; do
16771
16772 acl_save_prefix="$prefix"
16773 prefix="$acl_final_prefix"
16774 acl_save_exec_prefix="$exec_prefix"
16775 exec_prefix="$acl_final_exec_prefix"
16776 eval x=\"$x\"
16777 exec_prefix="$acl_save_exec_prefix"
16778 prefix="$acl_save_prefix"
16779
16780 if test "X$x" = "X-L$additional_libdir"; then
16781 haveit=yes
16782 break
16783 fi
16784 done
16785 if test -z "$haveit"; then
16786 if test -d "$additional_libdir"; then
16787 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
16788 fi
16789 fi
16790 fi
16791 fi
16792 ;;
16793 -R*)
16794 dir=`echo "X$dep" | sed -e 's/^X-R//'`
16795 if test "$enable_rpath" != no; then
16796 haveit=
16797 for x in $rpathdirs; do
16798 if test "X$x" = "X$dir"; then
16799 haveit=yes
16800 break
16801 fi
16802 done
16803 if test -z "$haveit"; then
16804 rpathdirs="$rpathdirs $dir"
16805 fi
16806 haveit=
16807 for x in $ltrpathdirs; do
16808 if test "X$x" = "X$dir"; then
16809 haveit=yes
16810 break
16811 fi
16812 done
16813 if test -z "$haveit"; then
16814 ltrpathdirs="$ltrpathdirs $dir"
16815 fi
16816 fi
16817 ;;
16818 -l*)
16819 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16820 ;;
16821 *.la)
16822 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16823 ;;
16824 *)
16825 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
16826 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
16827 ;;
16828 esac
16829 done
16830 fi
16831 else
16832 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
16833 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
16834 fi
16835 fi
16836 fi
16837 done
16838 done
16839 if test "X$rpathdirs" != "X"; then
16840 if test -n "$hardcode_libdir_separator"; then
16841 alldirs=
16842 for found_dir in $rpathdirs; do
16843 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16844 done
16845 acl_save_libdir="$libdir"
16846 libdir="$alldirs"
16847 eval flag=\"$hardcode_libdir_flag_spec\"
16848 libdir="$acl_save_libdir"
16849 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
16850 else
16851 for found_dir in $rpathdirs; do
16852 acl_save_libdir="$libdir"
16853 libdir="$found_dir"
16854 eval flag=\"$hardcode_libdir_flag_spec\"
16855 libdir="$acl_save_libdir"
16856 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
16857 done
16858 fi
16859 fi
16860 if test "X$ltrpathdirs" != "X"; then
16861 for found_dir in $ltrpathdirs; do
16862 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
16863 done
16864 fi
16865
16866 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
16867$as_echo_n "checking for GNU gettext in libintl... " >&6; }
16868if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
16869 $as_echo_n "(cached) " >&6
16870else
16871 gt_save_CPPFLAGS="$CPPFLAGS"
16872 CPPFLAGS="$CPPFLAGS $INCINTL"
16873 gt_save_LIBS="$LIBS"
16874 LIBS="$LIBS $LIBINTL"
16875 cat >conftest.$ac_ext <<_ACEOF
16876/* confdefs.h. */
16877_ACEOF
16878cat confdefs.h >>conftest.$ac_ext
16879cat >>conftest.$ac_ext <<_ACEOF
16880/* end confdefs.h. */
16881#include <libintl.h>
16882extern int _nl_msg_cat_cntr;
16883extern
16884#ifdef __cplusplus
16885"C"
16886#endif
16887const char *_nl_expand_alias (const char *);
16888int
16889main ()
16890{
16891bindtextdomain ("", "");
16892return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
16893 ;
16894 return 0;
16895}
16896_ACEOF
16897rm -f conftest.$ac_objext conftest$ac_exeext
16898if { (ac_try="$ac_link"
16899case "(($ac_try" in
16900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16901 *) ac_try_echo=$ac_try;;
16902esac
16903eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16904$as_echo "$ac_try_echo") >&5
16905 (eval "$ac_link") 2>conftest.er1
16906 ac_status=$?
16907 grep -v '^ *+' conftest.er1 >conftest.err
16908 rm -f conftest.er1
16909 cat conftest.err >&5
16910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16911 (exit $ac_status); } && {
16912 test -z "$ac_cxx_werror_flag" ||
16913 test ! -s conftest.err
16914 } && test -s conftest$ac_exeext && {
16915 test "$cross_compiling" = yes ||
16916 $as_test_x conftest$ac_exeext
16917 }; then
16918 gt_cv_func_gnugettext1_libintl=yes
16919else
16920 $as_echo "$as_me: failed program was:" >&5
16921sed 's/^/| /' conftest.$ac_ext >&5
16922
16923 gt_cv_func_gnugettext1_libintl=no
16924fi
16925
16926rm -rf conftest.dSYM
16927rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16928 conftest$ac_exeext conftest.$ac_ext
16929 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
16930 LIBS="$LIBS $LIBICONV"
16931 cat >conftest.$ac_ext <<_ACEOF
16932/* confdefs.h. */
16933_ACEOF
16934cat confdefs.h >>conftest.$ac_ext
16935cat >>conftest.$ac_ext <<_ACEOF
16936/* end confdefs.h. */
16937#include <libintl.h>
16938extern int _nl_msg_cat_cntr;
16939extern
16940#ifdef __cplusplus
16941"C"
16942#endif
16943const char *_nl_expand_alias (const char *);
16944int
16945main ()
16946{
16947bindtextdomain ("", "");
16948return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
16949 ;
16950 return 0;
16951}
16952_ACEOF
16953rm -f conftest.$ac_objext conftest$ac_exeext
16954if { (ac_try="$ac_link"
16955case "(($ac_try" in
16956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16957 *) ac_try_echo=$ac_try;;
16958esac
16959eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16960$as_echo "$ac_try_echo") >&5
16961 (eval "$ac_link") 2>conftest.er1
16962 ac_status=$?
16963 grep -v '^ *+' conftest.er1 >conftest.err
16964 rm -f conftest.er1
16965 cat conftest.err >&5
16966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967 (exit $ac_status); } && {
16968 test -z "$ac_cxx_werror_flag" ||
16969 test ! -s conftest.err
16970 } && test -s conftest$ac_exeext && {
16971 test "$cross_compiling" = yes ||
16972 $as_test_x conftest$ac_exeext
16973 }; then
16974 LIBINTL="$LIBINTL $LIBICONV"
16975 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
16976 gt_cv_func_gnugettext1_libintl=yes
16977
16978else
16979 $as_echo "$as_me: failed program was:" >&5
16980sed 's/^/| /' conftest.$ac_ext >&5
16981
16982
16983fi
16984
16985rm -rf conftest.dSYM
16986rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16987 conftest$ac_exeext conftest.$ac_ext
16988 fi
16989 CPPFLAGS="$gt_save_CPPFLAGS"
16990 LIBS="$gt_save_LIBS"
16991fi
16992{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
16993$as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
16994 fi
16995
16996 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
16997 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
16998 && test "$PACKAGE" != gettext-runtime \
16999 && test "$PACKAGE" != gettext-tools; }; then
17000 gt_use_preinstalled_gnugettext=yes
17001 else
17002 LIBINTL=
17003 LTLIBINTL=
17004 INCINTL=
17005 fi
17006
17007
17008
17009 if test -n "$INTL_MACOSX_LIBS"; then
17010 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17011 || test "$nls_cv_use_gnu_gettext" = "yes"; then
17012 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
17013 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
17014 fi
17015 fi
17016
17017 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17018 || test "$nls_cv_use_gnu_gettext" = "yes"; then
17019
17020cat >>confdefs.h <<\_ACEOF
17021#define ENABLE_NLS 1
17022_ACEOF
17023
17024 else
17025 USE_NLS=no
17026 fi
17027 fi
17028
17029 { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
17030$as_echo_n "checking whether to use NLS... " >&6; }
17031 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
17032$as_echo "$USE_NLS" >&6; }
17033 if test "$USE_NLS" = "yes"; then
17034 { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
17035$as_echo_n "checking where the gettext function comes from... " >&6; }
17036 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17037 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17038 gt_source="external libintl"
17039 else
17040 gt_source="libc"
17041 fi
17042 else
17043 gt_source="included intl directory"
17044 fi
17045 { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
17046$as_echo "$gt_source" >&6; }
17047 fi
17048
17049 if test "$USE_NLS" = "yes"; then
17050
17051 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17052 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17053 { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
17054$as_echo_n "checking how to link with libintl... " >&6; }
17055 { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
17056$as_echo "$LIBINTL" >&6; }
17057
17058 for element in $INCINTL; do
17059 haveit=
17060 for x in $CPPFLAGS; do
17061
17062 acl_save_prefix="$prefix"
17063 prefix="$acl_final_prefix"
17064 acl_save_exec_prefix="$exec_prefix"
17065 exec_prefix="$acl_final_exec_prefix"
17066 eval x=\"$x\"
17067 exec_prefix="$acl_save_exec_prefix"
17068 prefix="$acl_save_prefix"
17069
17070 if test "X$x" = "X$element"; then
17071 haveit=yes
17072 break
17073 fi
17074 done
17075 if test -z "$haveit"; then
17076 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17077 fi
17078 done
17079
17080 fi
17081
17082
17083cat >>confdefs.h <<\_ACEOF
17084#define HAVE_GETTEXT 1
17085_ACEOF
17086
17087
17088cat >>confdefs.h <<\_ACEOF
17089#define HAVE_DCGETTEXT 1
17090_ACEOF
17091
17092 fi
17093
17094 POSUB=po
17095 fi
17096
17097
17098
17099 INTLLIBS="$LIBINTL"
17100
17101
17102
17103
17104
17105
17106
17107
17108case "`(uname -sr) 2>/dev/null`" in
17109"SunOS 5"*)
17110 SOLARIS=yes
17111 USE_MITSHM=yes
17112 USE_SUN_OVL=yes
17113 ;;
17114"IRIX 6"*)
17115 LDFLAGS="-L/usr/lib32 $LDFLAGS"
17116 USE_MITSHM=yes
17117 USE_READDISPLAY=yes
17118 ;;
17119"LynxOS 2"*)
17120 SJLJ_EXCEPTIONS=yes
17121 ;;
17122esac
17123
17124if test "$USE_MITSHM" = yes; then
17125 MITSHM_DEFINE="-DHAVE_MITSHM"
17126fi
17127
17128
17129if test "$GCC" = yes; then
17130 CFLAGS="$CFLAGS -Wall"
17131 if test "$SOLARIS" = yes; then
17132 CFLAGS="$CFLAGS -Wno-unknown-pragmas -Wno-implicit-int"
17133 fi
17134fi
17135if test "$GXX" = yes; then
17136 CXXFLAGS="$CXXFLAGS -Wall"
17137 if test "$SOLARIS" = yes; then
17138 CXXFLAGS="$CXXFLAGS -Wno-unknown-pragmas -fpermissive"
17139 fi
17140 if test "$SJLJ_EXCEPTIONS" = yes; then
17141 CXXFLAGS="$CXXFLAGS -fsjlj-exceptions"
17142 fi
17143fi
17144
17145
17146{ $as_echo "$as_me:$LINENO: checking for X" >&5
17147$as_echo_n "checking for X... " >&6; }
17148
17149
17150# Check whether --with-x was given.
17151if test "${with_x+set}" = set; then
17152 withval=$with_x;
17153fi
17154
17155# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
17156if test "x$with_x" = xno; then
17157 # The user explicitly disabled X.
17158 have_x=disabled
17159else
17160 case $x_includes,$x_libraries in #(
17161 *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5
17162$as_echo "$as_me: error: cannot use X directory names containing '" >&2;}
17163 { (exit 1); exit 1; }; };; #(
17164 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
17165 $as_echo_n "(cached) " >&6
17166else
17167 # One or both of the vars are not set, and there is no cached value.
17168ac_x_includes=no ac_x_libraries=no
17169rm -f -r conftest.dir
17170if mkdir conftest.dir; then
17171 cd conftest.dir
17172 cat >Imakefile <<'_ACEOF'
17173incroot:
17174 @echo incroot='${INCROOT}'
17175usrlibdir:
17176 @echo usrlibdir='${USRLIBDIR}'
17177libdir:
17178 @echo libdir='${LIBDIR}'
17179_ACEOF
17180 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
17181 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
17182 for ac_var in incroot usrlibdir libdir; do
17183 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
17184 done
17185 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
17186 for ac_extension in a so sl dylib la dll; do
17187 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
17188 test -f "$ac_im_libdir/libX11.$ac_extension"; then
17189 ac_im_usrlibdir=$ac_im_libdir; break
17190 fi
17191 done
17192 # Screen out bogus values from the imake configuration. They are
17193 # bogus both because they are the default anyway, and because
17194 # using them would break gcc on systems where it needs fixed includes.
17195 case $ac_im_incroot in
17196 /usr/include) ac_x_includes= ;;
17197 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
17198 esac
17199 case $ac_im_usrlibdir in
17200 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
17201 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
17202 esac
17203 fi
17204 cd ..
17205 rm -f -r conftest.dir
17206fi
17207
17208# Standard set of common directories for X headers.
17209# Check X11 before X11Rn because it is often a symlink to the current release.
17210ac_x_header_dirs='
17211/usr/X11/include
17212/usr/X11R6/include
17213/usr/X11R5/include
17214/usr/X11R4/include
17215
17216/usr/include/X11
17217/usr/include/X11R6
17218/usr/include/X11R5
17219/usr/include/X11R4
17220
17221/usr/local/X11/include
17222/usr/local/X11R6/include
17223/usr/local/X11R5/include
17224/usr/local/X11R4/include
17225
17226/usr/local/include/X11
17227/usr/local/include/X11R6
17228/usr/local/include/X11R5
17229/usr/local/include/X11R4
17230
17231/usr/X386/include
17232/usr/x386/include
17233/usr/XFree86/include/X11
17234
17235/usr/include
17236/usr/local/include
17237/usr/unsupported/include
17238/usr/athena/include
17239/usr/local/x11r5/include
17240/usr/lpp/Xamples/include
17241
17242/usr/openwin/include
17243/usr/openwin/share/include'
17244
17245if test "$ac_x_includes" = no; then
17246 # Guess where to find include files, by looking for Xlib.h.
17247 # First, try using that file with no special directory specified.
17248 cat >conftest.$ac_ext <<_ACEOF
17249/* confdefs.h. */
17250_ACEOF
17251cat confdefs.h >>conftest.$ac_ext
17252cat >>conftest.$ac_ext <<_ACEOF
17253/* end confdefs.h. */
17254#include <X11/Xlib.h>
17255_ACEOF
17256if { (ac_try="$ac_cpp conftest.$ac_ext"
17257case "(($ac_try" in
17258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17259 *) ac_try_echo=$ac_try;;
17260esac
17261eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17262$as_echo "$ac_try_echo") >&5
17263 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17264 ac_status=$?
17265 grep -v '^ *+' conftest.er1 >conftest.err
17266 rm -f conftest.er1
17267 cat conftest.err >&5
17268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17269 (exit $ac_status); } >/dev/null && {
17270 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
17271 test ! -s conftest.err
17272 }; then
17273 # We can compile using X headers with no special include directory.
17274ac_x_includes=
17275else
17276 $as_echo "$as_me: failed program was:" >&5
17277sed 's/^/| /' conftest.$ac_ext >&5
17278
17279 for ac_dir in $ac_x_header_dirs; do
17280 if test -r "$ac_dir/X11/Xlib.h"; then
17281 ac_x_includes=$ac_dir
17282 break
17283 fi
17284done
17285fi
17286
17287rm -f conftest.err conftest.$ac_ext
17288fi # $ac_x_includes = no
17289
17290if test "$ac_x_libraries" = no; then
17291 # Check for the libraries.
17292 # See if we find them without any special options.
17293 # Don't add to $LIBS permanently.
17294 ac_save_LIBS=$LIBS
17295 LIBS="-lX11 $LIBS"
17296 cat >conftest.$ac_ext <<_ACEOF
17297/* confdefs.h. */
17298_ACEOF
17299cat confdefs.h >>conftest.$ac_ext
17300cat >>conftest.$ac_ext <<_ACEOF
17301/* end confdefs.h. */
17302#include <X11/Xlib.h>
17303int
17304main ()
17305{
17306XrmInitialize ()
17307 ;
17308 return 0;
17309}
17310_ACEOF
17311rm -f conftest.$ac_objext conftest$ac_exeext
17312if { (ac_try="$ac_link"
17313case "(($ac_try" in
17314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17315 *) ac_try_echo=$ac_try;;
17316esac
17317eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17318$as_echo "$ac_try_echo") >&5
17319 (eval "$ac_link") 2>conftest.er1
17320 ac_status=$?
17321 grep -v '^ *+' conftest.er1 >conftest.err
17322 rm -f conftest.er1
17323 cat conftest.err >&5
17324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17325 (exit $ac_status); } && {
17326 test -z "$ac_cxx_werror_flag" ||
17327 test ! -s conftest.err
17328 } && test -s conftest$ac_exeext && {
17329 test "$cross_compiling" = yes ||
17330 $as_test_x conftest$ac_exeext
17331 }; then
17332 LIBS=$ac_save_LIBS
17333# We can link X programs with no special library path.
17334ac_x_libraries=
17335else
17336 $as_echo "$as_me: failed program was:" >&5
17337sed 's/^/| /' conftest.$ac_ext >&5
17338
17339 LIBS=$ac_save_LIBS
17340for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
17341do
17342 # Don't even attempt the hair of trying to link an X program!
17343 for ac_extension in a so sl dylib la dll; do
17344 if test -r "$ac_dir/libX11.$ac_extension"; then
17345 ac_x_libraries=$ac_dir
17346 break 2
17347 fi
17348 done
17349done
17350fi
17351
17352rm -rf conftest.dSYM
17353rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17354 conftest$ac_exeext conftest.$ac_ext
17355fi # $ac_x_libraries = no
17356
17357case $ac_x_includes,$ac_x_libraries in #(
17358 no,* | *,no | *\'*)
17359 # Didn't find X, or a directory has "'" in its name.
17360 ac_cv_have_x="have_x=no";; #(
17361 *)
17362 # Record where we found X for the cache.
17363 ac_cv_have_x="have_x=yes\
17364 ac_x_includes='$ac_x_includes'\
17365 ac_x_libraries='$ac_x_libraries'"
17366esac
17367fi
17368;; #(
17369 *) have_x=yes;;
17370 esac
17371 eval "$ac_cv_have_x"
17372fi # $with_x != no
17373
17374if test "$have_x" != yes; then
17375 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
17376$as_echo "$have_x" >&6; }
17377 no_x=yes
17378else
17379 # If each of the values was on the command line, it overrides each guess.
17380 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
17381 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
17382 # Update the cache value to reflect the command line values.
17383 ac_cv_have_x="have_x=yes\
17384 ac_x_includes='$x_includes'\
17385 ac_x_libraries='$x_libraries'"
17386 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
17387$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
17388fi
17389
17390if test "$no_x" = yes; then
17391 # Not all programs may use this symbol, but it does not hurt to define it.
17392
17393cat >>confdefs.h <<\_ACEOF
17394#define X_DISPLAY_MISSING 1
17395_ACEOF
17396
17397 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
17398else
17399 if test -n "$x_includes"; then
17400 X_CFLAGS="$X_CFLAGS -I$x_includes"
17401 fi
17402
17403 # It would also be nice to do this for all -L options, not just this one.
17404 if test -n "$x_libraries"; then
17405 X_LIBS="$X_LIBS -L$x_libraries"
17406 # For Solaris; some versions of Sun CC require a space after -R and
17407 # others require no space. Words are not sufficient . . . .
17408 { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
17409$as_echo_n "checking whether -R must be followed by a space... " >&6; }
17410 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
17411 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag
17412 ac_cxx_werror_flag=yes
17413 cat >conftest.$ac_ext <<_ACEOF
17414/* confdefs.h. */
17415_ACEOF
17416cat confdefs.h >>conftest.$ac_ext
17417cat >>conftest.$ac_ext <<_ACEOF
17418/* end confdefs.h. */
17419
17420int
17421main ()
17422{
17423
17424 ;
17425 return 0;
17426}
17427_ACEOF
17428rm -f conftest.$ac_objext conftest$ac_exeext
17429if { (ac_try="$ac_link"
17430case "(($ac_try" in
17431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17432 *) ac_try_echo=$ac_try;;
17433esac
17434eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17435$as_echo "$ac_try_echo") >&5
17436 (eval "$ac_link") 2>conftest.er1
17437 ac_status=$?
17438 grep -v '^ *+' conftest.er1 >conftest.err
17439 rm -f conftest.er1
17440 cat conftest.err >&5
17441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17442 (exit $ac_status); } && {
17443 test -z "$ac_cxx_werror_flag" ||
17444 test ! -s conftest.err
17445 } && test -s conftest$ac_exeext && {
17446 test "$cross_compiling" = yes ||
17447 $as_test_x conftest$ac_exeext
17448 }; then
17449 { $as_echo "$as_me:$LINENO: result: no" >&5
17450$as_echo "no" >&6; }
17451 X_LIBS="$X_LIBS -R$x_libraries"
17452else
17453 $as_echo "$as_me: failed program was:" >&5
17454sed 's/^/| /' conftest.$ac_ext >&5
17455
17456 LIBS="$ac_xsave_LIBS -R $x_libraries"
17457 cat >conftest.$ac_ext <<_ACEOF
17458/* confdefs.h. */
17459_ACEOF
17460cat confdefs.h >>conftest.$ac_ext
17461cat >>conftest.$ac_ext <<_ACEOF
17462/* end confdefs.h. */
17463
17464int
17465main ()
17466{
17467
17468 ;
17469 return 0;
17470}
17471_ACEOF
17472rm -f conftest.$ac_objext conftest$ac_exeext
17473if { (ac_try="$ac_link"
17474case "(($ac_try" in
17475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17476 *) ac_try_echo=$ac_try;;
17477esac
17478eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17479$as_echo "$ac_try_echo") >&5
17480 (eval "$ac_link") 2>conftest.er1
17481 ac_status=$?
17482 grep -v '^ *+' conftest.er1 >conftest.err
17483 rm -f conftest.er1
17484 cat conftest.err >&5
17485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486 (exit $ac_status); } && {
17487 test -z "$ac_cxx_werror_flag" ||
17488 test ! -s conftest.err
17489 } && test -s conftest$ac_exeext && {
17490 test "$cross_compiling" = yes ||
17491 $as_test_x conftest$ac_exeext
17492 }; then
17493 { $as_echo "$as_me:$LINENO: result: yes" >&5
17494$as_echo "yes" >&6; }
17495 X_LIBS="$X_LIBS -R $x_libraries"
17496else
17497 $as_echo "$as_me: failed program was:" >&5
17498sed 's/^/| /' conftest.$ac_ext >&5
17499
17500 { $as_echo "$as_me:$LINENO: result: neither works" >&5
17501$as_echo "neither works" >&6; }
17502fi
17503
17504rm -rf conftest.dSYM
17505rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17506 conftest$ac_exeext conftest.$ac_ext
17507fi
17508
17509rm -rf conftest.dSYM
17510rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17511 conftest$ac_exeext conftest.$ac_ext
17512 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag
17513 LIBS=$ac_xsave_LIBS
17514 fi
17515
17516 # Check for system-dependent libraries X programs must link with.
17517 # Do this before checking for the system-independent R6 libraries
17518 # (-lICE), since we may need -lsocket or whatever for X linking.
17519
17520 if test "$ISC" = yes; then
17521 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
17522 else
17523 # Martyn Johnson says this is needed for Ultrix, if the X
17524 # libraries were built with DECnet support. And Karl Berry says
17525 # the Alpha needs dnet_stub (dnet does not exist).
17526 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
17527 cat >conftest.$ac_ext <<_ACEOF
17528/* confdefs.h. */
17529_ACEOF
17530cat confdefs.h >>conftest.$ac_ext
17531cat >>conftest.$ac_ext <<_ACEOF
17532/* end confdefs.h. */
17533
17534/* Override any GCC internal prototype to avoid an error.
17535 Use char because int might match the return type of a GCC
17536 builtin and then its argument prototype would still apply. */
17537#ifdef __cplusplus
17538extern "C"
17539#endif
17540char XOpenDisplay ();
17541int
17542main ()
17543{
17544return XOpenDisplay ();
17545 ;
17546 return 0;
17547}
17548_ACEOF
17549rm -f conftest.$ac_objext conftest$ac_exeext
17550if { (ac_try="$ac_link"
17551case "(($ac_try" in
17552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17553 *) ac_try_echo=$ac_try;;
17554esac
17555eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17556$as_echo "$ac_try_echo") >&5
17557 (eval "$ac_link") 2>conftest.er1
17558 ac_status=$?
17559 grep -v '^ *+' conftest.er1 >conftest.err
17560 rm -f conftest.er1
17561 cat conftest.err >&5
17562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17563 (exit $ac_status); } && {
17564 test -z "$ac_cxx_werror_flag" ||
17565 test ! -s conftest.err
17566 } && test -s conftest$ac_exeext && {
17567 test "$cross_compiling" = yes ||
17568 $as_test_x conftest$ac_exeext
17569 }; then
17570 :
17571else
17572 $as_echo "$as_me: failed program was:" >&5
17573sed 's/^/| /' conftest.$ac_ext >&5
17574
17575 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
17576$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
17577if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
17578 $as_echo_n "(cached) " >&6
17579else
17580 ac_check_lib_save_LIBS=$LIBS
17581LIBS="-ldnet $LIBS"
17582cat >conftest.$ac_ext <<_ACEOF
17583/* confdefs.h. */
17584_ACEOF
17585cat confdefs.h >>conftest.$ac_ext
17586cat >>conftest.$ac_ext <<_ACEOF
17587/* end confdefs.h. */
17588
17589/* Override any GCC internal prototype to avoid an error.
17590 Use char because int might match the return type of a GCC
17591 builtin and then its argument prototype would still apply. */
17592#ifdef __cplusplus
17593extern "C"
17594#endif
17595char dnet_ntoa ();
17596int
17597main ()
17598{
17599return dnet_ntoa ();
17600 ;
17601 return 0;
17602}
17603_ACEOF
17604rm -f conftest.$ac_objext conftest$ac_exeext
17605if { (ac_try="$ac_link"
17606case "(($ac_try" in
17607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17608 *) ac_try_echo=$ac_try;;
17609esac
17610eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17611$as_echo "$ac_try_echo") >&5
17612 (eval "$ac_link") 2>conftest.er1
17613 ac_status=$?
17614 grep -v '^ *+' conftest.er1 >conftest.err
17615 rm -f conftest.er1
17616 cat conftest.err >&5
17617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618 (exit $ac_status); } && {
17619 test -z "$ac_cxx_werror_flag" ||
17620 test ! -s conftest.err
17621 } && test -s conftest$ac_exeext && {
17622 test "$cross_compiling" = yes ||
17623 $as_test_x conftest$ac_exeext
17624 }; then
17625 ac_cv_lib_dnet_dnet_ntoa=yes
17626else
17627 $as_echo "$as_me: failed program was:" >&5
17628sed 's/^/| /' conftest.$ac_ext >&5
17629
17630 ac_cv_lib_dnet_dnet_ntoa=no
17631fi
17632
17633rm -rf conftest.dSYM
17634rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17635 conftest$ac_exeext conftest.$ac_ext
17636LIBS=$ac_check_lib_save_LIBS
17637fi
17638{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
17639$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
17640if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then
17641 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
17642fi
17643
17644 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
17645 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
17646$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
17647if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
17648 $as_echo_n "(cached) " >&6
17649else
17650 ac_check_lib_save_LIBS=$LIBS
17651LIBS="-ldnet_stub $LIBS"
17652cat >conftest.$ac_ext <<_ACEOF
17653/* confdefs.h. */
17654_ACEOF
17655cat confdefs.h >>conftest.$ac_ext
17656cat >>conftest.$ac_ext <<_ACEOF
17657/* end confdefs.h. */
17658
17659/* Override any GCC internal prototype to avoid an error.
17660 Use char because int might match the return type of a GCC
17661 builtin and then its argument prototype would still apply. */
17662#ifdef __cplusplus
17663extern "C"
17664#endif
17665char dnet_ntoa ();
17666int
17667main ()
17668{
17669return dnet_ntoa ();
17670 ;
17671 return 0;
17672}
17673_ACEOF
17674rm -f conftest.$ac_objext conftest$ac_exeext
17675if { (ac_try="$ac_link"
17676case "(($ac_try" in
17677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17678 *) ac_try_echo=$ac_try;;
17679esac
17680eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17681$as_echo "$ac_try_echo") >&5
17682 (eval "$ac_link") 2>conftest.er1
17683 ac_status=$?
17684 grep -v '^ *+' conftest.er1 >conftest.err
17685 rm -f conftest.er1
17686 cat conftest.err >&5
17687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17688 (exit $ac_status); } && {
17689 test -z "$ac_cxx_werror_flag" ||
17690 test ! -s conftest.err
17691 } && test -s conftest$ac_exeext && {
17692 test "$cross_compiling" = yes ||
17693 $as_test_x conftest$ac_exeext
17694 }; then
17695 ac_cv_lib_dnet_stub_dnet_ntoa=yes
17696else
17697 $as_echo "$as_me: failed program was:" >&5
17698sed 's/^/| /' conftest.$ac_ext >&5
17699
17700 ac_cv_lib_dnet_stub_dnet_ntoa=no
17701fi
17702
17703rm -rf conftest.dSYM
17704rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17705 conftest$ac_exeext conftest.$ac_ext
17706LIBS=$ac_check_lib_save_LIBS
17707fi
17708{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
17709$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
17710if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then
17711 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
17712fi
17713
17714 fi
17715fi
17716
17717rm -rf conftest.dSYM
17718rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17719 conftest$ac_exeext conftest.$ac_ext
17720 LIBS="$ac_xsave_LIBS"
17721
17722 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
17723 # to get the SysV transport functions.
17724 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
17725 # needs -lnsl.
17726 # The nsl library prevents programs from opening the X display
17727 # on Irix 5.2, according to T.E. Dickey.
17728 # The functions gethostbyname, getservbyname, and inet_addr are
17729 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
17730 { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
17731$as_echo_n "checking for gethostbyname... " >&6; }
17732if test "${ac_cv_func_gethostbyname+set}" = set; then
17733 $as_echo_n "(cached) " >&6
17734else
17735 cat >conftest.$ac_ext <<_ACEOF
17736/* confdefs.h. */
17737_ACEOF
17738cat confdefs.h >>conftest.$ac_ext
17739cat >>conftest.$ac_ext <<_ACEOF
17740/* end confdefs.h. */
17741/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
17742 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17743#define gethostbyname innocuous_gethostbyname
17744
17745/* System header to define __stub macros and hopefully few prototypes,
17746 which can conflict with char gethostbyname (); below.
17747 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17748 <limits.h> exists even on freestanding compilers. */
17749
17750#ifdef __STDC__
17751# include <limits.h>
17752#else
17753# include <assert.h>
17754#endif
17755
17756#undef gethostbyname
17757
17758/* Override any GCC internal prototype to avoid an error.
17759 Use char because int might match the return type of a GCC
17760 builtin and then its argument prototype would still apply. */
17761#ifdef __cplusplus
17762extern "C"
17763#endif
17764char gethostbyname ();
17765/* The GNU C library defines this for functions which it implements
17766 to always fail with ENOSYS. Some functions are actually named
17767 something starting with __ and the normal name is an alias. */
17768#if defined __stub_gethostbyname || defined __stub___gethostbyname
17769choke me
17770#endif
17771
17772int
17773main ()
17774{
17775return gethostbyname ();
17776 ;
17777 return 0;
17778}
17779_ACEOF
17780rm -f conftest.$ac_objext conftest$ac_exeext
17781if { (ac_try="$ac_link"
17782case "(($ac_try" in
17783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17784 *) ac_try_echo=$ac_try;;
17785esac
17786eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17787$as_echo "$ac_try_echo") >&5
17788 (eval "$ac_link") 2>conftest.er1
17789 ac_status=$?
17790 grep -v '^ *+' conftest.er1 >conftest.err
17791 rm -f conftest.er1
17792 cat conftest.err >&5
17793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17794 (exit $ac_status); } && {
17795 test -z "$ac_cxx_werror_flag" ||
17796 test ! -s conftest.err
17797 } && test -s conftest$ac_exeext && {
17798 test "$cross_compiling" = yes ||
17799 $as_test_x conftest$ac_exeext
17800 }; then
17801 ac_cv_func_gethostbyname=yes
17802else
17803 $as_echo "$as_me: failed program was:" >&5
17804sed 's/^/| /' conftest.$ac_ext >&5
17805
17806 ac_cv_func_gethostbyname=no
17807fi
17808
17809rm -rf conftest.dSYM
17810rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17811 conftest$ac_exeext conftest.$ac_ext
17812fi
17813{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
17814$as_echo "$ac_cv_func_gethostbyname" >&6; }
17815
17816 if test $ac_cv_func_gethostbyname = no; then
17817 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
17818$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
17819if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
17820 $as_echo_n "(cached) " >&6
17821else
17822 ac_check_lib_save_LIBS=$LIBS
17823LIBS="-lnsl $LIBS"
17824cat >conftest.$ac_ext <<_ACEOF
17825/* confdefs.h. */
17826_ACEOF
17827cat confdefs.h >>conftest.$ac_ext
17828cat >>conftest.$ac_ext <<_ACEOF
17829/* end confdefs.h. */
17830
17831/* Override any GCC internal prototype to avoid an error.
17832 Use char because int might match the return type of a GCC
17833 builtin and then its argument prototype would still apply. */
17834#ifdef __cplusplus
17835extern "C"
17836#endif
17837char gethostbyname ();
17838int
17839main ()
17840{
17841return gethostbyname ();
17842 ;
17843 return 0;
17844}
17845_ACEOF
17846rm -f conftest.$ac_objext conftest$ac_exeext
17847if { (ac_try="$ac_link"
17848case "(($ac_try" in
17849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17850 *) ac_try_echo=$ac_try;;
17851esac
17852eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17853$as_echo "$ac_try_echo") >&5
17854 (eval "$ac_link") 2>conftest.er1
17855 ac_status=$?
17856 grep -v '^ *+' conftest.er1 >conftest.err
17857 rm -f conftest.er1
17858 cat conftest.err >&5
17859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17860 (exit $ac_status); } && {
17861 test -z "$ac_cxx_werror_flag" ||
17862 test ! -s conftest.err
17863 } && test -s conftest$ac_exeext && {
17864 test "$cross_compiling" = yes ||
17865 $as_test_x conftest$ac_exeext
17866 }; then
17867 ac_cv_lib_nsl_gethostbyname=yes
17868else
17869 $as_echo "$as_me: failed program was:" >&5
17870sed 's/^/| /' conftest.$ac_ext >&5
17871
17872 ac_cv_lib_nsl_gethostbyname=no
17873fi
17874
17875rm -rf conftest.dSYM
17876rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17877 conftest$ac_exeext conftest.$ac_ext
17878LIBS=$ac_check_lib_save_LIBS
17879fi
17880{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
17881$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
17882if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
17883 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
17884fi
17885
17886 if test $ac_cv_lib_nsl_gethostbyname = no; then
17887 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
17888$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
17889if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
17890 $as_echo_n "(cached) " >&6
17891else
17892 ac_check_lib_save_LIBS=$LIBS
17893LIBS="-lbsd $LIBS"
17894cat >conftest.$ac_ext <<_ACEOF
17895/* confdefs.h. */
17896_ACEOF
17897cat confdefs.h >>conftest.$ac_ext
17898cat >>conftest.$ac_ext <<_ACEOF
17899/* end confdefs.h. */
17900
17901/* Override any GCC internal prototype to avoid an error.
17902 Use char because int might match the return type of a GCC
17903 builtin and then its argument prototype would still apply. */
17904#ifdef __cplusplus
17905extern "C"
17906#endif
17907char gethostbyname ();
17908int
17909main ()
17910{
17911return gethostbyname ();
17912 ;
17913 return 0;
17914}
17915_ACEOF
17916rm -f conftest.$ac_objext conftest$ac_exeext
17917if { (ac_try="$ac_link"
17918case "(($ac_try" in
17919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17920 *) ac_try_echo=$ac_try;;
17921esac
17922eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17923$as_echo "$ac_try_echo") >&5
17924 (eval "$ac_link") 2>conftest.er1
17925 ac_status=$?
17926 grep -v '^ *+' conftest.er1 >conftest.err
17927 rm -f conftest.er1
17928 cat conftest.err >&5
17929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17930 (exit $ac_status); } && {
17931 test -z "$ac_cxx_werror_flag" ||
17932 test ! -s conftest.err
17933 } && test -s conftest$ac_exeext && {
17934 test "$cross_compiling" = yes ||
17935 $as_test_x conftest$ac_exeext
17936 }; then
17937 ac_cv_lib_bsd_gethostbyname=yes
17938else
17939 $as_echo "$as_me: failed program was:" >&5
17940sed 's/^/| /' conftest.$ac_ext >&5
17941
17942 ac_cv_lib_bsd_gethostbyname=no
17943fi
17944
17945rm -rf conftest.dSYM
17946rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17947 conftest$ac_exeext conftest.$ac_ext
17948LIBS=$ac_check_lib_save_LIBS
17949fi
17950{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
17951$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
17952if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then
17953 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
17954fi
17955
17956 fi
17957 fi
17958
17959 # lieder@skyler.mavd.honeywell.com says without -lsocket,
17960 # socket/setsockopt and other routines are undefined under SCO ODT
17961 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
17962 # on later versions), says Simon Leinen: it contains gethostby*
17963 # variants that don't use the name server (or something). -lsocket
17964 # must be given before -lnsl if both are needed. We assume that
17965 # if connect needs -lnsl, so does gethostbyname.
17966 { $as_echo "$as_me:$LINENO: checking for connect" >&5
17967$as_echo_n "checking for connect... " >&6; }
17968if test "${ac_cv_func_connect+set}" = set; then
17969 $as_echo_n "(cached) " >&6
17970else
17971 cat >conftest.$ac_ext <<_ACEOF
17972/* confdefs.h. */
17973_ACEOF
17974cat confdefs.h >>conftest.$ac_ext
17975cat >>conftest.$ac_ext <<_ACEOF
17976/* end confdefs.h. */
17977/* Define connect to an innocuous variant, in case <limits.h> declares connect.
17978 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17979#define connect innocuous_connect
17980
17981/* System header to define __stub macros and hopefully few prototypes,
17982 which can conflict with char connect (); below.
17983 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17984 <limits.h> exists even on freestanding compilers. */
17985
17986#ifdef __STDC__
17987# include <limits.h>
17988#else
17989# include <assert.h>
17990#endif
17991
17992#undef connect
17993
17994/* Override any GCC internal prototype to avoid an error.
17995 Use char because int might match the return type of a GCC
17996 builtin and then its argument prototype would still apply. */
17997#ifdef __cplusplus
17998extern "C"
17999#endif
18000char connect ();
18001/* The GNU C library defines this for functions which it implements
18002 to always fail with ENOSYS. Some functions are actually named
18003 something starting with __ and the normal name is an alias. */
18004#if defined __stub_connect || defined __stub___connect
18005choke me
18006#endif
18007
18008int
18009main ()
18010{
18011return connect ();
18012 ;
18013 return 0;
18014}
18015_ACEOF
18016rm -f conftest.$ac_objext conftest$ac_exeext
18017if { (ac_try="$ac_link"
18018case "(($ac_try" in
18019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18020 *) ac_try_echo=$ac_try;;
18021esac
18022eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18023$as_echo "$ac_try_echo") >&5
18024 (eval "$ac_link") 2>conftest.er1
18025 ac_status=$?
18026 grep -v '^ *+' conftest.er1 >conftest.err
18027 rm -f conftest.er1
18028 cat conftest.err >&5
18029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18030 (exit $ac_status); } && {
18031 test -z "$ac_cxx_werror_flag" ||
18032 test ! -s conftest.err
18033 } && test -s conftest$ac_exeext && {
18034 test "$cross_compiling" = yes ||
18035 $as_test_x conftest$ac_exeext
18036 }; then
18037 ac_cv_func_connect=yes
18038else
18039 $as_echo "$as_me: failed program was:" >&5
18040sed 's/^/| /' conftest.$ac_ext >&5
18041
18042 ac_cv_func_connect=no
18043fi
18044
18045rm -rf conftest.dSYM
18046rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18047 conftest$ac_exeext conftest.$ac_ext
18048fi
18049{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
18050$as_echo "$ac_cv_func_connect" >&6; }
18051
18052 if test $ac_cv_func_connect = no; then
18053 { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
18054$as_echo_n "checking for connect in -lsocket... " >&6; }
18055if test "${ac_cv_lib_socket_connect+set}" = set; then
18056 $as_echo_n "(cached) " >&6
18057else
18058 ac_check_lib_save_LIBS=$LIBS
18059LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
18060cat >conftest.$ac_ext <<_ACEOF
18061/* confdefs.h. */
18062_ACEOF
18063cat confdefs.h >>conftest.$ac_ext
18064cat >>conftest.$ac_ext <<_ACEOF
18065/* end confdefs.h. */
18066
18067/* Override any GCC internal prototype to avoid an error.
18068 Use char because int might match the return type of a GCC
18069 builtin and then its argument prototype would still apply. */
18070#ifdef __cplusplus
18071extern "C"
18072#endif
18073char connect ();
18074int
18075main ()
18076{
18077return connect ();
18078 ;
18079 return 0;
18080}
18081_ACEOF
18082rm -f conftest.$ac_objext conftest$ac_exeext
18083if { (ac_try="$ac_link"
18084case "(($ac_try" in
18085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18086 *) ac_try_echo=$ac_try;;
18087esac
18088eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18089$as_echo "$ac_try_echo") >&5
18090 (eval "$ac_link") 2>conftest.er1
18091 ac_status=$?
18092 grep -v '^ *+' conftest.er1 >conftest.err
18093 rm -f conftest.er1
18094 cat conftest.err >&5
18095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18096 (exit $ac_status); } && {
18097 test -z "$ac_cxx_werror_flag" ||
18098 test ! -s conftest.err
18099 } && test -s conftest$ac_exeext && {
18100 test "$cross_compiling" = yes ||
18101 $as_test_x conftest$ac_exeext
18102 }; then
18103 ac_cv_lib_socket_connect=yes
18104else
18105 $as_echo "$as_me: failed program was:" >&5
18106sed 's/^/| /' conftest.$ac_ext >&5
18107
18108 ac_cv_lib_socket_connect=no
18109fi
18110
18111rm -rf conftest.dSYM
18112rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18113 conftest$ac_exeext conftest.$ac_ext
18114LIBS=$ac_check_lib_save_LIBS
18115fi
18116{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
18117$as_echo "$ac_cv_lib_socket_connect" >&6; }
18118if test "x$ac_cv_lib_socket_connect" = x""yes; then
18119 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
18120fi
18121
18122 fi
18123
18124 # Guillermo Gomez says -lposix is necessary on A/UX.
18125 { $as_echo "$as_me:$LINENO: checking for remove" >&5
18126$as_echo_n "checking for remove... " >&6; }
18127if test "${ac_cv_func_remove+set}" = set; then
18128 $as_echo_n "(cached) " >&6
18129else
18130 cat >conftest.$ac_ext <<_ACEOF
18131/* confdefs.h. */
18132_ACEOF
18133cat confdefs.h >>conftest.$ac_ext
18134cat >>conftest.$ac_ext <<_ACEOF
18135/* end confdefs.h. */
18136/* Define remove to an innocuous variant, in case <limits.h> declares remove.
18137 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18138#define remove innocuous_remove
18139
18140/* System header to define __stub macros and hopefully few prototypes,
18141 which can conflict with char remove (); below.
18142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18143 <limits.h> exists even on freestanding compilers. */
18144
18145#ifdef __STDC__
18146# include <limits.h>
18147#else
18148# include <assert.h>
18149#endif
18150
18151#undef remove
18152
18153/* Override any GCC internal prototype to avoid an error.
18154 Use char because int might match the return type of a GCC
18155 builtin and then its argument prototype would still apply. */
18156#ifdef __cplusplus
18157extern "C"
18158#endif
18159char remove ();
18160/* The GNU C library defines this for functions which it implements
18161 to always fail with ENOSYS. Some functions are actually named
18162 something starting with __ and the normal name is an alias. */
18163#if defined __stub_remove || defined __stub___remove
18164choke me
18165#endif
18166
18167int
18168main ()
18169{
18170return remove ();
18171 ;
18172 return 0;
18173}
18174_ACEOF
18175rm -f conftest.$ac_objext conftest$ac_exeext
18176if { (ac_try="$ac_link"
18177case "(($ac_try" in
18178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18179 *) ac_try_echo=$ac_try;;
18180esac
18181eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18182$as_echo "$ac_try_echo") >&5
18183 (eval "$ac_link") 2>conftest.er1
18184 ac_status=$?
18185 grep -v '^ *+' conftest.er1 >conftest.err
18186 rm -f conftest.er1
18187 cat conftest.err >&5
18188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189 (exit $ac_status); } && {
18190 test -z "$ac_cxx_werror_flag" ||
18191 test ! -s conftest.err
18192 } && test -s conftest$ac_exeext && {
18193 test "$cross_compiling" = yes ||
18194 $as_test_x conftest$ac_exeext
18195 }; then
18196 ac_cv_func_remove=yes
18197else
18198 $as_echo "$as_me: failed program was:" >&5
18199sed 's/^/| /' conftest.$ac_ext >&5
18200
18201 ac_cv_func_remove=no
18202fi
18203
18204rm -rf conftest.dSYM
18205rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18206 conftest$ac_exeext conftest.$ac_ext
18207fi
18208{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
18209$as_echo "$ac_cv_func_remove" >&6; }
18210
18211 if test $ac_cv_func_remove = no; then
18212 { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5
18213$as_echo_n "checking for remove in -lposix... " >&6; }
18214if test "${ac_cv_lib_posix_remove+set}" = set; then
18215 $as_echo_n "(cached) " >&6
18216else
18217 ac_check_lib_save_LIBS=$LIBS
18218LIBS="-lposix $LIBS"
18219cat >conftest.$ac_ext <<_ACEOF
18220/* confdefs.h. */
18221_ACEOF
18222cat confdefs.h >>conftest.$ac_ext
18223cat >>conftest.$ac_ext <<_ACEOF
18224/* end confdefs.h. */
18225
18226/* Override any GCC internal prototype to avoid an error.
18227 Use char because int might match the return type of a GCC
18228 builtin and then its argument prototype would still apply. */
18229#ifdef __cplusplus
18230extern "C"
18231#endif
18232char remove ();
18233int
18234main ()
18235{
18236return remove ();
18237 ;
18238 return 0;
18239}
18240_ACEOF
18241rm -f conftest.$ac_objext conftest$ac_exeext
18242if { (ac_try="$ac_link"
18243case "(($ac_try" in
18244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18245 *) ac_try_echo=$ac_try;;
18246esac
18247eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18248$as_echo "$ac_try_echo") >&5
18249 (eval "$ac_link") 2>conftest.er1
18250 ac_status=$?
18251 grep -v '^ *+' conftest.er1 >conftest.err
18252 rm -f conftest.er1
18253 cat conftest.err >&5
18254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255 (exit $ac_status); } && {
18256 test -z "$ac_cxx_werror_flag" ||
18257 test ! -s conftest.err
18258 } && test -s conftest$ac_exeext && {
18259 test "$cross_compiling" = yes ||
18260 $as_test_x conftest$ac_exeext
18261 }; then
18262 ac_cv_lib_posix_remove=yes
18263else
18264 $as_echo "$as_me: failed program was:" >&5
18265sed 's/^/| /' conftest.$ac_ext >&5
18266
18267 ac_cv_lib_posix_remove=no
18268fi
18269
18270rm -rf conftest.dSYM
18271rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18272 conftest$ac_exeext conftest.$ac_ext
18273LIBS=$ac_check_lib_save_LIBS
18274fi
18275{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
18276$as_echo "$ac_cv_lib_posix_remove" >&6; }
18277if test "x$ac_cv_lib_posix_remove" = x""yes; then
18278 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
18279fi
18280
18281 fi
18282
18283 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
18284 { $as_echo "$as_me:$LINENO: checking for shmat" >&5
18285$as_echo_n "checking for shmat... " >&6; }
18286if test "${ac_cv_func_shmat+set}" = set; then
18287 $as_echo_n "(cached) " >&6
18288else
18289 cat >conftest.$ac_ext <<_ACEOF
18290/* confdefs.h. */
18291_ACEOF
18292cat confdefs.h >>conftest.$ac_ext
18293cat >>conftest.$ac_ext <<_ACEOF
18294/* end confdefs.h. */
18295/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
18296 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18297#define shmat innocuous_shmat
18298
18299/* System header to define __stub macros and hopefully few prototypes,
18300 which can conflict with char shmat (); below.
18301 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18302 <limits.h> exists even on freestanding compilers. */
18303
18304#ifdef __STDC__
18305# include <limits.h>
18306#else
18307# include <assert.h>
18308#endif
18309
18310#undef shmat
18311
18312/* Override any GCC internal prototype to avoid an error.
18313 Use char because int might match the return type of a GCC
18314 builtin and then its argument prototype would still apply. */
18315#ifdef __cplusplus
18316extern "C"
18317#endif
18318char shmat ();
18319/* The GNU C library defines this for functions which it implements
18320 to always fail with ENOSYS. Some functions are actually named
18321 something starting with __ and the normal name is an alias. */
18322#if defined __stub_shmat || defined __stub___shmat
18323choke me
18324#endif
18325
18326int
18327main ()
18328{
18329return shmat ();
18330 ;
18331 return 0;
18332}
18333_ACEOF
18334rm -f conftest.$ac_objext conftest$ac_exeext
18335if { (ac_try="$ac_link"
18336case "(($ac_try" in
18337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18338 *) ac_try_echo=$ac_try;;
18339esac
18340eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18341$as_echo "$ac_try_echo") >&5
18342 (eval "$ac_link") 2>conftest.er1
18343 ac_status=$?
18344 grep -v '^ *+' conftest.er1 >conftest.err
18345 rm -f conftest.er1
18346 cat conftest.err >&5
18347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348 (exit $ac_status); } && {
18349 test -z "$ac_cxx_werror_flag" ||
18350 test ! -s conftest.err
18351 } && test -s conftest$ac_exeext && {
18352 test "$cross_compiling" = yes ||
18353 $as_test_x conftest$ac_exeext
18354 }; then
18355 ac_cv_func_shmat=yes
18356else
18357 $as_echo "$as_me: failed program was:" >&5
18358sed 's/^/| /' conftest.$ac_ext >&5
18359
18360 ac_cv_func_shmat=no
18361fi
18362
18363rm -rf conftest.dSYM
18364rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18365 conftest$ac_exeext conftest.$ac_ext
18366fi
18367{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
18368$as_echo "$ac_cv_func_shmat" >&6; }
18369
18370 if test $ac_cv_func_shmat = no; then
18371 { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
18372$as_echo_n "checking for shmat in -lipc... " >&6; }
18373if test "${ac_cv_lib_ipc_shmat+set}" = set; then
18374 $as_echo_n "(cached) " >&6
18375else
18376 ac_check_lib_save_LIBS=$LIBS
18377LIBS="-lipc $LIBS"
18378cat >conftest.$ac_ext <<_ACEOF
18379/* confdefs.h. */
18380_ACEOF
18381cat confdefs.h >>conftest.$ac_ext
18382cat >>conftest.$ac_ext <<_ACEOF
18383/* end confdefs.h. */
18384
18385/* Override any GCC internal prototype to avoid an error.
18386 Use char because int might match the return type of a GCC
18387 builtin and then its argument prototype would still apply. */
18388#ifdef __cplusplus
18389extern "C"
18390#endif
18391char shmat ();
18392int
18393main ()
18394{
18395return shmat ();
18396 ;
18397 return 0;
18398}
18399_ACEOF
18400rm -f conftest.$ac_objext conftest$ac_exeext
18401if { (ac_try="$ac_link"
18402case "(($ac_try" in
18403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18404 *) ac_try_echo=$ac_try;;
18405esac
18406eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18407$as_echo "$ac_try_echo") >&5
18408 (eval "$ac_link") 2>conftest.er1
18409 ac_status=$?
18410 grep -v '^ *+' conftest.er1 >conftest.err
18411 rm -f conftest.er1
18412 cat conftest.err >&5
18413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18414 (exit $ac_status); } && {
18415 test -z "$ac_cxx_werror_flag" ||
18416 test ! -s conftest.err
18417 } && test -s conftest$ac_exeext && {
18418 test "$cross_compiling" = yes ||
18419 $as_test_x conftest$ac_exeext
18420 }; then
18421 ac_cv_lib_ipc_shmat=yes
18422else
18423 $as_echo "$as_me: failed program was:" >&5
18424sed 's/^/| /' conftest.$ac_ext >&5
18425
18426 ac_cv_lib_ipc_shmat=no
18427fi
18428
18429rm -rf conftest.dSYM
18430rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18431 conftest$ac_exeext conftest.$ac_ext
18432LIBS=$ac_check_lib_save_LIBS
18433fi
18434{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
18435$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
18436if test "x$ac_cv_lib_ipc_shmat" = x""yes; then
18437 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
18438fi
18439
18440 fi
18441 fi
18442
18443 # Check for libraries that X11R6 Xt/Xaw programs need.
18444 ac_save_LDFLAGS=$LDFLAGS
18445 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
18446 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
18447 # check for ICE first), but we must link in the order -lSM -lICE or
18448 # we get undefined symbols. So assume we have SM if we have ICE.
18449 # These have to be linked with before -lX11, unlike the other
18450 # libraries we check for below, so use a different variable.
18451 # John Interrante, Karl Berry
18452 { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
18453$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
18454if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
18455 $as_echo_n "(cached) " >&6
18456else
18457 ac_check_lib_save_LIBS=$LIBS
18458LIBS="-lICE $X_EXTRA_LIBS $LIBS"
18459cat >conftest.$ac_ext <<_ACEOF
18460/* confdefs.h. */
18461_ACEOF
18462cat confdefs.h >>conftest.$ac_ext
18463cat >>conftest.$ac_ext <<_ACEOF
18464/* end confdefs.h. */
18465
18466/* Override any GCC internal prototype to avoid an error.
18467 Use char because int might match the return type of a GCC
18468 builtin and then its argument prototype would still apply. */
18469#ifdef __cplusplus
18470extern "C"
18471#endif
18472char IceConnectionNumber ();
18473int
18474main ()
18475{
18476return IceConnectionNumber ();
18477 ;
18478 return 0;
18479}
18480_ACEOF
18481rm -f conftest.$ac_objext conftest$ac_exeext
18482if { (ac_try="$ac_link"
18483case "(($ac_try" in
18484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18485 *) ac_try_echo=$ac_try;;
18486esac
18487eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18488$as_echo "$ac_try_echo") >&5
18489 (eval "$ac_link") 2>conftest.er1
18490 ac_status=$?
18491 grep -v '^ *+' conftest.er1 >conftest.err
18492 rm -f conftest.er1
18493 cat conftest.err >&5
18494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18495 (exit $ac_status); } && {
18496 test -z "$ac_cxx_werror_flag" ||
18497 test ! -s conftest.err
18498 } && test -s conftest$ac_exeext && {
18499 test "$cross_compiling" = yes ||
18500 $as_test_x conftest$ac_exeext
18501 }; then
18502 ac_cv_lib_ICE_IceConnectionNumber=yes
18503else
18504 $as_echo "$as_me: failed program was:" >&5
18505sed 's/^/| /' conftest.$ac_ext >&5
18506
18507 ac_cv_lib_ICE_IceConnectionNumber=no
18508fi
18509
18510rm -rf conftest.dSYM
18511rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18512 conftest$ac_exeext conftest.$ac_ext
18513LIBS=$ac_check_lib_save_LIBS
18514fi
18515{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
18516$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
18517if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then
18518 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
18519fi
18520
18521 LDFLAGS=$ac_save_LDFLAGS
18522
18523fi
18524
18525
18526# Check whether --enable-vncconfig was given.
18527if test "${enable_vncconfig+set}" = set; then
18528 enableval=$enable_vncconfig;
18529fi
18530
18531if test "$enable_vncconfig" = no; then
18532 echo "vncconfig utility will not be built"
18533 VNCCONFIG_DIR=
18534else
18535 VNCCONFIG_DIR='vncconfig'
18536fi
18537
18538
18539{ $as_echo "$as_me:$LINENO: checking for XTestGrabControl in -lXtst" >&5
18540$as_echo_n "checking for XTestGrabControl in -lXtst... " >&6; }
18541if test "${ac_cv_lib_Xtst_XTestGrabControl+set}" = set; then
18542 $as_echo_n "(cached) " >&6
18543else
18544 ac_check_lib_save_LIBS=$LIBS
18545LIBS="-lXtst "$X_LIBS" -lXext -lX11 $LIBS"
18546cat >conftest.$ac_ext <<_ACEOF
18547/* confdefs.h. */
18548_ACEOF
18549cat confdefs.h >>conftest.$ac_ext
18550cat >>conftest.$ac_ext <<_ACEOF
18551/* end confdefs.h. */
18552
18553/* Override any GCC internal prototype to avoid an error.
18554 Use char because int might match the return type of a GCC
18555 builtin and then its argument prototype would still apply. */
18556#ifdef __cplusplus
18557extern "C"
18558#endif
18559char XTestGrabControl ();
18560int
18561main ()
18562{
18563return XTestGrabControl ();
18564 ;
18565 return 0;
18566}
18567_ACEOF
18568rm -f conftest.$ac_objext conftest$ac_exeext
18569if { (ac_try="$ac_link"
18570case "(($ac_try" in
18571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18572 *) ac_try_echo=$ac_try;;
18573esac
18574eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18575$as_echo "$ac_try_echo") >&5
18576 (eval "$ac_link") 2>conftest.er1
18577 ac_status=$?
18578 grep -v '^ *+' conftest.er1 >conftest.err
18579 rm -f conftest.er1
18580 cat conftest.err >&5
18581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18582 (exit $ac_status); } && {
18583 test -z "$ac_cxx_werror_flag" ||
18584 test ! -s conftest.err
18585 } && test -s conftest$ac_exeext && {
18586 test "$cross_compiling" = yes ||
18587 $as_test_x conftest$ac_exeext
18588 }; then
18589 ac_cv_lib_Xtst_XTestGrabControl=yes
18590else
18591 $as_echo "$as_me: failed program was:" >&5
18592sed 's/^/| /' conftest.$ac_ext >&5
18593
18594 ac_cv_lib_Xtst_XTestGrabControl=no
18595fi
18596
18597rm -rf conftest.dSYM
18598rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18599 conftest$ac_exeext conftest.$ac_ext
18600LIBS=$ac_check_lib_save_LIBS
18601fi
18602{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestGrabControl" >&5
18603$as_echo "$ac_cv_lib_Xtst_XTestGrabControl" >&6; }
18604if test "x$ac_cv_lib_Xtst_XTestGrabControl" = x""yes; then
18605 USE_XTEST=yes
18606else
18607 USE_XTEST=
18608fi
18609
18610if test "$USE_XTEST" = yes; then
18611 XTEST_DEFINE='-DHAVE_XTEST'
18612 XTEST_LIB=-lXtst
18613else
18614 echo Warning: No XTest extension, building x0vncserver view-only
18615 XTEST_DEFINE=
18616 XTEST_LIB=
18617fi
18618
18619
18620
18621if test "$USE_READDISPLAY" = yes; then
18622 READDISPLAY_DEFINE='-DHAVE_READDISPLAY'
18623elif test "$USE_SUN_OVL" = yes; then
18624 READDISPLAY_DEFINE='-DHAVE_SUN_OVL'
18625else
18626 READDISPLAY_DEFINE=
18627fi
18628
18629
18630
18631ac_ext=c
18632ac_cpp='$CPP $CPPFLAGS'
18633ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18634ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18635ac_compiler_gnu=$ac_cv_c_compiler_gnu
18636
18637{ $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
18638$as_echo_n "checking for gethostbyname... " >&6; }
18639if test "${ac_cv_func_gethostbyname+set}" = set; then
18640 $as_echo_n "(cached) " >&6
18641else
18642 cat >conftest.$ac_ext <<_ACEOF
18643/* confdefs.h. */
18644_ACEOF
18645cat confdefs.h >>conftest.$ac_ext
18646cat >>conftest.$ac_ext <<_ACEOF
18647/* end confdefs.h. */
18648/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
18649 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18650#define gethostbyname innocuous_gethostbyname
18651
18652/* System header to define __stub macros and hopefully few prototypes,
18653 which can conflict with char gethostbyname (); below.
18654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18655 <limits.h> exists even on freestanding compilers. */
18656
18657#ifdef __STDC__
18658# include <limits.h>
18659#else
18660# include <assert.h>
18661#endif
18662
18663#undef gethostbyname
18664
18665/* Override any GCC internal prototype to avoid an error.
18666 Use char because int might match the return type of a GCC
18667 builtin and then its argument prototype would still apply. */
18668#ifdef __cplusplus
18669extern "C"
18670#endif
18671char gethostbyname ();
18672/* The GNU C library defines this for functions which it implements
18673 to always fail with ENOSYS. Some functions are actually named
18674 something starting with __ and the normal name is an alias. */
18675#if defined __stub_gethostbyname || defined __stub___gethostbyname
18676choke me
18677#endif
18678
18679int
18680main ()
18681{
18682return gethostbyname ();
18683 ;
18684 return 0;
18685}
18686_ACEOF
18687rm -f conftest.$ac_objext conftest$ac_exeext
18688if { (ac_try="$ac_link"
18689case "(($ac_try" in
18690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18691 *) ac_try_echo=$ac_try;;
18692esac
18693eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18694$as_echo "$ac_try_echo") >&5
18695 (eval "$ac_link") 2>conftest.er1
18696 ac_status=$?
18697 grep -v '^ *+' conftest.er1 >conftest.err
18698 rm -f conftest.er1
18699 cat conftest.err >&5
18700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18701 (exit $ac_status); } && {
18702 test -z "$ac_c_werror_flag" ||
18703 test ! -s conftest.err
18704 } && test -s conftest$ac_exeext && {
18705 test "$cross_compiling" = yes ||
18706 $as_test_x conftest$ac_exeext
18707 }; then
18708 ac_cv_func_gethostbyname=yes
18709else
18710 $as_echo "$as_me: failed program was:" >&5
18711sed 's/^/| /' conftest.$ac_ext >&5
18712
18713 ac_cv_func_gethostbyname=no
18714fi
18715
18716rm -rf conftest.dSYM
18717rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18718 conftest$ac_exeext conftest.$ac_ext
18719fi
18720{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
18721$as_echo "$ac_cv_func_gethostbyname" >&6; }
18722if test "x$ac_cv_func_gethostbyname" = x""yes; then
18723 INET_LIB_REQ=
18724else
18725 INET_LIB_REQ=yes
18726fi
18727
18728if test "$INET_LIB_REQ" = yes; then
18729 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
18730$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
18731if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
18732 $as_echo_n "(cached) " >&6
18733else
18734 ac_check_lib_save_LIBS=$LIBS
18735LIBS="-lbsd $LIBS"
18736cat >conftest.$ac_ext <<_ACEOF
18737/* confdefs.h. */
18738_ACEOF
18739cat confdefs.h >>conftest.$ac_ext
18740cat >>conftest.$ac_ext <<_ACEOF
18741/* end confdefs.h. */
18742
18743/* Override any GCC internal prototype to avoid an error.
18744 Use char because int might match the return type of a GCC
18745 builtin and then its argument prototype would still apply. */
18746#ifdef __cplusplus
18747extern "C"
18748#endif
18749char gethostbyname ();
18750int
18751main ()
18752{
18753return gethostbyname ();
18754 ;
18755 return 0;
18756}
18757_ACEOF
18758rm -f conftest.$ac_objext conftest$ac_exeext
18759if { (ac_try="$ac_link"
18760case "(($ac_try" in
18761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18762 *) ac_try_echo=$ac_try;;
18763esac
18764eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18765$as_echo "$ac_try_echo") >&5
18766 (eval "$ac_link") 2>conftest.er1
18767 ac_status=$?
18768 grep -v '^ *+' conftest.er1 >conftest.err
18769 rm -f conftest.er1
18770 cat conftest.err >&5
18771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772 (exit $ac_status); } && {
18773 test -z "$ac_c_werror_flag" ||
18774 test ! -s conftest.err
18775 } && test -s conftest$ac_exeext && {
18776 test "$cross_compiling" = yes ||
18777 $as_test_x conftest$ac_exeext
18778 }; then
18779 ac_cv_lib_bsd_gethostbyname=yes
18780else
18781 $as_echo "$as_me: failed program was:" >&5
18782sed 's/^/| /' conftest.$ac_ext >&5
18783
18784 ac_cv_lib_bsd_gethostbyname=no
18785fi
18786
18787rm -rf conftest.dSYM
18788rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18789 conftest$ac_exeext conftest.$ac_ext
18790LIBS=$ac_check_lib_save_LIBS
18791fi
18792{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
18793$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
18794if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then
18795 INET_LIB=-lbsd
18796else
18797 INET_LIB=
18798fi
18799
18800fi
18801ac_ext=cpp
18802ac_cpp='$CXXCPP $CPPFLAGS'
18803ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18804ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18805ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18806
18807
18808
18809ac_config_files="$ac_config_files Makefile tx/Makefile x0vncserver/Makefile vncviewer/Makefile vncconfig/Makefile vncpasswd/Makefile po/Makefile.in"
18810
18811cat >confcache <<\_ACEOF
18812# This file is a shell script that caches the results of configure
18813# tests run on this system so they can be shared between configure
18814# scripts and configure runs, see configure's option --config-cache.
18815# It is not useful on other systems. If it contains results you don't
18816# want to keep, you may remove or edit it.
18817#
18818# config.status only pays attention to the cache file if you give it
18819# the --recheck option to rerun configure.
18820#
18821# `ac_cv_env_foo' variables (set or unset) will be overridden when
18822# loading this file, other *unset* `ac_cv_foo' will be assigned the
18823# following values.
18824
18825_ACEOF
18826
18827# The following way of writing the cache mishandles newlines in values,
18828# but we know of no workaround that is simple, portable, and efficient.
18829# So, we kill variables containing newlines.
18830# Ultrix sh set writes to stderr and can't be redirected directly,
18831# and sets the high bit in the cache file unless we assign to the vars.
18832(
18833 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18834 eval ac_val=\$$ac_var
18835 case $ac_val in #(
18836 *${as_nl}*)
18837 case $ac_var in #(
18838 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
18839$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18840 esac
18841 case $ac_var in #(
18842 _ | IFS | as_nl) ;; #(
18843 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18844 *) $as_unset $ac_var ;;
18845 esac ;;
18846 esac
18847 done
18848
18849 (set) 2>&1 |
18850 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18851 *${as_nl}ac_space=\ *)
18852 # `set' does not quote correctly, so add quotes (double-quote
18853 # substitution turns \\\\ into \\, and sed turns \\ into \).
18854 sed -n \
18855 "s/'/'\\\\''/g;
18856 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18857 ;; #(
18858 *)
18859 # `set' quotes correctly as required by POSIX, so do not add quotes.
18860 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18861 ;;
18862 esac |
18863 sort
18864) |
18865 sed '
18866 /^ac_cv_env_/b end
18867 t clear
18868 :clear
18869 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18870 t end
18871 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18872 :end' >>confcache
18873if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18874 if test -w "$cache_file"; then
18875 test "x$cache_file" != "x/dev/null" &&
18876 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
18877$as_echo "$as_me: updating cache $cache_file" >&6;}
18878 cat confcache >$cache_file
18879 else
18880 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18881$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18882 fi
18883fi
18884rm -f confcache
18885
18886test "x$prefix" = xNONE && prefix=$ac_default_prefix
18887# Let make expand exec_prefix.
18888test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18889
18890# Transform confdefs.h into DEFS.
18891# Protect against shell expansion while executing Makefile rules.
18892# Protect against Makefile macro expansion.
18893#
18894# If the first sed substitution is executed (which looks for macros that
18895# take arguments), then branch to the quote section. Otherwise,
18896# look for a macro that doesn't take arguments.
18897ac_script='
18898:mline
18899/\\$/{
18900 N
18901 s,\\\n,,
18902 b mline
18903}
18904t clear
18905:clear
18906s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
18907t quote
18908s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
18909t quote
18910b any
18911:quote
18912s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
18913s/\[/\\&/g
18914s/\]/\\&/g
18915s/\$/$$/g
18916H
18917:any
18918${
18919 g
18920 s/^\n//
18921 s/\n/ /g
18922 p
18923}
18924'
18925DEFS=`sed -n "$ac_script" confdefs.h`
18926
18927
18928ac_libobjs=
18929ac_ltlibobjs=
18930for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18931 # 1. Remove the extension, and $U if already installed.
18932 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18933 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18934 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18935 # will be set to the directory where LIBOBJS objects are built.
18936 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18937 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
18938done
18939LIBOBJS=$ac_libobjs
18940
18941LTLIBOBJS=$ac_ltlibobjs
18942
18943
18944if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18945 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
18946Usually this means the macro was only invoked conditionally." >&5
18947$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
18948Usually this means the macro was only invoked conditionally." >&2;}
18949 { (exit 1); exit 1; }; }
18950fi
18951if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18952 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
18953Usually this means the macro was only invoked conditionally." >&5
18954$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
18955Usually this means the macro was only invoked conditionally." >&2;}
18956 { (exit 1); exit 1; }; }
18957fi
18958if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18959 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
18960Usually this means the macro was only invoked conditionally." >&5
18961$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
18962Usually this means the macro was only invoked conditionally." >&2;}
18963 { (exit 1); exit 1; }; }
18964fi
18965if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18966 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
18967Usually this means the macro was only invoked conditionally." >&5
18968$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
18969Usually this means the macro was only invoked conditionally." >&2;}
18970 { (exit 1); exit 1; }; }
18971fi
18972
18973: ${CONFIG_STATUS=./config.status}
18974ac_write_fail=0
18975ac_clean_files_save=$ac_clean_files
18976ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18977{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18978$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18979cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18980#! $SHELL
18981# Generated by $as_me.
18982# Run this file to recreate the current configuration.
18983# Compiler output produced by configure, useful for debugging
18984# configure, is in config.log if it exists.
18985
18986debug=false
18987ac_cs_recheck=false
18988ac_cs_silent=false
18989SHELL=\${CONFIG_SHELL-$SHELL}
18990_ACEOF
18991
18992cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18993## --------------------- ##
18994## M4sh Initialization. ##
18995## --------------------- ##
18996
18997# Be more Bourne compatible
18998DUALCASE=1; export DUALCASE # for MKS sh
18999if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19000 emulate sh
19001 NULLCMD=:
19002 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19003 # is contrary to our usage. Disable this feature.
19004 alias -g '${1+"$@"}'='"$@"'
19005 setopt NO_GLOB_SUBST
19006else
19007 case `(set -o) 2>/dev/null` in
19008 *posix*) set -o posix ;;
19009esac
19010
19011fi
19012
19013
19014
19015
19016# PATH needs CR
19017# Avoid depending upon Character Ranges.
19018as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19019as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19020as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19021as_cr_digits='0123456789'
19022as_cr_alnum=$as_cr_Letters$as_cr_digits
19023
19024as_nl='
19025'
19026export as_nl
19027# Printing a long string crashes Solaris 7 /usr/bin/printf.
19028as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19029as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19030as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19031if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19032 as_echo='printf %s\n'
19033 as_echo_n='printf %s'
19034else
19035 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19036 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19037 as_echo_n='/usr/ucb/echo -n'
19038 else
19039 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19040 as_echo_n_body='eval
19041 arg=$1;
19042 case $arg in
19043 *"$as_nl"*)
19044 expr "X$arg" : "X\\(.*\\)$as_nl";
19045 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19046 esac;
19047 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19048 '
19049 export as_echo_n_body
19050 as_echo_n='sh -c $as_echo_n_body as_echo'
19051 fi
19052 export as_echo_body
19053 as_echo='sh -c $as_echo_body as_echo'
19054fi
19055
19056# The user is always right.
19057if test "${PATH_SEPARATOR+set}" != set; then
19058 PATH_SEPARATOR=:
19059 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19060 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19061 PATH_SEPARATOR=';'
19062 }
19063fi
19064
19065# Support unset when possible.
19066if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19067 as_unset=unset
19068else
19069 as_unset=false
19070fi
19071
19072
19073# IFS
19074# We need space, tab and new line, in precisely that order. Quoting is
19075# there to prevent editors from complaining about space-tab.
19076# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19077# splitting by setting IFS to empty value.)
19078IFS=" "" $as_nl"
19079
19080# Find who we are. Look in the path if we contain no directory separator.
19081case $0 in
19082 *[\\/]* ) as_myself=$0 ;;
19083 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19084for as_dir in $PATH
19085do
19086 IFS=$as_save_IFS
19087 test -z "$as_dir" && as_dir=.
19088 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19089done
19090IFS=$as_save_IFS
19091
19092 ;;
19093esac
19094# We did not find ourselves, most probably we were run as `sh COMMAND'
19095# in which case we are not to be found in the path.
19096if test "x$as_myself" = x; then
19097 as_myself=$0
19098fi
19099if test ! -f "$as_myself"; then
19100 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19101 { (exit 1); exit 1; }
19102fi
19103
19104# Work around bugs in pre-3.0 UWIN ksh.
19105for as_var in ENV MAIL MAILPATH
19106do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19107done
19108PS1='$ '
19109PS2='> '
19110PS4='+ '
19111
19112# NLS nuisances.
19113LC_ALL=C
19114export LC_ALL
19115LANGUAGE=C
19116export LANGUAGE
19117
19118# Required to use basename.
19119if expr a : '\(a\)' >/dev/null 2>&1 &&
19120 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19121 as_expr=expr
19122else
19123 as_expr=false
19124fi
19125
19126if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19127 as_basename=basename
19128else
19129 as_basename=false
19130fi
19131
19132
19133# Name of the executable.
19134as_me=`$as_basename -- "$0" ||
19135$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19136 X"$0" : 'X\(//\)$' \| \
19137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19138$as_echo X/"$0" |
19139 sed '/^.*\/\([^/][^/]*\)\/*$/{
19140 s//\1/
19141 q
19142 }
19143 /^X\/\(\/\/\)$/{
19144 s//\1/
19145 q
19146 }
19147 /^X\/\(\/\).*/{
19148 s//\1/
19149 q
19150 }
19151 s/.*/./; q'`
19152
19153# CDPATH.
19154$as_unset CDPATH
19155
19156
19157
19158 as_lineno_1=$LINENO
19159 as_lineno_2=$LINENO
19160 test "x$as_lineno_1" != "x$as_lineno_2" &&
19161 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
19162
19163 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19164 # uniformly replaced by the line number. The first 'sed' inserts a
19165 # line-number line after each line using $LINENO; the second 'sed'
19166 # does the real work. The second script uses 'N' to pair each
19167 # line-number line with the line containing $LINENO, and appends
19168 # trailing '-' during substitution so that $LINENO is not a special
19169 # case at line end.
19170 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19171 # scripts with optimization help from Paolo Bonzini. Blame Lee
19172 # E. McMahon (1931-1989) for sed's syntax. :-)
19173 sed -n '
19174 p
19175 /[$]LINENO/=
19176 ' <$as_myself |
19177 sed '
19178 s/[$]LINENO.*/&-/
19179 t lineno
19180 b
19181 :lineno
19182 N
19183 :loop
19184 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
19185 t loop
19186 s/-\n.*//
19187 ' >$as_me.lineno &&
19188 chmod +x "$as_me.lineno" ||
19189 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
19190 { (exit 1); exit 1; }; }
19191
19192 # Don't try to exec as it changes $[0], causing all sort of problems
19193 # (the dirname of $[0] is not the place where we might find the
19194 # original and so on. Autoconf is especially sensitive to this).
19195 . "./$as_me.lineno"
19196 # Exit status is that of the last command.
19197 exit
19198}
19199
19200
19201if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19202 as_dirname=dirname
19203else
19204 as_dirname=false
19205fi
19206
19207ECHO_C= ECHO_N= ECHO_T=
19208case `echo -n x` in
19209-n*)
19210 case `echo 'x\c'` in
19211 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19212 *) ECHO_C='\c';;
19213 esac;;
19214*)
19215 ECHO_N='-n';;
19216esac
19217if expr a : '\(a\)' >/dev/null 2>&1 &&
19218 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19219 as_expr=expr
19220else
19221 as_expr=false
19222fi
19223
19224rm -f conf$$ conf$$.exe conf$$.file
19225if test -d conf$$.dir; then
19226 rm -f conf$$.dir/conf$$.file
19227else
19228 rm -f conf$$.dir
19229 mkdir conf$$.dir 2>/dev/null
19230fi
19231if (echo >conf$$.file) 2>/dev/null; then
19232 if ln -s conf$$.file conf$$ 2>/dev/null; then
19233 as_ln_s='ln -s'
19234 # ... but there are two gotchas:
19235 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19236 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19237 # In both cases, we have to default to `cp -p'.
19238 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19239 as_ln_s='cp -p'
19240 elif ln conf$$.file conf$$ 2>/dev/null; then
19241 as_ln_s=ln
19242 else
19243 as_ln_s='cp -p'
19244 fi
19245else
19246 as_ln_s='cp -p'
19247fi
19248rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19249rmdir conf$$.dir 2>/dev/null
19250
19251if mkdir -p . 2>/dev/null; then
19252 as_mkdir_p=:
19253else
19254 test -d ./-p && rmdir ./-p
19255 as_mkdir_p=false
19256fi
19257
19258if test -x / >/dev/null 2>&1; then
19259 as_test_x='test -x'
19260else
19261 if ls -dL / >/dev/null 2>&1; then
19262 as_ls_L_option=L
19263 else
19264 as_ls_L_option=
19265 fi
19266 as_test_x='
19267 eval sh -c '\''
19268 if test -d "$1"; then
19269 test -d "$1/.";
19270 else
19271 case $1 in
19272 -*)set "./$1";;
19273 esac;
19274 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
19275 ???[sx]*):;;*)false;;esac;fi
19276 '\'' sh
19277 '
19278fi
19279as_executable_p=$as_test_x
19280
19281# Sed expression to map a string onto a valid CPP name.
19282as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19283
19284# Sed expression to map a string onto a valid variable name.
19285as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19286
19287
19288exec 6>&1
19289
19290# Save the log message, to keep $[0] and so on meaningful, and to
19291# report actual input values of CONFIG_FILES etc. instead of their
19292# values after options handling.
19293ac_log="
19294This file was extended by tigervnc $as_me 0.0.90, which was
19295generated by GNU Autoconf 2.63. Invocation command line was
19296
19297 CONFIG_FILES = $CONFIG_FILES
19298 CONFIG_HEADERS = $CONFIG_HEADERS
19299 CONFIG_LINKS = $CONFIG_LINKS
19300 CONFIG_COMMANDS = $CONFIG_COMMANDS
19301 $ $0 $@
19302
19303on `(hostname || uname -n) 2>/dev/null | sed 1q`
19304"
19305
19306_ACEOF
19307
19308case $ac_config_files in *"
19309"*) set x $ac_config_files; shift; ac_config_files=$*;;
19310esac
19311
19312
19313
19314cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19315# Files that config.status was made for.
19316config_files="$ac_config_files"
19317config_commands="$ac_config_commands"
19318
19319_ACEOF
19320
19321cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19322ac_cs_usage="\
19323\`$as_me' instantiates files from templates according to the
19324current configuration.
19325
19326Usage: $0 [OPTION]... [FILE]...
19327
19328 -h, --help print this help, then exit
19329 -V, --version print version number and configuration settings, then exit
19330 -q, --quiet, --silent
19331 do not print progress messages
19332 -d, --debug don't remove temporary files
19333 --recheck update $as_me by reconfiguring in the same conditions
19334 --file=FILE[:TEMPLATE]
19335 instantiate the configuration file FILE
19336
19337Configuration files:
19338$config_files
19339
19340Configuration commands:
19341$config_commands
19342
19343Report bugs to <bug-autoconf@gnu.org>."
19344
19345_ACEOF
19346cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19347ac_cs_version="\\
19348tigervnc config.status 0.0.90
19349configured by $0, generated by GNU Autoconf 2.63,
19350 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
19351
19352Copyright (C) 2008 Free Software Foundation, Inc.
19353This config.status script is free software; the Free Software Foundation
19354gives unlimited permission to copy, distribute and modify it."
19355
19356ac_pwd='$ac_pwd'
19357srcdir='$srcdir'
19358INSTALL='$INSTALL'
19359MKDIR_P='$MKDIR_P'
19360AWK='$AWK'
19361test -n "\$AWK" || AWK=awk
19362_ACEOF
19363
19364cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19365# The default lists apply if the user does not specify any file.
19366ac_need_defaults=:
19367while test $# != 0
19368do
19369 case $1 in
19370 --*=*)
19371 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19372 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19373 ac_shift=:
19374 ;;
19375 *)
19376 ac_option=$1
19377 ac_optarg=$2
19378 ac_shift=shift
19379 ;;
19380 esac
19381
19382 case $ac_option in
19383 # Handling of the options.
19384 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19385 ac_cs_recheck=: ;;
19386 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19387 $as_echo "$ac_cs_version"; exit ;;
19388 --debug | --debu | --deb | --de | --d | -d )
19389 debug=: ;;
19390 --file | --fil | --fi | --f )
19391 $ac_shift
19392 case $ac_optarg in
19393 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19394 esac
19395 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
19396 ac_need_defaults=false;;
19397 --he | --h | --help | --hel | -h )
19398 $as_echo "$ac_cs_usage"; exit ;;
19399 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19400 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19401 ac_cs_silent=: ;;
19402
19403 # This is an error.
19404 -*) { $as_echo "$as_me: error: unrecognized option: $1
19405Try \`$0 --help' for more information." >&2
19406 { (exit 1); exit 1; }; } ;;
19407
19408 *) ac_config_targets="$ac_config_targets $1"
19409 ac_need_defaults=false ;;
19410
19411 esac
19412 shift
19413done
19414
19415ac_configure_extra_args=
19416
19417if $ac_cs_silent; then
19418 exec 6>/dev/null
19419 ac_configure_extra_args="$ac_configure_extra_args --silent"
19420fi
19421
19422_ACEOF
19423cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19424if \$ac_cs_recheck; then
19425 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19426 shift
19427 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19428 CONFIG_SHELL='$SHELL'
19429 export CONFIG_SHELL
19430 exec "\$@"
19431fi
19432
19433_ACEOF
19434cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19435exec 5>>config.log
19436{
19437 echo
19438 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19439## Running $as_me. ##
19440_ASBOX
19441 $as_echo "$ac_log"
19442} >&5
19443
19444_ACEOF
19445cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19446#
19447# INIT-COMMANDS
19448#
19449AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19450
19451
19452# The HP-UX ksh and POSIX shell print the target directory to stdout
19453# if CDPATH is set.
19454(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19455
19456sed_quote_subst='$sed_quote_subst'
19457double_quote_subst='$double_quote_subst'
19458delay_variable_subst='$delay_variable_subst'
19459macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
19460macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
19461enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
19462enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
19463pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
19464enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
19465host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
19466host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
19467host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
19468build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
19469build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
19470build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
19471SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
19472Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
19473GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
19474EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
19475FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
19476LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
19477NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
19478LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
19479max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
19480ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
19481exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
19482lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
19483lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
19484lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
19485reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
19486reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19487OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
19488deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
19489file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
19490AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
19491AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19492STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
19493RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
19494old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19495old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19496old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19497CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
19498CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19499compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
19500GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
19501lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
19502lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
19503lt_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"`'
19504lt_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"`'
19505objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
19506SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
19507ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
19508MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
19509lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
19510lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
19511lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
19512lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
19513lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
19514need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
19515DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
19516NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
19517LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
19518OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
19519OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
19520libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
19521shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19522extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19523archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
19524enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
19525export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19526whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19527compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
19528old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19529old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19530archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19531archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19532module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19533module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19534with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
19535allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19536no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19537hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19538hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
19539hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
19540hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
19541hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
19542hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
19543hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19544hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
19545inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
19546link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
19547fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
19548always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
19549export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19550exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19551include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19552prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19553file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
19554variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
19555need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
19556need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
19557version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
19558runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19559shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19560shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
19561libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19562library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
19563soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19564postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19565postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19566finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19567finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
19568hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
19569sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19570sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19571hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
19572enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
19573enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
19574enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
19575old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
19576striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
19577compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
19578predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
19579postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
19580predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
19581postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
19582compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
19583LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19584old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19585compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19586GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19587lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19588lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19589lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19590lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19591lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19592archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19593enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19594export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19595whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19596compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19597old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19598old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19599archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19600archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19601module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19602module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19603with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19604allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19605no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19606hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19607hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19608hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19609hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19610hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19611hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19612hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19613hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19614inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19615link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19616fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19617always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19618export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19619exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19620include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19621prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19622file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19623hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19624compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19625predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19626postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19627predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19628postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19629compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19630
19631LTCC='$LTCC'
19632LTCFLAGS='$LTCFLAGS'
19633compiler='$compiler_DEFAULT'
19634
19635# Quote evaled strings.
19636for var in SED \
19637GREP \
19638EGREP \
19639FGREP \
19640LD \
19641NM \
19642LN_S \
19643lt_SP2NL \
19644lt_NL2SP \
19645reload_flag \
19646OBJDUMP \
19647deplibs_check_method \
19648file_magic_cmd \
19649AR \
19650AR_FLAGS \
19651STRIP \
19652RANLIB \
19653CC \
19654CFLAGS \
19655compiler \
19656lt_cv_sys_global_symbol_pipe \
19657lt_cv_sys_global_symbol_to_cdecl \
19658lt_cv_sys_global_symbol_to_c_name_address \
19659lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19660SHELL \
19661ECHO \
19662lt_prog_compiler_no_builtin_flag \
19663lt_prog_compiler_wl \
19664lt_prog_compiler_pic \
19665lt_prog_compiler_static \
19666lt_cv_prog_compiler_c_o \
19667need_locks \
19668DSYMUTIL \
19669NMEDIT \
19670LIPO \
19671OTOOL \
19672OTOOL64 \
19673shrext_cmds \
19674export_dynamic_flag_spec \
19675whole_archive_flag_spec \
19676compiler_needs_object \
19677with_gnu_ld \
19678allow_undefined_flag \
19679no_undefined_flag \
19680hardcode_libdir_flag_spec \
19681hardcode_libdir_flag_spec_ld \
19682hardcode_libdir_separator \
19683fix_srcfile_path \
19684exclude_expsyms \
19685include_expsyms \
19686file_list_spec \
19687variables_saved_for_relink \
19688libname_spec \
19689library_names_spec \
19690soname_spec \
19691finish_eval \
19692old_striplib \
19693striplib \
19694compiler_lib_search_dirs \
19695predep_objects \
19696postdep_objects \
19697predeps \
19698postdeps \
19699compiler_lib_search_path \
19700LD_CXX \
19701compiler_CXX \
19702lt_prog_compiler_no_builtin_flag_CXX \
19703lt_prog_compiler_wl_CXX \
19704lt_prog_compiler_pic_CXX \
19705lt_prog_compiler_static_CXX \
19706lt_cv_prog_compiler_c_o_CXX \
19707export_dynamic_flag_spec_CXX \
19708whole_archive_flag_spec_CXX \
19709compiler_needs_object_CXX \
19710with_gnu_ld_CXX \
19711allow_undefined_flag_CXX \
19712no_undefined_flag_CXX \
19713hardcode_libdir_flag_spec_CXX \
19714hardcode_libdir_flag_spec_ld_CXX \
19715hardcode_libdir_separator_CXX \
19716fix_srcfile_path_CXX \
19717exclude_expsyms_CXX \
19718include_expsyms_CXX \
19719file_list_spec_CXX \
19720compiler_lib_search_dirs_CXX \
19721predep_objects_CXX \
19722postdep_objects_CXX \
19723predeps_CXX \
19724postdeps_CXX \
19725compiler_lib_search_path_CXX; do
19726 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
19727 *[\\\\\\\`\\"\\\$]*)
19728 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19729 ;;
19730 *)
19731 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19732 ;;
19733 esac
19734done
19735
19736# Double-quote double-evaled strings.
19737for var in reload_cmds \
19738old_postinstall_cmds \
19739old_postuninstall_cmds \
19740old_archive_cmds \
19741extract_expsyms_cmds \
19742old_archive_from_new_cmds \
19743old_archive_from_expsyms_cmds \
19744archive_cmds \
19745archive_expsym_cmds \
19746module_cmds \
19747module_expsym_cmds \
19748export_symbols_cmds \
19749prelink_cmds \
19750postinstall_cmds \
19751postuninstall_cmds \
19752finish_cmds \
19753sys_lib_search_path_spec \
19754sys_lib_dlsearch_path_spec \
19755old_archive_cmds_CXX \
19756old_archive_from_new_cmds_CXX \
19757old_archive_from_expsyms_cmds_CXX \
19758archive_cmds_CXX \
19759archive_expsym_cmds_CXX \
19760module_cmds_CXX \
19761module_expsym_cmds_CXX \
19762export_symbols_cmds_CXX \
19763prelink_cmds_CXX; do
19764 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
19765 *[\\\\\\\`\\"\\\$]*)
19766 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19767 ;;
19768 *)
19769 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19770 ;;
19771 esac
19772done
19773
19774# Fix-up fallback echo if it was mangled by the above quoting rules.
19775case \$lt_ECHO in
19776*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
19777 ;;
19778esac
19779
19780ac_aux_dir='$ac_aux_dir'
19781xsi_shell='$xsi_shell'
19782lt_shell_append='$lt_shell_append'
19783
19784# See if we are running on zsh, and set the options which allow our
19785# commands through without removal of \ escapes INIT.
19786if test -n "\${ZSH_VERSION+set}" ; then
19787 setopt NO_GLOB_SUBST
19788fi
19789
19790
19791 PACKAGE='$PACKAGE'
19792 VERSION='$VERSION'
19793 TIMESTAMP='$TIMESTAMP'
19794 RM='$RM'
19795 ofile='$ofile'
19796
19797
19798
19799
19800
19801# Capture the value of obsolete ALL_LINGUAS because we need it to compute
19802 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
19803 # from automake.
19804 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
19805 # Capture the value of LINGUAS because we need it to compute CATALOGS.
19806 LINGUAS="${LINGUAS-%UNSET%}"
19807
19808
19809_ACEOF
19810
19811cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19812
19813# Handling of arguments.
19814for ac_config_target in $ac_config_targets
19815do
19816 case $ac_config_target in
19817 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19818 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19819 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
19820 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19821 "tx/Makefile") CONFIG_FILES="$CONFIG_FILES tx/Makefile" ;;
19822 "x0vncserver/Makefile") CONFIG_FILES="$CONFIG_FILES x0vncserver/Makefile" ;;
19823 "vncviewer/Makefile") CONFIG_FILES="$CONFIG_FILES vncviewer/Makefile" ;;
19824 "vncconfig/Makefile") CONFIG_FILES="$CONFIG_FILES vncconfig/Makefile" ;;
19825 "vncpasswd/Makefile") CONFIG_FILES="$CONFIG_FILES vncpasswd/Makefile" ;;
19826 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
19827
19828 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19829$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19830 { (exit 1); exit 1; }; };;
19831 esac
19832done
19833
19834
19835# If the user did not use the arguments to specify the items to instantiate,
19836# then the envvar interface is used. Set only those that are not.
19837# We use the long form for the default assignment because of an extremely
19838# bizarre bug on SunOS 4.1.3.
19839if $ac_need_defaults; then
19840 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19841 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19842fi
19843
19844# Have a temporary directory for convenience. Make it in the build tree
19845# simply because there is no reason against having it here, and in addition,
19846# creating and moving files from /tmp can sometimes cause problems.
19847# Hook for its removal unless debugging.
19848# Note that there is a small window in which the directory will not be cleaned:
19849# after its creation but before its name has been assigned to `$tmp'.
19850$debug ||
19851{
19852 tmp=
19853 trap 'exit_status=$?
19854 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19855' 0
19856 trap '{ (exit 1); exit 1; }' 1 2 13 15
19857}
19858# Create a (secure) tmp directory for tmp files.
19859
19860{
19861 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19862 test -n "$tmp" && test -d "$tmp"
19863} ||
19864{
19865 tmp=./conf$$-$RANDOM
19866 (umask 077 && mkdir "$tmp")
19867} ||
19868{
19869 $as_echo "$as_me: cannot create a temporary directory in ." >&2
19870 { (exit 1); exit 1; }
19871}
19872
19873# Set up the scripts for CONFIG_FILES section.
19874# No need to generate them if there are no CONFIG_FILES.
19875# This happens for instance with `./config.status config.h'.
19876if test -n "$CONFIG_FILES"; then
19877
19878
19879ac_cr=' '
19880ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19881if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19882 ac_cs_awk_cr='\\r'
19883else
19884 ac_cs_awk_cr=$ac_cr
19885fi
19886
19887echo 'BEGIN {' >"$tmp/subs1.awk" &&
19888_ACEOF
19889
19890
19891{
19892 echo "cat >conf$$subs.awk <<_ACEOF" &&
19893 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19894 echo "_ACEOF"
19895} >conf$$subs.sh ||
19896 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19897$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19898 { (exit 1); exit 1; }; }
19899ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
19900ac_delim='%!_!# '
19901for ac_last_try in false false false false false :; do
19902 . ./conf$$subs.sh ||
19903 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19904$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19905 { (exit 1); exit 1; }; }
19906
19907 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19908 if test $ac_delim_n = $ac_delim_num; then
19909 break
19910 elif $ac_last_try; then
19911 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19912$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19913 { (exit 1); exit 1; }; }
19914 else
19915 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19916 fi
19917done
19918rm -f conf$$subs.sh
19919
19920cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19921cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
19922_ACEOF
19923sed -n '
19924h
19925s/^/S["/; s/!.*/"]=/
19926p
19927g
19928s/^[^!]*!//
19929:repl
19930t repl
19931s/'"$ac_delim"'$//
19932t delim
19933:nl
19934h
19935s/\(.\{148\}\).*/\1/
19936t more1
19937s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19938p
19939n
19940b repl
19941:more1
19942s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19943p
19944g
19945s/.\{148\}//
19946t nl
19947:delim
19948h
19949s/\(.\{148\}\).*/\1/
19950t more2
19951s/["\\]/\\&/g; s/^/"/; s/$/"/
19952p
19953b
19954:more2
19955s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19956p
19957g
19958s/.\{148\}//
19959t delim
19960' <conf$$subs.awk | sed '
19961/^[^""]/{
19962 N
19963 s/\n//
19964}
19965' >>$CONFIG_STATUS || ac_write_fail=1
19966rm -f conf$$subs.awk
19967cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19968_ACAWK
19969cat >>"\$tmp/subs1.awk" <<_ACAWK &&
19970 for (key in S) S_is_set[key] = 1
19971 FS = ""
19972
19973}
19974{
19975 line = $ 0
19976 nfields = split(line, field, "@")
19977 substed = 0
19978 len = length(field[1])
19979 for (i = 2; i < nfields; i++) {
19980 key = field[i]
19981 keylen = length(key)
19982 if (S_is_set[key]) {
19983 value = S[key]
19984 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19985 len += length(value) + length(field[++i])
19986 substed = 1
19987 } else
19988 len += 1 + keylen
19989 }
19990
19991 print line
19992}
19993
19994_ACAWK
19995_ACEOF
19996cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19997if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19998 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19999else
20000 cat
20001fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
20002 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
20003$as_echo "$as_me: error: could not setup config files machinery" >&2;}
20004 { (exit 1); exit 1; }; }
20005_ACEOF
20006
20007# VPATH may cause trouble with some makes, so we remove $(srcdir),
20008# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20009# trailing colons and then remove the whole line if VPATH becomes empty
20010# (actually we leave an empty line to preserve line numbers).
20011if test "x$srcdir" = x.; then
20012 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20013s/:*\$(srcdir):*/:/
20014s/:*\${srcdir}:*/:/
20015s/:*@srcdir@:*/:/
20016s/^\([^=]*=[ ]*\):*/\1/
20017s/:*$//
20018s/^[^=]*=[ ]*$//
20019}'
20020fi
20021
20022cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20023fi # test -n "$CONFIG_FILES"
20024
20025
20026eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
20027shift
20028for ac_tag
20029do
20030 case $ac_tag in
20031 :[FHLC]) ac_mode=$ac_tag; continue;;
20032 esac
20033 case $ac_mode$ac_tag in
20034 :[FHL]*:*);;
20035 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
20036$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
20037 { (exit 1); exit 1; }; };;
20038 :[FH]-) ac_tag=-:-;;
20039 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20040 esac
20041 ac_save_IFS=$IFS
20042 IFS=:
20043 set x $ac_tag
20044 IFS=$ac_save_IFS
20045 shift
20046 ac_file=$1
20047 shift
20048
20049 case $ac_mode in
20050 :L) ac_source=$1;;
20051 :[FH])
20052 ac_file_inputs=
20053 for ac_f
20054 do
20055 case $ac_f in
20056 -) ac_f="$tmp/stdin";;
20057 *) # Look for the file first in the build tree, then in the source tree
20058 # (if the path is not absolute). The absolute path cannot be DOS-style,
20059 # because $ac_f cannot contain `:'.
20060 test -f "$ac_f" ||
20061 case $ac_f in
20062 [\\/$]*) false;;
20063 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20064 esac ||
20065 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20066$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20067 { (exit 1); exit 1; }; };;
20068 esac
20069 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20070 ac_file_inputs="$ac_file_inputs '$ac_f'"
20071 done
20072
20073 # Let's still pretend it is `configure' which instantiates (i.e., don't
20074 # use $as_me), people would be surprised to read:
20075 # /* config.h. Generated by config.status. */
20076 configure_input='Generated from '`
20077 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20078 `' by configure.'
20079 if test x"$ac_file" != x-; then
20080 configure_input="$ac_file. $configure_input"
20081 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
20082$as_echo "$as_me: creating $ac_file" >&6;}
20083 fi
20084 # Neutralize special characters interpreted by sed in replacement strings.
20085 case $configure_input in #(
20086 *\&* | *\|* | *\\* )
20087 ac_sed_conf_input=`$as_echo "$configure_input" |
20088 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20089 *) ac_sed_conf_input=$configure_input;;
20090 esac
20091
20092 case $ac_tag in
20093 *:-:* | *:-) cat >"$tmp/stdin" \
20094 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
20095$as_echo "$as_me: error: could not create $ac_file" >&2;}
20096 { (exit 1); exit 1; }; } ;;
20097 esac
20098 ;;
20099 esac
20100
20101 ac_dir=`$as_dirname -- "$ac_file" ||
20102$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20103 X"$ac_file" : 'X\(//\)[^/]' \| \
20104 X"$ac_file" : 'X\(//\)$' \| \
20105 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20106$as_echo X"$ac_file" |
20107 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20108 s//\1/
20109 q
20110 }
20111 /^X\(\/\/\)[^/].*/{
20112 s//\1/
20113 q
20114 }
20115 /^X\(\/\/\)$/{
20116 s//\1/
20117 q
20118 }
20119 /^X\(\/\).*/{
20120 s//\1/
20121 q
20122 }
20123 s/.*/./; q'`
20124 { as_dir="$ac_dir"
20125 case $as_dir in #(
20126 -*) as_dir=./$as_dir;;
20127 esac
20128 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20129 as_dirs=
20130 while :; do
20131 case $as_dir in #(
20132 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20133 *) as_qdir=$as_dir;;
20134 esac
20135 as_dirs="'$as_qdir' $as_dirs"
20136 as_dir=`$as_dirname -- "$as_dir" ||
20137$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20138 X"$as_dir" : 'X\(//\)[^/]' \| \
20139 X"$as_dir" : 'X\(//\)$' \| \
20140 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20141$as_echo X"$as_dir" |
20142 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20143 s//\1/
20144 q
20145 }
20146 /^X\(\/\/\)[^/].*/{
20147 s//\1/
20148 q
20149 }
20150 /^X\(\/\/\)$/{
20151 s//\1/
20152 q
20153 }
20154 /^X\(\/\).*/{
20155 s//\1/
20156 q
20157 }
20158 s/.*/./; q'`
20159 test -d "$as_dir" && break
20160 done
20161 test -z "$as_dirs" || eval "mkdir $as_dirs"
20162 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20163$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
20164 { (exit 1); exit 1; }; }; }
20165 ac_builddir=.
20166
20167case "$ac_dir" in
20168.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20169*)
20170 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20171 # A ".." for each directory in $ac_dir_suffix.
20172 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20173 case $ac_top_builddir_sub in
20174 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20175 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20176 esac ;;
20177esac
20178ac_abs_top_builddir=$ac_pwd
20179ac_abs_builddir=$ac_pwd$ac_dir_suffix
20180# for backward compatibility:
20181ac_top_builddir=$ac_top_build_prefix
20182
20183case $srcdir in
20184 .) # We are building in place.
20185 ac_srcdir=.
20186 ac_top_srcdir=$ac_top_builddir_sub
20187 ac_abs_top_srcdir=$ac_pwd ;;
20188 [\\/]* | ?:[\\/]* ) # Absolute name.
20189 ac_srcdir=$srcdir$ac_dir_suffix;
20190 ac_top_srcdir=$srcdir
20191 ac_abs_top_srcdir=$srcdir ;;
20192 *) # Relative name.
20193 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20194 ac_top_srcdir=$ac_top_build_prefix$srcdir
20195 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20196esac
20197ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20198
20199
20200 case $ac_mode in
20201 :F)
20202 #
20203 # CONFIG_FILE
20204 #
20205
20206 case $INSTALL in
20207 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20208 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20209 esac
20210 ac_MKDIR_P=$MKDIR_P
20211 case $MKDIR_P in
20212 [\\/$]* | ?:[\\/]* ) ;;
20213 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20214 esac
20215_ACEOF
20216
20217cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20218# If the template does not know about datarootdir, expand it.
20219# FIXME: This hack should be removed a few years after 2.60.
20220ac_datarootdir_hack=; ac_datarootdir_seen=
20221
20222ac_sed_dataroot='
20223/datarootdir/ {
20224 p
20225 q
20226}
20227/@datadir@/p
20228/@docdir@/p
20229/@infodir@/p
20230/@localedir@/p
20231/@mandir@/p
20232'
20233case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20234*datarootdir*) ac_datarootdir_seen=yes;;
20235*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20236 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20237$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20238_ACEOF
20239cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20240 ac_datarootdir_hack='
20241 s&@datadir@&$datadir&g
20242 s&@docdir@&$docdir&g
20243 s&@infodir@&$infodir&g
20244 s&@localedir@&$localedir&g
20245 s&@mandir@&$mandir&g
20246 s&\\\${datarootdir}&$datarootdir&g' ;;
20247esac
20248_ACEOF
20249
20250# Neutralize VPATH when `$srcdir' = `.'.
20251# Shell code in configure.ac might set extrasub.
20252# FIXME: do we really want to maintain this feature?
20253cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20254ac_sed_extra="$ac_vpsub
20255$extrasub
20256_ACEOF
20257cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20258:t
20259/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20260s|@configure_input@|$ac_sed_conf_input|;t t
20261s&@top_builddir@&$ac_top_builddir_sub&;t t
20262s&@top_build_prefix@&$ac_top_build_prefix&;t t
20263s&@srcdir@&$ac_srcdir&;t t
20264s&@abs_srcdir@&$ac_abs_srcdir&;t t
20265s&@top_srcdir@&$ac_top_srcdir&;t t
20266s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20267s&@builddir@&$ac_builddir&;t t
20268s&@abs_builddir@&$ac_abs_builddir&;t t
20269s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20270s&@INSTALL@&$ac_INSTALL&;t t
20271s&@MKDIR_P@&$ac_MKDIR_P&;t t
20272$ac_datarootdir_hack
20273"
20274eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
20275 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
20276$as_echo "$as_me: error: could not create $ac_file" >&2;}
20277 { (exit 1); exit 1; }; }
20278
20279test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20280 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20281 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20282 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20283which seems to be undefined. Please make sure it is defined." >&5
20284$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20285which seems to be undefined. Please make sure it is defined." >&2;}
20286
20287 rm -f "$tmp/stdin"
20288 case $ac_file in
20289 -) cat "$tmp/out" && rm -f "$tmp/out";;
20290 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
20291 esac \
20292 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
20293$as_echo "$as_me: error: could not create $ac_file" >&2;}
20294 { (exit 1); exit 1; }; }
20295 ;;
20296
20297
20298 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
20299$as_echo "$as_me: executing $ac_file commands" >&6;}
20300 ;;
20301 esac
20302
20303
20304 case $ac_file$ac_mode in
20305 "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
20306# are listed without --file. Let's play safe and only enable the eval
20307# if we detect the quoting.
20308case $CONFIG_FILES in
20309*\'*) eval set x "$CONFIG_FILES" ;;
20310*) set x $CONFIG_FILES ;;
20311esac
20312shift
20313for mf
20314do
20315 # Strip MF so we end up with the name of the file.
20316 mf=`echo "$mf" | sed -e 's/:.*$//'`
20317 # Check whether this is an Automake generated Makefile or not.
20318 # We used to match only the files named `Makefile.in', but
20319 # some people rename them; so instead we look at the file content.
20320 # Grep'ing the first line is not enough: some people post-process
20321 # each Makefile.in and add a new line on top of each file to say so.
20322 # Grep'ing the whole file is not good either: AIX grep has a line
20323 # limit of 2048, but all sed's we know have understand at least 4000.
20324 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20325 dirpart=`$as_dirname -- "$mf" ||
20326$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20327 X"$mf" : 'X\(//\)[^/]' \| \
20328 X"$mf" : 'X\(//\)$' \| \
20329 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20330$as_echo X"$mf" |
20331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20332 s//\1/
20333 q
20334 }
20335 /^X\(\/\/\)[^/].*/{
20336 s//\1/
20337 q
20338 }
20339 /^X\(\/\/\)$/{
20340 s//\1/
20341 q
20342 }
20343 /^X\(\/\).*/{
20344 s//\1/
20345 q
20346 }
20347 s/.*/./; q'`
20348 else
20349 continue
20350 fi
20351 # Extract the definition of DEPDIR, am__include, and am__quote
20352 # from the Makefile without running `make'.
20353 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20354 test -z "$DEPDIR" && continue
20355 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20356 test -z "am__include" && continue
20357 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20358 # When using ansi2knr, U may be empty or an underscore; expand it
20359 U=`sed -n 's/^U = //p' < "$mf"`
20360 # Find all dependency output files, they are included files with
20361 # $(DEPDIR) in their names. We invoke sed twice because it is the
20362 # simplest approach to changing $(DEPDIR) to its actual value in the
20363 # expansion.
20364 for file in `sed -n "
20365 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20366 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20367 # Make sure the directory exists.
20368 test -f "$dirpart/$file" && continue
20369 fdir=`$as_dirname -- "$file" ||
20370$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20371 X"$file" : 'X\(//\)[^/]' \| \
20372 X"$file" : 'X\(//\)$' \| \
20373 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20374$as_echo X"$file" |
20375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20376 s//\1/
20377 q
20378 }
20379 /^X\(\/\/\)[^/].*/{
20380 s//\1/
20381 q
20382 }
20383 /^X\(\/\/\)$/{
20384 s//\1/
20385 q
20386 }
20387 /^X\(\/\).*/{
20388 s//\1/
20389 q
20390 }
20391 s/.*/./; q'`
20392 { as_dir=$dirpart/$fdir
20393 case $as_dir in #(
20394 -*) as_dir=./$as_dir;;
20395 esac
20396 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20397 as_dirs=
20398 while :; do
20399 case $as_dir in #(
20400 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20401 *) as_qdir=$as_dir;;
20402 esac
20403 as_dirs="'$as_qdir' $as_dirs"
20404 as_dir=`$as_dirname -- "$as_dir" ||
20405$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20406 X"$as_dir" : 'X\(//\)[^/]' \| \
20407 X"$as_dir" : 'X\(//\)$' \| \
20408 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20409$as_echo X"$as_dir" |
20410 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20411 s//\1/
20412 q
20413 }
20414 /^X\(\/\/\)[^/].*/{
20415 s//\1/
20416 q
20417 }
20418 /^X\(\/\/\)$/{
20419 s//\1/
20420 q
20421 }
20422 /^X\(\/\).*/{
20423 s//\1/
20424 q
20425 }
20426 s/.*/./; q'`
20427 test -d "$as_dir" && break
20428 done
20429 test -z "$as_dirs" || eval "mkdir $as_dirs"
20430 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20431$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
20432 { (exit 1); exit 1; }; }; }
20433 # echo "creating $dirpart/$file"
20434 echo '# dummy' > "$dirpart/$file"
20435 done
20436done
20437 ;;
20438 "libtool":C)
20439
20440 # See if we are running on zsh, and set the options which allow our
20441 # commands through without removal of \ escapes.
20442 if test -n "${ZSH_VERSION+set}" ; then
20443 setopt NO_GLOB_SUBST
20444 fi
20445
20446 cfgfile="${ofile}T"
20447 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20448 $RM "$cfgfile"
20449
20450 cat <<_LT_EOF >> "$cfgfile"
20451#! $SHELL
20452
20453# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20454# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20455# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20456# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20457#
20458# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20459# 2006, 2007, 2008 Free Software Foundation, Inc.
20460# Written by Gordon Matzigkeit, 1996
20461#
20462# This file is part of GNU Libtool.
20463#
20464# GNU Libtool is free software; you can redistribute it and/or
20465# modify it under the terms of the GNU General Public License as
20466# published by the Free Software Foundation; either version 2 of
20467# the License, or (at your option) any later version.
20468#
20469# As a special exception to the GNU General Public License,
20470# if you distribute this file as part of a program or library that
20471# is built using GNU Libtool, you may include this file under the
20472# same distribution terms that you use for the rest of that program.
20473#
20474# GNU Libtool is distributed in the hope that it will be useful,
20475# but WITHOUT ANY WARRANTY; without even the implied warranty of
20476# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20477# GNU General Public License for more details.
20478#
20479# You should have received a copy of the GNU General Public License
20480# along with GNU Libtool; see the file COPYING. If not, a copy
20481# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20482# obtained by writing to the Free Software Foundation, Inc.,
20483# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20484
20485
20486# The names of the tagged configurations supported by this script.
20487available_tags="CXX "
20488
20489# ### BEGIN LIBTOOL CONFIG
20490
20491# Which release of libtool.m4 was used?
20492macro_version=$macro_version
20493macro_revision=$macro_revision
20494
20495# Whether or not to build shared libraries.
20496build_libtool_libs=$enable_shared
20497
20498# Whether or not to build static libraries.
20499build_old_libs=$enable_static
20500
20501# What type of objects to build.
20502pic_mode=$pic_mode
20503
20504# Whether or not to optimize for fast installation.
20505fast_install=$enable_fast_install
20506
20507# The host system.
20508host_alias=$host_alias
20509host=$host
20510host_os=$host_os
20511
20512# The build system.
20513build_alias=$build_alias
20514build=$build
20515build_os=$build_os
20516
20517# A sed program that does not truncate output.
20518SED=$lt_SED
20519
20520# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20521Xsed="\$SED -e 1s/^X//"
20522
20523# A grep program that handles long lines.
20524GREP=$lt_GREP
20525
20526# An ERE matcher.
20527EGREP=$lt_EGREP
20528
20529# A literal string matcher.
20530FGREP=$lt_FGREP
20531
20532# A BSD- or MS-compatible name lister.
20533NM=$lt_NM
20534
20535# Whether we need soft or hard links.
20536LN_S=$lt_LN_S
20537
20538# What is the maximum length of a command?
20539max_cmd_len=$max_cmd_len
20540
20541# Object file suffix (normally "o").
20542objext=$ac_objext
20543
20544# Executable file suffix (normally "").
20545exeext=$exeext
20546
20547# whether the shell understands "unset".
20548lt_unset=$lt_unset
20549
20550# turn spaces into newlines.
20551SP2NL=$lt_lt_SP2NL
20552
20553# turn newlines into spaces.
20554NL2SP=$lt_lt_NL2SP
20555
20556# How to create reloadable object files.
20557reload_flag=$lt_reload_flag
20558reload_cmds=$lt_reload_cmds
20559
20560# An object symbol dumper.
20561OBJDUMP=$lt_OBJDUMP
20562
20563# Method to check whether dependent libraries are shared objects.
20564deplibs_check_method=$lt_deplibs_check_method
20565
20566# Command to use when deplibs_check_method == "file_magic".
20567file_magic_cmd=$lt_file_magic_cmd
20568
20569# The archiver.
20570AR=$lt_AR
20571AR_FLAGS=$lt_AR_FLAGS
20572
20573# A symbol stripping program.
20574STRIP=$lt_STRIP
20575
20576# Commands used to install an old-style archive.
20577RANLIB=$lt_RANLIB
20578old_postinstall_cmds=$lt_old_postinstall_cmds
20579old_postuninstall_cmds=$lt_old_postuninstall_cmds
20580
20581# A C compiler.
20582LTCC=$lt_CC
20583
20584# LTCC compiler flags.
20585LTCFLAGS=$lt_CFLAGS
20586
20587# Take the output of nm and produce a listing of raw symbols and C names.
20588global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20589
20590# Transform the output of nm in a proper C declaration.
20591global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20592
20593# Transform the output of nm in a C name address pair.
20594global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20595
20596# Transform the output of nm in a C name address pair when lib prefix is needed.
20597global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20598
20599# The name of the directory that contains temporary libtool files.
20600objdir=$objdir
20601
20602# Shell to use when invoking shell scripts.
20603SHELL=$lt_SHELL
20604
20605# An echo program that does not interpret backslashes.
20606ECHO=$lt_ECHO
20607
20608# Used to examine libraries when file_magic_cmd begins with "file".
20609MAGIC_CMD=$MAGIC_CMD
20610
20611# Must we lock files when doing compilation?
20612need_locks=$lt_need_locks
20613
20614# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20615DSYMUTIL=$lt_DSYMUTIL
20616
20617# Tool to change global to local symbols on Mac OS X.
20618NMEDIT=$lt_NMEDIT
20619
20620# Tool to manipulate fat objects and archives on Mac OS X.
20621LIPO=$lt_LIPO
20622
20623# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20624OTOOL=$lt_OTOOL
20625
20626# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20627OTOOL64=$lt_OTOOL64
20628
20629# Old archive suffix (normally "a").
20630libext=$libext
20631
20632# Shared library suffix (normally ".so").
20633shrext_cmds=$lt_shrext_cmds
20634
20635# The commands to extract the exported symbol list from a shared archive.
20636extract_expsyms_cmds=$lt_extract_expsyms_cmds
20637
20638# Variables whose values should be saved in libtool wrapper scripts and
20639# restored at link time.
20640variables_saved_for_relink=$lt_variables_saved_for_relink
20641
20642# Do we need the "lib" prefix for modules?
20643need_lib_prefix=$need_lib_prefix
20644
20645# Do we need a version for libraries?
20646need_version=$need_version
20647
20648# Library versioning type.
20649version_type=$version_type
20650
20651# Shared library runtime path variable.
20652runpath_var=$runpath_var
20653
20654# Shared library path variable.
20655shlibpath_var=$shlibpath_var
20656
20657# Is shlibpath searched before the hard-coded library search path?
20658shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20659
20660# Format of library name prefix.
20661libname_spec=$lt_libname_spec
20662
20663# List of archive names. First name is the real one, the rest are links.
20664# The last name is the one that the linker finds with -lNAME
20665library_names_spec=$lt_library_names_spec
20666
20667# The coded name of the library, if different from the real name.
20668soname_spec=$lt_soname_spec
20669
20670# Command to use after installation of a shared archive.
20671postinstall_cmds=$lt_postinstall_cmds
20672
20673# Command to use after uninstallation of a shared archive.
20674postuninstall_cmds=$lt_postuninstall_cmds
20675
20676# Commands used to finish a libtool library installation in a directory.
20677finish_cmds=$lt_finish_cmds
20678
20679# As "finish_cmds", except a single script fragment to be evaled but
20680# not shown.
20681finish_eval=$lt_finish_eval
20682
20683# Whether we should hardcode library paths into libraries.
20684hardcode_into_libs=$hardcode_into_libs
20685
20686# Compile-time system search path for libraries.
20687sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20688
20689# Run-time system search path for libraries.
20690sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20691
20692# Whether dlopen is supported.
20693dlopen_support=$enable_dlopen
20694
20695# Whether dlopen of programs is supported.
20696dlopen_self=$enable_dlopen_self
20697
20698# Whether dlopen of statically linked programs is supported.
20699dlopen_self_static=$enable_dlopen_self_static
20700
20701# Commands to strip libraries.
20702old_striplib=$lt_old_striplib
20703striplib=$lt_striplib
20704
20705
20706# The linker used to build libraries.
20707LD=$lt_LD
20708
20709# Commands used to build an old-style archive.
20710old_archive_cmds=$lt_old_archive_cmds
20711
20712# A language specific compiler.
20713CC=$lt_compiler
20714
20715# Is the compiler the GNU compiler?
20716with_gcc=$GCC
20717
20718# Compiler flag to turn off builtin functions.
20719no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20720
20721# How to pass a linker flag through the compiler.
20722wl=$lt_lt_prog_compiler_wl
20723
20724# Additional compiler flags for building library objects.
20725pic_flag=$lt_lt_prog_compiler_pic
20726
20727# Compiler flag to prevent dynamic linking.
20728link_static_flag=$lt_lt_prog_compiler_static
20729
20730# Does compiler simultaneously support -c and -o options?
20731compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20732
20733# Whether or not to add -lc for building shared libraries.
20734build_libtool_need_lc=$archive_cmds_need_lc
20735
20736# Whether or not to disallow shared libs when runtime libs are static.
20737allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20738
20739# Compiler flag to allow reflexive dlopens.
20740export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20741
20742# Compiler flag to generate shared objects directly from archives.
20743whole_archive_flag_spec=$lt_whole_archive_flag_spec
20744
20745# Whether the compiler copes with passing no objects directly.
20746compiler_needs_object=$lt_compiler_needs_object
20747
20748# Create an old-style archive from a shared archive.
20749old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20750
20751# Create a temporary old-style archive to link instead of a shared archive.
20752old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20753
20754# Commands used to build a shared archive.
20755archive_cmds=$lt_archive_cmds
20756archive_expsym_cmds=$lt_archive_expsym_cmds
20757
20758# Commands used to build a loadable module if different from building
20759# a shared archive.
20760module_cmds=$lt_module_cmds
20761module_expsym_cmds=$lt_module_expsym_cmds
20762
20763# Whether we are building with GNU ld or not.
20764with_gnu_ld=$lt_with_gnu_ld
20765
20766# Flag that allows shared libraries with undefined symbols to be built.
20767allow_undefined_flag=$lt_allow_undefined_flag
20768
20769# Flag that enforces no undefined symbols.
20770no_undefined_flag=$lt_no_undefined_flag
20771
20772# Flag to hardcode \$libdir into a binary during linking.
20773# This must work even if \$libdir does not exist
20774hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20775
20776# If ld is used when linking, flag to hardcode \$libdir into a binary
20777# during linking. This must work even if \$libdir does not exist.
20778hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20779
20780# Whether we need a single "-rpath" flag with a separated argument.
20781hardcode_libdir_separator=$lt_hardcode_libdir_separator
20782
20783# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20784# DIR into the resulting binary.
20785hardcode_direct=$hardcode_direct
20786
20787# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20788# DIR into the resulting binary and the resulting library dependency is
20789# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20790# library is relocated.
20791hardcode_direct_absolute=$hardcode_direct_absolute
20792
20793# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20794# into the resulting binary.
20795hardcode_minus_L=$hardcode_minus_L
20796
20797# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20798# into the resulting binary.
20799hardcode_shlibpath_var=$hardcode_shlibpath_var
20800
20801# Set to "yes" if building a shared library automatically hardcodes DIR
20802# into the library and all subsequent libraries and executables linked
20803# against it.
20804hardcode_automatic=$hardcode_automatic
20805
20806# Set to yes if linker adds runtime paths of dependent libraries
20807# to runtime path list.
20808inherit_rpath=$inherit_rpath
20809
20810# Whether libtool must link a program against all its dependency libraries.
20811link_all_deplibs=$link_all_deplibs
20812
20813# Fix the shell variable \$srcfile for the compiler.
20814fix_srcfile_path=$lt_fix_srcfile_path
20815
20816# Set to "yes" if exported symbols are required.
20817always_export_symbols=$always_export_symbols
20818
20819# The commands to list exported symbols.
20820export_symbols_cmds=$lt_export_symbols_cmds
20821
20822# Symbols that should not be listed in the preloaded symbols.
20823exclude_expsyms=$lt_exclude_expsyms
20824
20825# Symbols that must always be exported.
20826include_expsyms=$lt_include_expsyms
20827
20828# Commands necessary for linking programs (against libraries) with templates.
20829prelink_cmds=$lt_prelink_cmds
20830
20831# Specify filename containing input files.
20832file_list_spec=$lt_file_list_spec
20833
20834# How to hardcode a shared library path into an executable.
20835hardcode_action=$hardcode_action
20836
20837# The directories searched by this compiler when creating a shared library.
20838compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20839
20840# Dependencies to place before and after the objects being linked to
20841# create a shared library.
20842predep_objects=$lt_predep_objects
20843postdep_objects=$lt_postdep_objects
20844predeps=$lt_predeps
20845postdeps=$lt_postdeps
20846
20847# The library search path used internally by the compiler when linking
20848# a shared library.
20849compiler_lib_search_path=$lt_compiler_lib_search_path
20850
20851# ### END LIBTOOL CONFIG
20852
20853_LT_EOF
20854
20855 case $host_os in
20856 aix3*)
20857 cat <<\_LT_EOF >> "$cfgfile"
20858# AIX sometimes has problems with the GCC collect2 program. For some
20859# reason, if we set the COLLECT_NAMES environment variable, the problems
20860# vanish in a puff of smoke.
20861if test "X${COLLECT_NAMES+set}" != Xset; then
20862 COLLECT_NAMES=
20863 export COLLECT_NAMES
20864fi
20865_LT_EOF
20866 ;;
20867 esac
20868
20869
20870ltmain="$ac_aux_dir/ltmain.sh"
20871
20872
20873 # We use sed instead of cat because bash on DJGPP gets confused if
20874 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20875 # text mode, it properly converts lines to CR/LF. This bash problem
20876 # is reportedly fixed, but why not run on old versions too?
20877 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
20878 || (rm -f "$cfgfile"; exit 1)
20879
20880 case $xsi_shell in
20881 yes)
20882 cat << \_LT_EOF >> "$cfgfile"
20883
20884# func_dirname file append nondir_replacement
20885# Compute the dirname of FILE. If nonempty, add APPEND to the result,
20886# otherwise set result to NONDIR_REPLACEMENT.
20887func_dirname ()
20888{
20889 case ${1} in
20890 */*) func_dirname_result="${1%/*}${2}" ;;
20891 * ) func_dirname_result="${3}" ;;
20892 esac
20893}
20894
20895# func_basename file
20896func_basename ()
20897{
20898 func_basename_result="${1##*/}"
20899}
20900
20901# func_dirname_and_basename file append nondir_replacement
20902# perform func_basename and func_dirname in a single function
20903# call:
20904# dirname: Compute the dirname of FILE. If nonempty,
20905# add APPEND to the result, otherwise set result
20906# to NONDIR_REPLACEMENT.
20907# value returned in "$func_dirname_result"
20908# basename: Compute filename of FILE.
20909# value retuned in "$func_basename_result"
20910# Implementation must be kept synchronized with func_dirname
20911# and func_basename. For efficiency, we do not delegate to
20912# those functions but instead duplicate the functionality here.
20913func_dirname_and_basename ()
20914{
20915 case ${1} in
20916 */*) func_dirname_result="${1%/*}${2}" ;;
20917 * ) func_dirname_result="${3}" ;;
20918 esac
20919 func_basename_result="${1##*/}"
20920}
20921
20922# func_stripname prefix suffix name
20923# strip PREFIX and SUFFIX off of NAME.
20924# PREFIX and SUFFIX must not contain globbing or regex special
20925# characters, hashes, percent signs, but SUFFIX may contain a leading
20926# dot (in which case that matches only a dot).
20927func_stripname ()
20928{
20929 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
20930 # positional parameters, so assign one to ordinary parameter first.
20931 func_stripname_result=${3}
20932 func_stripname_result=${func_stripname_result#"${1}"}
20933 func_stripname_result=${func_stripname_result%"${2}"}
20934}
20935
20936# func_opt_split
20937func_opt_split ()
20938{
20939 func_opt_split_opt=${1%%=*}
20940 func_opt_split_arg=${1#*=}
20941}
20942
20943# func_lo2o object
20944func_lo2o ()
20945{
20946 case ${1} in
20947 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
20948 *) func_lo2o_result=${1} ;;
20949 esac
20950}
20951
20952# func_xform libobj-or-source
20953func_xform ()
20954{
20955 func_xform_result=${1%.*}.lo
20956}
20957
20958# func_arith arithmetic-term...
20959func_arith ()
20960{
20961 func_arith_result=$(( $* ))
20962}
20963
20964# func_len string
20965# STRING may not start with a hyphen.
20966func_len ()
20967{
20968 func_len_result=${#1}
20969}
20970
20971_LT_EOF
20972 ;;
20973 *) # Bourne compatible functions.
20974 cat << \_LT_EOF >> "$cfgfile"
20975
20976# func_dirname file append nondir_replacement
20977# Compute the dirname of FILE. If nonempty, add APPEND to the result,
20978# otherwise set result to NONDIR_REPLACEMENT.
20979func_dirname ()
20980{
20981 # Extract subdirectory from the argument.
20982 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
20983 if test "X$func_dirname_result" = "X${1}"; then
20984 func_dirname_result="${3}"
20985 else
20986 func_dirname_result="$func_dirname_result${2}"
20987 fi
20988}
20989
20990# func_basename file
20991func_basename ()
20992{
20993 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
20994}
20995
20996
20997# func_stripname prefix suffix name
20998# strip PREFIX and SUFFIX off of NAME.
20999# PREFIX and SUFFIX must not contain globbing or regex special
21000# characters, hashes, percent signs, but SUFFIX may contain a leading
21001# dot (in which case that matches only a dot).
21002# func_strip_suffix prefix name
21003func_stripname ()
21004{
21005 case ${2} in
21006 .*) func_stripname_result=`$ECHO "X${3}" \
21007 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
21008 *) func_stripname_result=`$ECHO "X${3}" \
21009 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
21010 esac
21011}
21012
21013# sed scripts:
21014my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
21015my_sed_long_arg='1s/^-[^=]*=//'
21016
21017# func_opt_split
21018func_opt_split ()
21019{
21020 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
21021 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
21022}
21023
21024# func_lo2o object
21025func_lo2o ()
21026{
21027 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
21028}
21029
21030# func_xform libobj-or-source
21031func_xform ()
21032{
21033 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
21034}
21035
21036# func_arith arithmetic-term...
21037func_arith ()
21038{
21039 func_arith_result=`expr "$@"`
21040}
21041
21042# func_len string
21043# STRING may not start with a hyphen.
21044func_len ()
21045{
21046 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
21047}
21048
21049_LT_EOF
21050esac
21051
21052case $lt_shell_append in
21053 yes)
21054 cat << \_LT_EOF >> "$cfgfile"
21055
21056# func_append var value
21057# Append VALUE to the end of shell variable VAR.
21058func_append ()
21059{
21060 eval "$1+=\$2"
21061}
21062_LT_EOF
21063 ;;
21064 *)
21065 cat << \_LT_EOF >> "$cfgfile"
21066
21067# func_append var value
21068# Append VALUE to the end of shell variable VAR.
21069func_append ()
21070{
21071 eval "$1=\$$1\$2"
21072}
21073
21074_LT_EOF
21075 ;;
21076 esac
21077
21078
21079 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
21080 || (rm -f "$cfgfile"; exit 1)
21081
21082 mv -f "$cfgfile" "$ofile" ||
21083 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21084 chmod +x "$ofile"
21085
21086
21087 cat <<_LT_EOF >> "$ofile"
21088
21089# ### BEGIN LIBTOOL TAG CONFIG: CXX
21090
21091# The linker used to build libraries.
21092LD=$lt_LD_CXX
21093
21094# Commands used to build an old-style archive.
21095old_archive_cmds=$lt_old_archive_cmds_CXX
21096
21097# A language specific compiler.
21098CC=$lt_compiler_CXX
21099
21100# Is the compiler the GNU compiler?
21101with_gcc=$GCC_CXX
21102
21103# Compiler flag to turn off builtin functions.
21104no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21105
21106# How to pass a linker flag through the compiler.
21107wl=$lt_lt_prog_compiler_wl_CXX
21108
21109# Additional compiler flags for building library objects.
21110pic_flag=$lt_lt_prog_compiler_pic_CXX
21111
21112# Compiler flag to prevent dynamic linking.
21113link_static_flag=$lt_lt_prog_compiler_static_CXX
21114
21115# Does compiler simultaneously support -c and -o options?
21116compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21117
21118# Whether or not to add -lc for building shared libraries.
21119build_libtool_need_lc=$archive_cmds_need_lc_CXX
21120
21121# Whether or not to disallow shared libs when runtime libs are static.
21122allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21123
21124# Compiler flag to allow reflexive dlopens.
21125export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21126
21127# Compiler flag to generate shared objects directly from archives.
21128whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21129
21130# Whether the compiler copes with passing no objects directly.
21131compiler_needs_object=$lt_compiler_needs_object_CXX
21132
21133# Create an old-style archive from a shared archive.
21134old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21135
21136# Create a temporary old-style archive to link instead of a shared archive.
21137old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21138
21139# Commands used to build a shared archive.
21140archive_cmds=$lt_archive_cmds_CXX
21141archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21142
21143# Commands used to build a loadable module if different from building
21144# a shared archive.
21145module_cmds=$lt_module_cmds_CXX
21146module_expsym_cmds=$lt_module_expsym_cmds_CXX
21147
21148# Whether we are building with GNU ld or not.
21149with_gnu_ld=$lt_with_gnu_ld_CXX
21150
21151# Flag that allows shared libraries with undefined symbols to be built.
21152allow_undefined_flag=$lt_allow_undefined_flag_CXX
21153
21154# Flag that enforces no undefined symbols.
21155no_undefined_flag=$lt_no_undefined_flag_CXX
21156
21157# Flag to hardcode \$libdir into a binary during linking.
21158# This must work even if \$libdir does not exist
21159hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21160
21161# If ld is used when linking, flag to hardcode \$libdir into a binary
21162# during linking. This must work even if \$libdir does not exist.
21163hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21164
21165# Whether we need a single "-rpath" flag with a separated argument.
21166hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21167
21168# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21169# DIR into the resulting binary.
21170hardcode_direct=$hardcode_direct_CXX
21171
21172# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21173# DIR into the resulting binary and the resulting library dependency is
21174# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21175# library is relocated.
21176hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21177
21178# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21179# into the resulting binary.
21180hardcode_minus_L=$hardcode_minus_L_CXX
21181
21182# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21183# into the resulting binary.
21184hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21185
21186# Set to "yes" if building a shared library automatically hardcodes DIR
21187# into the library and all subsequent libraries and executables linked
21188# against it.
21189hardcode_automatic=$hardcode_automatic_CXX
21190
21191# Set to yes if linker adds runtime paths of dependent libraries
21192# to runtime path list.
21193inherit_rpath=$inherit_rpath_CXX
21194
21195# Whether libtool must link a program against all its dependency libraries.
21196link_all_deplibs=$link_all_deplibs_CXX
21197
21198# Fix the shell variable \$srcfile for the compiler.
21199fix_srcfile_path=$lt_fix_srcfile_path_CXX
21200
21201# Set to "yes" if exported symbols are required.
21202always_export_symbols=$always_export_symbols_CXX
21203
21204# The commands to list exported symbols.
21205export_symbols_cmds=$lt_export_symbols_cmds_CXX
21206
21207# Symbols that should not be listed in the preloaded symbols.
21208exclude_expsyms=$lt_exclude_expsyms_CXX
21209
21210# Symbols that must always be exported.
21211include_expsyms=$lt_include_expsyms_CXX
21212
21213# Commands necessary for linking programs (against libraries) with templates.
21214prelink_cmds=$lt_prelink_cmds_CXX
21215
21216# Specify filename containing input files.
21217file_list_spec=$lt_file_list_spec_CXX
21218
21219# How to hardcode a shared library path into an executable.
21220hardcode_action=$hardcode_action_CXX
21221
21222# The directories searched by this compiler when creating a shared library.
21223compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21224
21225# Dependencies to place before and after the objects being linked to
21226# create a shared library.
21227predep_objects=$lt_predep_objects_CXX
21228postdep_objects=$lt_postdep_objects_CXX
21229predeps=$lt_predeps_CXX
21230postdeps=$lt_postdeps_CXX
21231
21232# The library search path used internally by the compiler when linking
21233# a shared library.
21234compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21235
21236# ### END LIBTOOL TAG CONFIG: CXX
21237_LT_EOF
21238
21239 ;;
21240 "default-1":C)
21241 for ac_file in $CONFIG_FILES; do
21242 # Support "outfile[:infile[:infile...]]"
21243 case "$ac_file" in
21244 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21245 esac
21246 # PO directories have a Makefile.in generated from Makefile.in.in.
21247 case "$ac_file" in */Makefile.in)
21248 # Adjust a relative srcdir.
21249 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
21250 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
21251 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
21252 # In autoconf-2.13 it is called $ac_given_srcdir.
21253 # In autoconf-2.50 it is called $srcdir.
21254 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
21255 case "$ac_given_srcdir" in
21256 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
21257 /*) top_srcdir="$ac_given_srcdir" ;;
21258 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
21259 esac
21260 # Treat a directory as a PO directory if and only if it has a
21261 # POTFILES.in file. This allows packages to have multiple PO
21262 # directories under different names or in different locations.
21263 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
21264 rm -f "$ac_dir/POTFILES"
21265 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
21266 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
21267 POMAKEFILEDEPS="POTFILES.in"
21268 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
21269 # on $ac_dir but don't depend on user-specified configuration
21270 # parameters.
21271 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
21272 # The LINGUAS file contains the set of available languages.
21273 if test -n "$OBSOLETE_ALL_LINGUAS"; then
21274 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
21275 fi
21276 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
21277 # Hide the ALL_LINGUAS assigment from automake.
21278 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
21279 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
21280 else
21281 # The set of available languages was given in configure.in.
21282 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
21283 fi
21284 # Compute POFILES
21285 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
21286 # Compute UPDATEPOFILES
21287 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
21288 # Compute DUMMYPOFILES
21289 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
21290 # Compute GMOFILES
21291 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
21292 case "$ac_given_srcdir" in
21293 .) srcdirpre= ;;
21294 *) srcdirpre='$(srcdir)/' ;;
21295 esac
21296 POFILES=
21297 UPDATEPOFILES=
21298 DUMMYPOFILES=
21299 GMOFILES=
21300 for lang in $ALL_LINGUAS; do
21301 POFILES="$POFILES $srcdirpre$lang.po"
21302 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
21303 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
21304 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
21305 done
21306 # CATALOGS depends on both $ac_dir and the user's LINGUAS
21307 # environment variable.
21308 INST_LINGUAS=
21309 if test -n "$ALL_LINGUAS"; then
21310 for presentlang in $ALL_LINGUAS; do
21311 useit=no
21312 if test "%UNSET%" != "$LINGUAS"; then
21313 desiredlanguages="$LINGUAS"
21314 else
21315 desiredlanguages="$ALL_LINGUAS"
21316 fi
21317 for desiredlang in $desiredlanguages; do
21318 # Use the presentlang catalog if desiredlang is
21319 # a. equal to presentlang, or
21320 # b. a variant of presentlang (because in this case,
21321 # presentlang can be used as a fallback for messages
21322 # which are not translated in the desiredlang catalog).
21323 case "$desiredlang" in
21324 "$presentlang"*) useit=yes;;
21325 esac
21326 done
21327 if test $useit = yes; then
21328 INST_LINGUAS="$INST_LINGUAS $presentlang"
21329 fi
21330 done
21331 fi
21332 CATALOGS=
21333 if test -n "$INST_LINGUAS"; then
21334 for lang in $INST_LINGUAS; do
21335 CATALOGS="$CATALOGS $lang.gmo"
21336 done
21337 fi
21338 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
21339 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
21340 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
21341 if test -f "$f"; then
21342 case "$f" in
21343 *.orig | *.bak | *~) ;;
21344 *) cat "$f" >> "$ac_dir/Makefile" ;;
21345 esac
21346 fi
21347 done
21348 fi
21349 ;;
21350 esac
21351 done ;;
21352
21353 esac
21354done # for ac_tag
21355
21356
21357{ (exit 0); exit 0; }
21358_ACEOF
21359chmod +x $CONFIG_STATUS
21360ac_clean_files=$ac_clean_files_save
21361
21362test $ac_write_fail = 0 ||
21363 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
21364$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
21365 { (exit 1); exit 1; }; }
21366
21367
21368# configure is writing to config.log, and then calls config.status.
21369# config.status does its own redirection, appending to config.log.
21370# Unfortunately, on DOS this fails, as config.log is still kept open
21371# by configure, so config.status won't be able to write to it; its
21372# output is simply discarded. So we exec the FD to /dev/null,
21373# effectively closing config.log, so it can be properly (re)opened and
21374# appended to by config.status. When coming back to configure, we
21375# need to make the FD available again.
21376if test "$no_create" != yes; then
21377 ac_cs_success=:
21378 ac_config_status_args=
21379 test "$silent" = yes &&
21380 ac_config_status_args="$ac_config_status_args --quiet"
21381 exec 5>/dev/null
21382 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21383 exec 5>>config.log
21384 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21385 # would make configure fail if this is the last instruction.
21386 $ac_cs_success || { (exit 1); exit 1; }
21387fi
21388
21389#
21390# CONFIG_SUBDIRS section.
21391#
21392if test "$no_recursion" != yes; then
21393
21394 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
21395 # so they do not pile up.
21396 ac_sub_configure_args=
21397 ac_prev=
21398 eval "set x $ac_configure_args"
21399 shift
21400 for ac_arg
21401 do
21402 if test -n "$ac_prev"; then
21403 ac_prev=
21404 continue
21405 fi
21406 case $ac_arg in
21407 -cache-file | --cache-file | --cache-fil | --cache-fi \
21408 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21409 ac_prev=cache_file ;;
21410 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21411 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21412 | --c=*)
21413 ;;
21414 --config-cache | -C)
21415 ;;
21416 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21417 ac_prev=srcdir ;;
21418 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21419 ;;
21420 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21421 ac_prev=prefix ;;
21422 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21423 ;;
21424 --disable-option-checking)
21425 ;;
21426 *)
21427 case $ac_arg in
21428 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21429 esac
21430 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
21431 esac
21432 done
21433
21434 # Always prepend --prefix to ensure using the same prefix
21435 # in subdir configurations.
21436 ac_arg="--prefix=$prefix"
21437 case $ac_arg in
21438 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21439 esac
21440 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
21441
21442 # Pass --silent
21443 if test "$silent" = yes; then
21444 ac_sub_configure_args="--silent $ac_sub_configure_args"
21445 fi
21446
21447 # Always prepend --disable-option-checking to silence warnings, since
21448 # different subdirs can have different --enable and --with options.
21449 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
21450
21451 ac_popdir=`pwd`
21452 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
21453
21454 # Do not complain, so a configure script can configure whichever
21455 # parts of a large source tree are present.
21456 test -d "$srcdir/$ac_dir" || continue
21457
21458 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
21459 $as_echo "$as_me:$LINENO: $ac_msg" >&5
21460 $as_echo "$ac_msg" >&6
21461 { as_dir="$ac_dir"
21462 case $as_dir in #(
21463 -*) as_dir=./$as_dir;;
21464 esac
21465 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21466 as_dirs=
21467 while :; do
21468 case $as_dir in #(
21469 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21470 *) as_qdir=$as_dir;;
21471 esac
21472 as_dirs="'$as_qdir' $as_dirs"
21473 as_dir=`$as_dirname -- "$as_dir" ||
21474$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21475 X"$as_dir" : 'X\(//\)[^/]' \| \
21476 X"$as_dir" : 'X\(//\)$' \| \
21477 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21478$as_echo X"$as_dir" |
21479 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21480 s//\1/
21481 q
21482 }
21483 /^X\(\/\/\)[^/].*/{
21484 s//\1/
21485 q
21486 }
21487 /^X\(\/\/\)$/{
21488 s//\1/
21489 q
21490 }
21491 /^X\(\/\).*/{
21492 s//\1/
21493 q
21494 }
21495 s/.*/./; q'`
21496 test -d "$as_dir" && break
21497 done
21498 test -z "$as_dirs" || eval "mkdir $as_dirs"
21499 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21500$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
21501 { (exit 1); exit 1; }; }; }
21502 ac_builddir=.
21503
21504case "$ac_dir" in
21505.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21506*)
21507 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21508 # A ".." for each directory in $ac_dir_suffix.
21509 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21510 case $ac_top_builddir_sub in
21511 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21512 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21513 esac ;;
21514esac
21515ac_abs_top_builddir=$ac_pwd
21516ac_abs_builddir=$ac_pwd$ac_dir_suffix
21517# for backward compatibility:
21518ac_top_builddir=$ac_top_build_prefix
21519
21520case $srcdir in
21521 .) # We are building in place.
21522 ac_srcdir=.
21523 ac_top_srcdir=$ac_top_builddir_sub
21524 ac_abs_top_srcdir=$ac_pwd ;;
21525 [\\/]* | ?:[\\/]* ) # Absolute name.
21526 ac_srcdir=$srcdir$ac_dir_suffix;
21527 ac_top_srcdir=$srcdir
21528 ac_abs_top_srcdir=$srcdir ;;
21529 *) # Relative name.
21530 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21531 ac_top_srcdir=$ac_top_build_prefix$srcdir
21532 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21533esac
21534ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21535
21536
21537 cd "$ac_dir"
21538
21539 # Check for guested configure; otherwise get Cygnus style configure.
21540 if test -f "$ac_srcdir/configure.gnu"; then
21541 ac_sub_configure=$ac_srcdir/configure.gnu
21542 elif test -f "$ac_srcdir/configure"; then
21543 ac_sub_configure=$ac_srcdir/configure
21544 elif test -f "$ac_srcdir/configure.in"; then
21545 # This should be Cygnus configure.
21546 ac_sub_configure=$ac_aux_dir/configure
21547 else
21548 { $as_echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
21549$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
21550 ac_sub_configure=
21551 fi
21552
21553 # The recursion is here.
21554 if test -n "$ac_sub_configure"; then
21555 # Make the cache file name correct relative to the subdirectory.
21556 case $cache_file in
21557 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
21558 *) # Relative name.
21559 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
21560 esac
21561
21562 { $as_echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21563$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21564 # The eval makes quoting arguments work.
21565 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21566 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21567 { { $as_echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
21568$as_echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
21569 { (exit 1); exit 1; }; }
21570 fi
21571
21572 cd "$ac_popdir"
21573 done
21574fi
21575if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21576 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21577$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21578fi
21579