l10n: Updated Russian (ru) translation to 100%
[maepad.git] / configure
blob635bf7edee817fd83705a22263c395ec42ced29c
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 (as_func_return () {
278 (exit $1)
280 as_func_success () {
281 as_func_return 0
283 as_func_failure () {
284 as_func_return 1
286 as_func_ret_success () {
287 return 0
289 as_func_ret_failure () {
290 return 1
293 exitcode=0
294 if as_func_success; then
296 else
297 exitcode=1
298 echo as_func_success failed.
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 else
321 exitcode=1
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
367 (exit \$1)
369 as_func_success () {
370 as_func_return 0
372 as_func_failure () {
373 as_func_return 1
375 as_func_ret_success () {
376 return 0
378 as_func_ret_failure () {
379 return 1
382 exitcode=0
383 if as_func_success; then
385 else
386 exitcode=1
387 echo as_func_success failed.
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 else
410 exitcode=1
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
446 :lineno
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
556 case X$ECHO in
557 X*--fallback-echo)
558 # Remove one level of quotation (which was required for Make).
559 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
561 esac
563 echo=${ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565 # Discard the --no-reexec flag, and continue.
566 shift
567 elif test "X$1" = X--fallback-echo; then
568 # Avoid inline document here, it may be left over
570 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $echo works!
573 else
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
578 if test "X$1" = X--fallback-echo; then
579 # used as fallback echo
580 shift
581 cat <<EOF
584 exit 0
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
591 if test -z "$ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597 echo_test_string=`eval $cmd` &&
598 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
599 then
600 break
602 done
605 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
609 else
610 # The Solaris, AIX, and Digital Unix default echo programs unquote
611 # backslashes. This makes it impossible to quote backslashes using
612 # echo "$something" | sed 's/\\/\\\\/g'
614 # So, first we look for a working echo in the user's PATH.
616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617 for dir in $PATH /usr/ucb; do
618 IFS="$lt_save_ifs"
619 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 echo="$dir/echo"
624 break
626 done
627 IFS="$lt_save_ifs"
629 if test "X$echo" = Xecho; then
630 # We didn't find a better echo, so look for alternatives.
631 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633 test "X$echo_testing_string" = "X$echo_test_string"; then
634 # This shell has a builtin print -r that does the trick.
635 echo='print -r'
636 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637 test "X$CONFIG_SHELL" != X/bin/ksh; then
638 # If we have ksh, try running configure again with it.
639 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640 export ORIGINAL_CONFIG_SHELL
641 CONFIG_SHELL=/bin/ksh
642 export CONFIG_SHELL
643 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644 else
645 # Try using printf.
646 echo='printf %s\n'
647 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649 test "X$echo_testing_string" = "X$echo_test_string"; then
650 # Cool, printf works
652 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653 test "X$echo_testing_string" = 'X\t' &&
654 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655 test "X$echo_testing_string" = "X$echo_test_string"; then
656 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657 export CONFIG_SHELL
658 SHELL="$CONFIG_SHELL"
659 export SHELL
660 echo="$CONFIG_SHELL $0 --fallback-echo"
661 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662 test "X$echo_testing_string" = 'X\t' &&
663 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664 test "X$echo_testing_string" = "X$echo_test_string"; then
665 echo="$CONFIG_SHELL $0 --fallback-echo"
666 else
667 # maybe with a smaller string...
668 prev=:
670 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
672 then
673 break
675 prev="$cmd"
676 done
678 if test "$prev" != 'sed 50q "$0"'; then
679 echo_test_string=`eval $prev`
680 export echo_test_string
681 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682 else
683 # Oops. We lost completely, so just stick with echo.
684 echo=echo
692 # Copy echo and quote the copy suitably for passing to libtool from
693 # the Makefile, instead of quoting the original, which is used later.
694 ECHO=$echo
695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
702 tagnames=${tagnames+${tagnames},}CXX
704 tagnames=${tagnames+${tagnames},}F77
706 exec 7<&0 </dev/null 6>&1
708 # Name of the host.
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714 # Initializations.
716 ac_default_prefix=/usr/local
717 ac_clean_files=
718 ac_config_libobj_dir=.
719 LIBOBJS=
720 cross_compiling=no
721 subdirs=
722 MFLAGS=
723 MAKEFLAGS=
724 SHELL=${CONFIG_SHELL-/bin/sh}
726 # Identity of this package.
727 PACKAGE_NAME=
728 PACKAGE_TARNAME=
729 PACKAGE_VERSION=
730 PACKAGE_STRING=
731 PACKAGE_BUGREPORT=
733 ac_unique_file="Makefile.am"
734 # Factoring default headers for most tests.
735 ac_includes_default="\
736 #include <stdio.h>
737 #ifdef HAVE_SYS_TYPES_H
738 # include <sys/types.h>
739 #endif
740 #ifdef HAVE_SYS_STAT_H
741 # include <sys/stat.h>
742 #endif
743 #ifdef STDC_HEADERS
744 # include <stdlib.h>
745 # include <stddef.h>
746 #else
747 # ifdef HAVE_STDLIB_H
748 # include <stdlib.h>
749 # endif
750 #endif
751 #ifdef HAVE_STRING_H
752 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
753 # include <memory.h>
754 # endif
755 # include <string.h>
756 #endif
757 #ifdef HAVE_STRINGS_H
758 # include <strings.h>
759 #endif
760 #ifdef HAVE_INTTYPES_H
761 # include <inttypes.h>
762 #endif
763 #ifdef HAVE_STDINT_H
764 # include <stdint.h>
765 #endif
766 #ifdef HAVE_UNISTD_H
767 # include <unistd.h>
768 #endif"
770 ac_subst_vars='SHELL
771 PATH_SEPARATOR
772 PACKAGE_NAME
773 PACKAGE_TARNAME
774 PACKAGE_VERSION
775 PACKAGE_STRING
776 PACKAGE_BUGREPORT
777 exec_prefix
778 prefix
779 program_transform_name
780 bindir
781 sbindir
782 libexecdir
783 datarootdir
784 datadir
785 sysconfdir
786 sharedstatedir
787 localstatedir
788 includedir
789 oldincludedir
790 docdir
791 infodir
792 htmldir
793 dvidir
794 pdfdir
795 psdir
796 libdir
797 localedir
798 mandir
799 DEFS
800 ECHO_C
801 ECHO_N
802 ECHO_T
803 LIBS
804 build_alias
805 host_alias
806 target_alias
807 INSTALL_PROGRAM
808 INSTALL_SCRIPT
809 INSTALL_DATA
810 CYGPATH_W
811 PACKAGE
812 VERSION
813 ACLOCAL
814 AUTOCONF
815 AUTOMAKE
816 AUTOHEADER
817 MAKEINFO
818 AMTAR
819 install_sh
820 STRIP
821 INSTALL_STRIP_PROGRAM
823 SET_MAKE
824 am__leading_dot
825 build
826 build_cpu
827 build_vendor
828 build_os
829 host
830 host_cpu
831 host_vendor
832 host_os
834 CFLAGS
835 LDFLAGS
836 CPPFLAGS
837 ac_ct_CC
838 EXEEXT
839 OBJEXT
840 DEPDIR
841 am__include
842 am__quote
843 AMDEP_TRUE
844 AMDEP_FALSE
845 AMDEPBACKSLASH
846 CCDEPMODE
847 am__fastdepCC_TRUE
848 am__fastdepCC_FALSE
850 RANLIB
852 GREP
853 EGREP
854 LN_S
855 ECHO
857 DSYMUTIL
858 NMEDIT
860 CXXFLAGS
861 ac_ct_CXX
862 CXXDEPMODE
863 am__fastdepCXX_TRUE
864 am__fastdepCXX_FALSE
865 CXXCPP
867 FFLAGS
868 ac_ct_F77
869 LIBTOOL
870 USE_NLS
871 INTLTOOL_UPDATE
872 INTLTOOL_MERGE
873 INTLTOOL_EXTRACT
874 INTLTOOL_DESKTOP_RULE
875 INTLTOOL_DIRECTORY_RULE
876 INTLTOOL_KEYS_RULE
877 INTLTOOL_PROP_RULE
878 INTLTOOL_OAF_RULE
879 INTLTOOL_PONG_RULE
880 INTLTOOL_SERVER_RULE
881 INTLTOOL_SHEET_RULE
882 INTLTOOL_SOUNDLIST_RULE
883 INTLTOOL_UI_RULE
884 INTLTOOL_XAM_RULE
885 INTLTOOL_KBD_RULE
886 INTLTOOL_XML_RULE
887 INTLTOOL_XML_NOMERGE_RULE
888 INTLTOOL_CAVES_RULE
889 INTLTOOL_SCHEMAS_RULE
890 INTLTOOL_THEME_RULE
891 INTLTOOL_SERVICE_RULE
892 INTLTOOL_POLICY_RULE
893 XGETTEXT
894 MSGMERGE
895 MSGFMT
896 GMSGFMT
897 INTLTOOL_PERL
898 ALL_LINGUAS
899 DATADIRNAME
900 PKG_CONFIG
901 HILDON_CFLAGS
902 HILDON_LIBS
903 DBUS_CFLAGS
904 DBUS_LIBS
905 OSSO_CFLAGS
906 OSSO_LIBS
907 SQL3_CFLAGS
908 SQL3_LIBS
909 SHARINGDIALOG_CFLAGS
910 SHARINGDIALOG_LIBS
911 GETTEXT_PACKAGE
912 MSGFMT_OPTS
913 CATALOGS
914 CATOBJEXT
915 GMOFILES
916 INSTOBJEXT
917 INTLLIBS
918 PO_IN_DATADIR_TRUE
919 PO_IN_DATADIR_FALSE
920 POFILES
921 POSUB
922 MKINSTALLDIRS
923 desktopentrydir
924 serviceentrydir
925 pixmapdir
926 icon_26x26dir
927 icon_34x34dir
928 icon_40x40dir
929 icon_50x50dir
930 icon_scalabledir
931 pluginlibdir
932 plugindesktopentrydir
933 LIBOBJS
934 LTLIBOBJS'
935 ac_subst_files=''
936 ac_precious_vars='build_alias
937 host_alias
938 target_alias
940 CFLAGS
941 LDFLAGS
942 LIBS
943 CPPFLAGS
946 CXXFLAGS
948 CXXCPP
950 FFLAGS
951 PKG_CONFIG
952 HILDON_CFLAGS
953 HILDON_LIBS
954 DBUS_CFLAGS
955 DBUS_LIBS
956 OSSO_CFLAGS
957 OSSO_LIBS
958 SQL3_CFLAGS
959 SQL3_LIBS
960 SHARINGDIALOG_CFLAGS
961 SHARINGDIALOG_LIBS'
964 # Initialize some variables set by options.
965 ac_init_help=
966 ac_init_version=false
967 # The variables have the same names as the options, with
968 # dashes changed to underlines.
969 cache_file=/dev/null
970 exec_prefix=NONE
971 no_create=
972 no_recursion=
973 prefix=NONE
974 program_prefix=NONE
975 program_suffix=NONE
976 program_transform_name=s,x,x,
977 silent=
978 site=
979 srcdir=
980 verbose=
981 x_includes=NONE
982 x_libraries=NONE
984 # Installation directory options.
985 # These are left unexpanded so users can "make install exec_prefix=/foo"
986 # and all the variables that are supposed to be based on exec_prefix
987 # by default will actually change.
988 # Use braces instead of parens because sh, perl, etc. also accept them.
989 # (The list follows the same order as the GNU Coding Standards.)
990 bindir='${exec_prefix}/bin'
991 sbindir='${exec_prefix}/sbin'
992 libexecdir='${exec_prefix}/libexec'
993 datarootdir='${prefix}/share'
994 datadir='${datarootdir}'
995 sysconfdir='${prefix}/etc'
996 sharedstatedir='${prefix}/com'
997 localstatedir='${prefix}/var'
998 includedir='${prefix}/include'
999 oldincludedir='/usr/include'
1000 docdir='${datarootdir}/doc/${PACKAGE}'
1001 infodir='${datarootdir}/info'
1002 htmldir='${docdir}'
1003 dvidir='${docdir}'
1004 pdfdir='${docdir}'
1005 psdir='${docdir}'
1006 libdir='${exec_prefix}/lib'
1007 localedir='${datarootdir}/locale'
1008 mandir='${datarootdir}/man'
1010 ac_prev=
1011 ac_dashdash=
1012 for ac_option
1014 # If the previous option needs an argument, assign it.
1015 if test -n "$ac_prev"; then
1016 eval $ac_prev=\$ac_option
1017 ac_prev=
1018 continue
1021 case $ac_option in
1022 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1023 *) ac_optarg=yes ;;
1024 esac
1026 # Accept the important Cygnus configure options, so we can diagnose typos.
1028 case $ac_dashdash$ac_option in
1030 ac_dashdash=yes ;;
1032 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1033 ac_prev=bindir ;;
1034 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1035 bindir=$ac_optarg ;;
1037 -build | --build | --buil | --bui | --bu)
1038 ac_prev=build_alias ;;
1039 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1040 build_alias=$ac_optarg ;;
1042 -cache-file | --cache-file | --cache-fil | --cache-fi \
1043 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1044 ac_prev=cache_file ;;
1045 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1046 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1047 cache_file=$ac_optarg ;;
1049 --config-cache | -C)
1050 cache_file=config.cache ;;
1052 -datadir | --datadir | --datadi | --datad)
1053 ac_prev=datadir ;;
1054 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1055 datadir=$ac_optarg ;;
1057 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1058 | --dataroo | --dataro | --datar)
1059 ac_prev=datarootdir ;;
1060 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1061 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1062 datarootdir=$ac_optarg ;;
1064 -disable-* | --disable-*)
1065 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1066 # Reject names that are not valid shell variable names.
1067 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1068 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1069 { (exit 1); exit 1; }; }
1070 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1071 eval enable_$ac_feature=no ;;
1073 -docdir | --docdir | --docdi | --doc | --do)
1074 ac_prev=docdir ;;
1075 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1076 docdir=$ac_optarg ;;
1078 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1079 ac_prev=dvidir ;;
1080 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1081 dvidir=$ac_optarg ;;
1083 -enable-* | --enable-*)
1084 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1085 # Reject names that are not valid shell variable names.
1086 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1087 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1088 { (exit 1); exit 1; }; }
1089 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1090 eval enable_$ac_feature=\$ac_optarg ;;
1092 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1093 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1094 | --exec | --exe | --ex)
1095 ac_prev=exec_prefix ;;
1096 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1097 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1098 | --exec=* | --exe=* | --ex=*)
1099 exec_prefix=$ac_optarg ;;
1101 -gas | --gas | --ga | --g)
1102 # Obsolete; use --with-gas.
1103 with_gas=yes ;;
1105 -help | --help | --hel | --he | -h)
1106 ac_init_help=long ;;
1107 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1108 ac_init_help=recursive ;;
1109 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1110 ac_init_help=short ;;
1112 -host | --host | --hos | --ho)
1113 ac_prev=host_alias ;;
1114 -host=* | --host=* | --hos=* | --ho=*)
1115 host_alias=$ac_optarg ;;
1117 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1118 ac_prev=htmldir ;;
1119 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1120 | --ht=*)
1121 htmldir=$ac_optarg ;;
1123 -includedir | --includedir | --includedi | --included | --include \
1124 | --includ | --inclu | --incl | --inc)
1125 ac_prev=includedir ;;
1126 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1127 | --includ=* | --inclu=* | --incl=* | --inc=*)
1128 includedir=$ac_optarg ;;
1130 -infodir | --infodir | --infodi | --infod | --info | --inf)
1131 ac_prev=infodir ;;
1132 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1133 infodir=$ac_optarg ;;
1135 -libdir | --libdir | --libdi | --libd)
1136 ac_prev=libdir ;;
1137 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1138 libdir=$ac_optarg ;;
1140 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1141 | --libexe | --libex | --libe)
1142 ac_prev=libexecdir ;;
1143 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1144 | --libexe=* | --libex=* | --libe=*)
1145 libexecdir=$ac_optarg ;;
1147 -localedir | --localedir | --localedi | --localed | --locale)
1148 ac_prev=localedir ;;
1149 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1150 localedir=$ac_optarg ;;
1152 -localstatedir | --localstatedir | --localstatedi | --localstated \
1153 | --localstate | --localstat | --localsta | --localst | --locals)
1154 ac_prev=localstatedir ;;
1155 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1156 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1157 localstatedir=$ac_optarg ;;
1159 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1160 ac_prev=mandir ;;
1161 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1162 mandir=$ac_optarg ;;
1164 -nfp | --nfp | --nf)
1165 # Obsolete; use --without-fp.
1166 with_fp=no ;;
1168 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1169 | --no-cr | --no-c | -n)
1170 no_create=yes ;;
1172 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1173 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1174 no_recursion=yes ;;
1176 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1177 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1178 | --oldin | --oldi | --old | --ol | --o)
1179 ac_prev=oldincludedir ;;
1180 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1181 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1182 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1183 oldincludedir=$ac_optarg ;;
1185 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1186 ac_prev=prefix ;;
1187 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1188 prefix=$ac_optarg ;;
1190 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1191 | --program-pre | --program-pr | --program-p)
1192 ac_prev=program_prefix ;;
1193 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1194 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1195 program_prefix=$ac_optarg ;;
1197 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1198 | --program-suf | --program-su | --program-s)
1199 ac_prev=program_suffix ;;
1200 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1201 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1202 program_suffix=$ac_optarg ;;
1204 -program-transform-name | --program-transform-name \
1205 | --program-transform-nam | --program-transform-na \
1206 | --program-transform-n | --program-transform- \
1207 | --program-transform | --program-transfor \
1208 | --program-transfo | --program-transf \
1209 | --program-trans | --program-tran \
1210 | --progr-tra | --program-tr | --program-t)
1211 ac_prev=program_transform_name ;;
1212 -program-transform-name=* | --program-transform-name=* \
1213 | --program-transform-nam=* | --program-transform-na=* \
1214 | --program-transform-n=* | --program-transform-=* \
1215 | --program-transform=* | --program-transfor=* \
1216 | --program-transfo=* | --program-transf=* \
1217 | --program-trans=* | --program-tran=* \
1218 | --progr-tra=* | --program-tr=* | --program-t=*)
1219 program_transform_name=$ac_optarg ;;
1221 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1222 ac_prev=pdfdir ;;
1223 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1224 pdfdir=$ac_optarg ;;
1226 -psdir | --psdir | --psdi | --psd | --ps)
1227 ac_prev=psdir ;;
1228 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1229 psdir=$ac_optarg ;;
1231 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1232 | -silent | --silent | --silen | --sile | --sil)
1233 silent=yes ;;
1235 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1236 ac_prev=sbindir ;;
1237 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1238 | --sbi=* | --sb=*)
1239 sbindir=$ac_optarg ;;
1241 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1242 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1243 | --sharedst | --shareds | --shared | --share | --shar \
1244 | --sha | --sh)
1245 ac_prev=sharedstatedir ;;
1246 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1247 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1248 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1249 | --sha=* | --sh=*)
1250 sharedstatedir=$ac_optarg ;;
1252 -site | --site | --sit)
1253 ac_prev=site ;;
1254 -site=* | --site=* | --sit=*)
1255 site=$ac_optarg ;;
1257 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1258 ac_prev=srcdir ;;
1259 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1260 srcdir=$ac_optarg ;;
1262 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1263 | --syscon | --sysco | --sysc | --sys | --sy)
1264 ac_prev=sysconfdir ;;
1265 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1266 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1267 sysconfdir=$ac_optarg ;;
1269 -target | --target | --targe | --targ | --tar | --ta | --t)
1270 ac_prev=target_alias ;;
1271 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1272 target_alias=$ac_optarg ;;
1274 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1275 verbose=yes ;;
1277 -version | --version | --versio | --versi | --vers | -V)
1278 ac_init_version=: ;;
1280 -with-* | --with-*)
1281 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1282 # Reject names that are not valid shell variable names.
1283 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1284 { echo "$as_me: error: invalid package name: $ac_package" >&2
1285 { (exit 1); exit 1; }; }
1286 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1287 eval with_$ac_package=\$ac_optarg ;;
1289 -without-* | --without-*)
1290 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1291 # Reject names that are not valid shell variable names.
1292 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1293 { echo "$as_me: error: invalid package name: $ac_package" >&2
1294 { (exit 1); exit 1; }; }
1295 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1296 eval with_$ac_package=no ;;
1298 --x)
1299 # Obsolete; use --with-x.
1300 with_x=yes ;;
1302 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1303 | --x-incl | --x-inc | --x-in | --x-i)
1304 ac_prev=x_includes ;;
1305 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1306 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1307 x_includes=$ac_optarg ;;
1309 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1310 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1311 ac_prev=x_libraries ;;
1312 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1313 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1314 x_libraries=$ac_optarg ;;
1316 -*) { echo "$as_me: error: unrecognized option: $ac_option
1317 Try \`$0 --help' for more information." >&2
1318 { (exit 1); exit 1; }; }
1321 *=*)
1322 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1323 # Reject names that are not valid shell variable names.
1324 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1325 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1326 { (exit 1); exit 1; }; }
1327 eval $ac_envvar=\$ac_optarg
1328 export $ac_envvar ;;
1331 # FIXME: should be removed in autoconf 3.0.
1332 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1333 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1334 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1335 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1338 esac
1339 done
1341 if test -n "$ac_prev"; then
1342 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1343 { echo "$as_me: error: missing argument to $ac_option" >&2
1344 { (exit 1); exit 1; }; }
1347 # Be sure to have absolute directory names.
1348 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1349 datadir sysconfdir sharedstatedir localstatedir includedir \
1350 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1351 libdir localedir mandir
1353 eval ac_val=\$$ac_var
1354 case $ac_val in
1355 [\\/$]* | ?:[\\/]* ) continue;;
1356 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1357 esac
1358 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1359 { (exit 1); exit 1; }; }
1360 done
1362 # There might be people who depend on the old broken behavior: `$host'
1363 # used to hold the argument of --host etc.
1364 # FIXME: To remove some day.
1365 build=$build_alias
1366 host=$host_alias
1367 target=$target_alias
1369 # FIXME: To remove some day.
1370 if test "x$host_alias" != x; then
1371 if test "x$build_alias" = x; then
1372 cross_compiling=maybe
1373 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1374 If a cross compiler is detected then cross compile mode will be used." >&2
1375 elif test "x$build_alias" != "x$host_alias"; then
1376 cross_compiling=yes
1380 ac_tool_prefix=
1381 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1383 test "$silent" = yes && exec 6>/dev/null
1386 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1387 ac_ls_di=`ls -di .` &&
1388 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1389 { echo "$as_me: error: Working directory cannot be determined" >&2
1390 { (exit 1); exit 1; }; }
1391 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1392 { echo "$as_me: error: pwd does not report name of working directory" >&2
1393 { (exit 1); exit 1; }; }
1396 # Find the source files, if location was not specified.
1397 if test -z "$srcdir"; then
1398 ac_srcdir_defaulted=yes
1399 # Try the directory containing this script, then the parent directory.
1400 ac_confdir=`$as_dirname -- "$0" ||
1401 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1402 X"$0" : 'X\(//\)[^/]' \| \
1403 X"$0" : 'X\(//\)$' \| \
1404 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1405 echo X"$0" |
1406 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1407 s//\1/
1410 /^X\(\/\/\)[^/].*/{
1411 s//\1/
1414 /^X\(\/\/\)$/{
1415 s//\1/
1418 /^X\(\/\).*/{
1419 s//\1/
1422 s/.*/./; q'`
1423 srcdir=$ac_confdir
1424 if test ! -r "$srcdir/$ac_unique_file"; then
1425 srcdir=..
1427 else
1428 ac_srcdir_defaulted=no
1430 if test ! -r "$srcdir/$ac_unique_file"; then
1431 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1432 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1433 { (exit 1); exit 1; }; }
1435 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1436 ac_abs_confdir=`(
1437 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1438 { (exit 1); exit 1; }; }
1439 pwd)`
1440 # When building in place, set srcdir=.
1441 if test "$ac_abs_confdir" = "$ac_pwd"; then
1442 srcdir=.
1444 # Remove unnecessary trailing slashes from srcdir.
1445 # Double slashes in file names in object file debugging info
1446 # mess up M-x gdb in Emacs.
1447 case $srcdir in
1448 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1449 esac
1450 for ac_var in $ac_precious_vars; do
1451 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1452 eval ac_env_${ac_var}_value=\$${ac_var}
1453 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1454 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1455 done
1458 # Report the --help message.
1460 if test "$ac_init_help" = "long"; then
1461 # Omit some internal or obsolete options to make the list less imposing.
1462 # This message is too long to be a string in the A/UX 3.1 sh.
1463 cat <<_ACEOF
1464 \`configure' configures this package to adapt to many kinds of systems.
1466 Usage: $0 [OPTION]... [VAR=VALUE]...
1468 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1469 VAR=VALUE. See below for descriptions of some of the useful variables.
1471 Defaults for the options are specified in brackets.
1473 Configuration:
1474 -h, --help display this help and exit
1475 --help=short display options specific to this package
1476 --help=recursive display the short help of all the included packages
1477 -V, --version display version information and exit
1478 -q, --quiet, --silent do not print \`checking...' messages
1479 --cache-file=FILE cache test results in FILE [disabled]
1480 -C, --config-cache alias for \`--cache-file=config.cache'
1481 -n, --no-create do not create output files
1482 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1484 Installation directories:
1485 --prefix=PREFIX install architecture-independent files in PREFIX
1486 [$ac_default_prefix]
1487 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1488 [PREFIX]
1490 By default, \`make install' will install all the files in
1491 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1492 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1493 for instance \`--prefix=\$HOME'.
1495 For better control, use the options below.
1497 Fine tuning of the installation directories:
1498 --bindir=DIR user executables [EPREFIX/bin]
1499 --sbindir=DIR system admin executables [EPREFIX/sbin]
1500 --libexecdir=DIR program executables [EPREFIX/libexec]
1501 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1502 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1503 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1504 --libdir=DIR object code libraries [EPREFIX/lib]
1505 --includedir=DIR C header files [PREFIX/include]
1506 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1507 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1508 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1509 --infodir=DIR info documentation [DATAROOTDIR/info]
1510 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1511 --mandir=DIR man documentation [DATAROOTDIR/man]
1512 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1513 --htmldir=DIR html documentation [DOCDIR]
1514 --dvidir=DIR dvi documentation [DOCDIR]
1515 --pdfdir=DIR pdf documentation [DOCDIR]
1516 --psdir=DIR ps documentation [DOCDIR]
1517 _ACEOF
1519 cat <<\_ACEOF
1521 Program names:
1522 --program-prefix=PREFIX prepend PREFIX to installed program names
1523 --program-suffix=SUFFIX append SUFFIX to installed program names
1524 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1526 System types:
1527 --build=BUILD configure for building on BUILD [guessed]
1528 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1529 _ACEOF
1532 if test -n "$ac_init_help"; then
1534 cat <<\_ACEOF
1536 Optional Features:
1537 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1538 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1539 --disable-dependency-tracking Speeds up one-time builds
1540 --enable-dependency-tracking Do not reject slow dependency extractors
1541 --enable-shared[=PKGS] build shared libraries [default=yes]
1542 --enable-static[=PKGS] build static libraries [default=yes]
1543 --enable-fast-install[=PKGS]
1544 optimize for fast installation [default=yes]
1545 --disable-libtool-lock avoid locking (might break parallel builds)
1546 --disable-nls do not use Native Language Support
1547 --enable-debug Debugging (default=no)
1549 Optional Packages:
1550 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1551 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1552 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1553 --with-pic try to use only PIC/non-PIC objects [default=use
1554 both]
1555 --with-tags[=TAGS] include additional configurations [automatic]
1557 Some influential environment variables:
1558 CC C compiler command
1559 CFLAGS C compiler flags
1560 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1561 nonstandard directory <lib dir>
1562 LIBS libraries to pass to the linker, e.g. -l<library>
1563 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1564 you have headers in a nonstandard directory <include dir>
1565 CPP C preprocessor
1566 CXX C++ compiler command
1567 CXXFLAGS C++ compiler flags
1568 CXXCPP C++ preprocessor
1569 F77 Fortran 77 compiler command
1570 FFLAGS Fortran 77 compiler flags
1571 PKG_CONFIG path to pkg-config utility
1572 HILDON_CFLAGS
1573 C compiler flags for HILDON, overriding pkg-config
1574 HILDON_LIBS linker flags for HILDON, overriding pkg-config
1575 DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
1576 DBUS_LIBS linker flags for DBUS, overriding pkg-config
1577 OSSO_CFLAGS C compiler flags for OSSO, overriding pkg-config
1578 OSSO_LIBS linker flags for OSSO, overriding pkg-config
1579 SQL3_CFLAGS C compiler flags for SQL3, overriding pkg-config
1580 SQL3_LIBS linker flags for SQL3, overriding pkg-config
1581 SHARINGDIALOG_CFLAGS
1582 C compiler flags for SHARINGDIALOG, overriding pkg-config
1583 SHARINGDIALOG_LIBS
1584 linker flags for SHARINGDIALOG, overriding pkg-config
1586 Use these variables to override the choices made by `configure' or to help
1587 it to find libraries and programs with nonstandard names/locations.
1589 _ACEOF
1590 ac_status=$?
1593 if test "$ac_init_help" = "recursive"; then
1594 # If there are subdirs, report their specific --help.
1595 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1596 test -d "$ac_dir" || continue
1597 ac_builddir=.
1599 case "$ac_dir" in
1600 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1602 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1603 # A ".." for each directory in $ac_dir_suffix.
1604 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1605 case $ac_top_builddir_sub in
1606 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1607 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1608 esac ;;
1609 esac
1610 ac_abs_top_builddir=$ac_pwd
1611 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1612 # for backward compatibility:
1613 ac_top_builddir=$ac_top_build_prefix
1615 case $srcdir in
1616 .) # We are building in place.
1617 ac_srcdir=.
1618 ac_top_srcdir=$ac_top_builddir_sub
1619 ac_abs_top_srcdir=$ac_pwd ;;
1620 [\\/]* | ?:[\\/]* ) # Absolute name.
1621 ac_srcdir=$srcdir$ac_dir_suffix;
1622 ac_top_srcdir=$srcdir
1623 ac_abs_top_srcdir=$srcdir ;;
1624 *) # Relative name.
1625 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1626 ac_top_srcdir=$ac_top_build_prefix$srcdir
1627 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1628 esac
1629 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1631 cd "$ac_dir" || { ac_status=$?; continue; }
1632 # Check for guested configure.
1633 if test -f "$ac_srcdir/configure.gnu"; then
1634 echo &&
1635 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1636 elif test -f "$ac_srcdir/configure"; then
1637 echo &&
1638 $SHELL "$ac_srcdir/configure" --help=recursive
1639 else
1640 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1641 fi || ac_status=$?
1642 cd "$ac_pwd" || { ac_status=$?; break; }
1643 done
1646 test -n "$ac_init_help" && exit $ac_status
1647 if $ac_init_version; then
1648 cat <<\_ACEOF
1649 configure
1650 generated by GNU Autoconf 2.61
1652 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1653 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1654 This configure script is free software; the Free Software Foundation
1655 gives unlimited permission to copy, distribute and modify it.
1656 _ACEOF
1657 exit
1659 cat >config.log <<_ACEOF
1660 This file contains any messages produced by compilers while
1661 running configure, to aid debugging if configure makes a mistake.
1663 It was created by $as_me, which was
1664 generated by GNU Autoconf 2.61. Invocation command line was
1666 $ $0 $@
1668 _ACEOF
1669 exec 5>>config.log
1671 cat <<_ASUNAME
1672 ## --------- ##
1673 ## Platform. ##
1674 ## --------- ##
1676 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1677 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1678 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1679 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1680 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1682 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1683 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1685 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1686 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1687 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1688 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1689 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1690 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1691 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1693 _ASUNAME
1695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1696 for as_dir in $PATH
1698 IFS=$as_save_IFS
1699 test -z "$as_dir" && as_dir=.
1700 echo "PATH: $as_dir"
1701 done
1702 IFS=$as_save_IFS
1704 } >&5
1706 cat >&5 <<_ACEOF
1709 ## ----------- ##
1710 ## Core tests. ##
1711 ## ----------- ##
1713 _ACEOF
1716 # Keep a trace of the command line.
1717 # Strip out --no-create and --no-recursion so they do not pile up.
1718 # Strip out --silent because we don't want to record it for future runs.
1719 # Also quote any args containing shell meta-characters.
1720 # Make two passes to allow for proper duplicate-argument suppression.
1721 ac_configure_args=
1722 ac_configure_args0=
1723 ac_configure_args1=
1724 ac_must_keep_next=false
1725 for ac_pass in 1 2
1727 for ac_arg
1729 case $ac_arg in
1730 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1731 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1732 | -silent | --silent | --silen | --sile | --sil)
1733 continue ;;
1734 *\'*)
1735 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1736 esac
1737 case $ac_pass in
1738 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1740 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1741 if test $ac_must_keep_next = true; then
1742 ac_must_keep_next=false # Got value, back to normal.
1743 else
1744 case $ac_arg in
1745 *=* | --config-cache | -C | -disable-* | --disable-* \
1746 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1747 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1748 | -with-* | --with-* | -without-* | --without-* | --x)
1749 case "$ac_configure_args0 " in
1750 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1751 esac
1753 -* ) ac_must_keep_next=true ;;
1754 esac
1756 ac_configure_args="$ac_configure_args '$ac_arg'"
1758 esac
1759 done
1760 done
1761 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1762 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1764 # When interrupted or exit'd, cleanup temporary files, and complete
1765 # config.log. We remove comments because anyway the quotes in there
1766 # would cause problems or look ugly.
1767 # WARNING: Use '\'' to represent an apostrophe within the trap.
1768 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1769 trap 'exit_status=$?
1770 # Save into config.log some information that might help in debugging.
1772 echo
1774 cat <<\_ASBOX
1775 ## ---------------- ##
1776 ## Cache variables. ##
1777 ## ---------------- ##
1778 _ASBOX
1779 echo
1780 # The following way of writing the cache mishandles newlines in values,
1782 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1783 eval ac_val=\$$ac_var
1784 case $ac_val in #(
1785 *${as_nl}*)
1786 case $ac_var in #(
1787 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1788 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1789 esac
1790 case $ac_var in #(
1791 _ | IFS | as_nl) ;; #(
1792 *) $as_unset $ac_var ;;
1793 esac ;;
1794 esac
1795 done
1796 (set) 2>&1 |
1797 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1798 *${as_nl}ac_space=\ *)
1799 sed -n \
1800 "s/'\''/'\''\\\\'\'''\''/g;
1801 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1802 ;; #(
1804 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1806 esac |
1807 sort
1809 echo
1811 cat <<\_ASBOX
1812 ## ----------------- ##
1813 ## Output variables. ##
1814 ## ----------------- ##
1815 _ASBOX
1816 echo
1817 for ac_var in $ac_subst_vars
1819 eval ac_val=\$$ac_var
1820 case $ac_val in
1821 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1822 esac
1823 echo "$ac_var='\''$ac_val'\''"
1824 done | sort
1825 echo
1827 if test -n "$ac_subst_files"; then
1828 cat <<\_ASBOX
1829 ## ------------------- ##
1830 ## File substitutions. ##
1831 ## ------------------- ##
1832 _ASBOX
1833 echo
1834 for ac_var in $ac_subst_files
1836 eval ac_val=\$$ac_var
1837 case $ac_val in
1838 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1839 esac
1840 echo "$ac_var='\''$ac_val'\''"
1841 done | sort
1842 echo
1845 if test -s confdefs.h; then
1846 cat <<\_ASBOX
1847 ## ----------- ##
1848 ## confdefs.h. ##
1849 ## ----------- ##
1850 _ASBOX
1851 echo
1852 cat confdefs.h
1853 echo
1855 test "$ac_signal" != 0 &&
1856 echo "$as_me: caught signal $ac_signal"
1857 echo "$as_me: exit $exit_status"
1858 } >&5
1859 rm -f core *.core core.conftest.* &&
1860 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1861 exit $exit_status
1863 for ac_signal in 1 2 13 15; do
1864 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1865 done
1866 ac_signal=0
1868 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1869 rm -f -r conftest* confdefs.h
1871 # Predefined preprocessor variables.
1873 cat >>confdefs.h <<_ACEOF
1874 #define PACKAGE_NAME "$PACKAGE_NAME"
1875 _ACEOF
1878 cat >>confdefs.h <<_ACEOF
1879 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1880 _ACEOF
1883 cat >>confdefs.h <<_ACEOF
1884 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1885 _ACEOF
1888 cat >>confdefs.h <<_ACEOF
1889 #define PACKAGE_STRING "$PACKAGE_STRING"
1890 _ACEOF
1893 cat >>confdefs.h <<_ACEOF
1894 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1895 _ACEOF
1898 # Let the site file select an alternate cache file if it wants to.
1899 # Prefer explicitly selected file to automatically selected ones.
1900 if test -n "$CONFIG_SITE"; then
1901 set x "$CONFIG_SITE"
1902 elif test "x$prefix" != xNONE; then
1903 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1904 else
1905 set x "$ac_default_prefix/share/config.site" \
1906 "$ac_default_prefix/etc/config.site"
1908 shift
1909 for ac_site_file
1911 if test -r "$ac_site_file"; then
1912 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1913 echo "$as_me: loading site script $ac_site_file" >&6;}
1914 sed 's/^/| /' "$ac_site_file" >&5
1915 . "$ac_site_file"
1917 done
1919 if test -r "$cache_file"; then
1920 # Some versions of bash will fail to source /dev/null (special
1921 # files actually), so we avoid doing that.
1922 if test -f "$cache_file"; then
1923 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1924 echo "$as_me: loading cache $cache_file" >&6;}
1925 case $cache_file in
1926 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1927 *) . "./$cache_file";;
1928 esac
1930 else
1931 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1932 echo "$as_me: creating cache $cache_file" >&6;}
1933 >$cache_file
1936 # Check that the precious variables saved in the cache have kept the same
1937 # value.
1938 ac_cache_corrupted=false
1939 for ac_var in $ac_precious_vars; do
1940 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1941 eval ac_new_set=\$ac_env_${ac_var}_set
1942 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1943 eval ac_new_val=\$ac_env_${ac_var}_value
1944 case $ac_old_set,$ac_new_set in
1945 set,)
1946 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1947 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1948 ac_cache_corrupted=: ;;
1949 ,set)
1950 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1951 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1952 ac_cache_corrupted=: ;;
1953 ,);;
1955 if test "x$ac_old_val" != "x$ac_new_val"; then
1956 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1957 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1958 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1959 echo "$as_me: former value: $ac_old_val" >&2;}
1960 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1961 echo "$as_me: current value: $ac_new_val" >&2;}
1962 ac_cache_corrupted=:
1963 fi;;
1964 esac
1965 # Pass precious variables to config.status.
1966 if test "$ac_new_set" = set; then
1967 case $ac_new_val in
1968 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1969 *) ac_arg=$ac_var=$ac_new_val ;;
1970 esac
1971 case " $ac_configure_args " in
1972 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1973 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1974 esac
1976 done
1977 if $ac_cache_corrupted; then
1978 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1979 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1980 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1981 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1982 { (exit 1); exit 1; }; }
2001 ac_ext=c
2002 ac_cpp='$CPP $CPPFLAGS'
2003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2008 am__api_version="1.7"
2009 ac_aux_dir=
2010 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2011 if test -f "$ac_dir/install-sh"; then
2012 ac_aux_dir=$ac_dir
2013 ac_install_sh="$ac_aux_dir/install-sh -c"
2014 break
2015 elif test -f "$ac_dir/install.sh"; then
2016 ac_aux_dir=$ac_dir
2017 ac_install_sh="$ac_aux_dir/install.sh -c"
2018 break
2019 elif test -f "$ac_dir/shtool"; then
2020 ac_aux_dir=$ac_dir
2021 ac_install_sh="$ac_aux_dir/shtool install -c"
2022 break
2024 done
2025 if test -z "$ac_aux_dir"; then
2026 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2027 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2028 { (exit 1); exit 1; }; }
2031 # These three variables are undocumented and unsupported,
2032 # and are intended to be withdrawn in a future Autoconf release.
2033 # They can cause serious problems if a builder's source tree is in a directory
2034 # whose full name contains unusual characters.
2035 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2036 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2037 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2040 # Find a good install program. We prefer a C program (faster),
2041 # so one script is as good as another. But avoid the broken or
2042 # incompatible versions:
2043 # SysV /etc/install, /usr/sbin/install
2044 # SunOS /usr/etc/install
2045 # IRIX /sbin/install
2046 # AIX /bin/install
2047 # AmigaOS /C/install, which installs bootblocks on floppy discs
2048 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2049 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2050 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2051 # OS/2's system install, which has a completely different semantic
2052 # ./install, which can be erroneously created by make from ./install.sh.
2053 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2054 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2055 if test -z "$INSTALL"; then
2056 if test "${ac_cv_path_install+set}" = set; then
2057 echo $ECHO_N "(cached) $ECHO_C" >&6
2058 else
2059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2060 for as_dir in $PATH
2062 IFS=$as_save_IFS
2063 test -z "$as_dir" && as_dir=.
2064 # Account for people who put trailing slashes in PATH elements.
2065 case $as_dir/ in
2066 ./ | .// | /cC/* | \
2067 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2068 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2069 /usr/ucb/* ) ;;
2071 # OSF1 and SCO ODT 3.0 have their own names for install.
2072 # Don't use installbsd from OSF since it installs stuff as root
2073 # by default.
2074 for ac_prog in ginstall scoinst install; do
2075 for ac_exec_ext in '' $ac_executable_extensions; do
2076 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2077 if test $ac_prog = install &&
2078 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2079 # AIX install. It has an incompatible calling convention.
2081 elif test $ac_prog = install &&
2082 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2083 # program-specific install script used by HP pwplus--don't use.
2085 else
2086 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2087 break 3
2090 done
2091 done
2093 esac
2094 done
2095 IFS=$as_save_IFS
2099 if test "${ac_cv_path_install+set}" = set; then
2100 INSTALL=$ac_cv_path_install
2101 else
2102 # As a last resort, use the slow shell script. Don't cache a
2103 # value for INSTALL within a source directory, because that will
2104 # break other packages using the cache if that directory is
2105 # removed, or if the value is a relative name.
2106 INSTALL=$ac_install_sh
2109 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2110 echo "${ECHO_T}$INSTALL" >&6; }
2112 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2113 # It thinks the first close brace ends the variable substitution.
2114 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2116 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2118 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2120 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2121 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2122 # Just in case
2123 sleep 1
2124 echo timestamp > conftest.file
2125 # Do `set' in a subshell so we don't clobber the current shell's
2126 # arguments. Must try -L first in case configure is actually a
2127 # symlink; some systems play weird games with the mod time of symlinks
2128 # (eg FreeBSD returns the mod time of the symlink's containing
2129 # directory).
2130 if (
2131 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2132 if test "$*" = "X"; then
2133 # -L didn't work.
2134 set X `ls -t $srcdir/configure conftest.file`
2136 rm -f conftest.file
2137 if test "$*" != "X $srcdir/configure conftest.file" \
2138 && test "$*" != "X conftest.file $srcdir/configure"; then
2140 # If neither matched, then we have a broken ls. This can happen
2141 # if, for instance, CONFIG_SHELL is bash and it inherits a
2142 # broken ls alias from the environment. This has actually
2143 # happened. Such a system could not be considered "sane".
2144 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2145 alias in your environment" >&5
2146 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2147 alias in your environment" >&2;}
2148 { (exit 1); exit 1; }; }
2151 test "$2" = conftest.file
2153 then
2154 # Ok.
2156 else
2157 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2158 Check your system clock" >&5
2159 echo "$as_me: error: newly created file is older than distributed files!
2160 Check your system clock" >&2;}
2161 { (exit 1); exit 1; }; }
2163 { echo "$as_me:$LINENO: result: yes" >&5
2164 echo "${ECHO_T}yes" >&6; }
2165 test "$program_prefix" != NONE &&
2166 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2167 # Use a double $ so make ignores it.
2168 test "$program_suffix" != NONE &&
2169 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2170 # Double any \ or $. echo might interpret backslashes.
2171 # By default was `s,x,x', remove it if useless.
2172 cat <<\_ACEOF >conftest.sed
2173 s/[\\$]/&&/g;s/;s,x,x,$//
2174 _ACEOF
2175 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2176 rm -f conftest.sed
2179 # expand $ac_aux_dir to an absolute path
2180 am_aux_dir=`cd $ac_aux_dir && pwd`
2182 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2183 # Use eval to expand $SHELL
2184 if eval "$MISSING --run true"; then
2185 am_missing_run="$MISSING --run "
2186 else
2187 am_missing_run=
2188 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2189 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2192 for ac_prog in gawk mawk nawk awk
2194 # Extract the first word of "$ac_prog", so it can be a program name with args.
2195 set dummy $ac_prog; ac_word=$2
2196 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2198 if test "${ac_cv_prog_AWK+set}" = set; then
2199 echo $ECHO_N "(cached) $ECHO_C" >&6
2200 else
2201 if test -n "$AWK"; then
2202 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2203 else
2204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2205 for as_dir in $PATH
2207 IFS=$as_save_IFS
2208 test -z "$as_dir" && as_dir=.
2209 for ac_exec_ext in '' $ac_executable_extensions; do
2210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2211 ac_cv_prog_AWK="$ac_prog"
2212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2213 break 2
2215 done
2216 done
2217 IFS=$as_save_IFS
2221 AWK=$ac_cv_prog_AWK
2222 if test -n "$AWK"; then
2223 { echo "$as_me:$LINENO: result: $AWK" >&5
2224 echo "${ECHO_T}$AWK" >&6; }
2225 else
2226 { echo "$as_me:$LINENO: result: no" >&5
2227 echo "${ECHO_T}no" >&6; }
2231 test -n "$AWK" && break
2232 done
2234 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2235 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2236 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2237 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2238 echo $ECHO_N "(cached) $ECHO_C" >&6
2239 else
2240 cat >conftest.make <<\_ACEOF
2241 SHELL = /bin/sh
2242 all:
2243 @echo '@@@%%%=$(MAKE)=@@@%%%'
2244 _ACEOF
2245 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2246 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2247 *@@@%%%=?*=@@@%%%*)
2248 eval ac_cv_prog_make_${ac_make}_set=yes;;
2250 eval ac_cv_prog_make_${ac_make}_set=no;;
2251 esac
2252 rm -f conftest.make
2254 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2255 { echo "$as_me:$LINENO: result: yes" >&5
2256 echo "${ECHO_T}yes" >&6; }
2257 SET_MAKE=
2258 else
2259 { echo "$as_me:$LINENO: result: no" >&5
2260 echo "${ECHO_T}no" >&6; }
2261 SET_MAKE="MAKE=${MAKE-make}"
2264 rm -rf .tst 2>/dev/null
2265 mkdir .tst 2>/dev/null
2266 if test -d .tst; then
2267 am__leading_dot=.
2268 else
2269 am__leading_dot=_
2271 rmdir .tst 2>/dev/null
2273 # test to see if srcdir already configured
2274 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2275 test -f $srcdir/config.status; then
2276 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2277 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2278 { (exit 1); exit 1; }; }
2281 # test whether we have cygpath
2282 if test -z "$CYGPATH_W"; then
2283 if (cygpath --version) >/dev/null 2>/dev/null; then
2284 CYGPATH_W='cygpath -w'
2285 else
2286 CYGPATH_W=echo
2291 # Define the identity of the package.
2292 PACKAGE=maepad
2293 VERSION=1.9
2296 cat >>confdefs.h <<_ACEOF
2297 #define PACKAGE "$PACKAGE"
2298 _ACEOF
2301 cat >>confdefs.h <<_ACEOF
2302 #define VERSION "$VERSION"
2303 _ACEOF
2305 # Some tools Automake needs.
2307 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2310 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2313 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2316 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2319 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2322 AMTAR=${AMTAR-"${am_missing_run}tar"}
2324 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2326 # Installed binaries are usually stripped using `strip' when the user
2327 # run `make install-strip'. However `strip' might not be the right
2328 # tool to use in cross-compilation environments, therefore Automake
2329 # will honor the `STRIP' environment variable to overrule this program.
2330 if test "$cross_compiling" != no; then
2331 if test -n "$ac_tool_prefix"; then
2332 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2333 set dummy ${ac_tool_prefix}strip; ac_word=$2
2334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2336 if test "${ac_cv_prog_STRIP+set}" = set; then
2337 echo $ECHO_N "(cached) $ECHO_C" >&6
2338 else
2339 if test -n "$STRIP"; then
2340 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2341 else
2342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2343 for as_dir in $PATH
2345 IFS=$as_save_IFS
2346 test -z "$as_dir" && as_dir=.
2347 for ac_exec_ext in '' $ac_executable_extensions; do
2348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2349 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2351 break 2
2353 done
2354 done
2355 IFS=$as_save_IFS
2359 STRIP=$ac_cv_prog_STRIP
2360 if test -n "$STRIP"; then
2361 { echo "$as_me:$LINENO: result: $STRIP" >&5
2362 echo "${ECHO_T}$STRIP" >&6; }
2363 else
2364 { echo "$as_me:$LINENO: result: no" >&5
2365 echo "${ECHO_T}no" >&6; }
2370 if test -z "$ac_cv_prog_STRIP"; then
2371 ac_ct_STRIP=$STRIP
2372 # Extract the first word of "strip", so it can be a program name with args.
2373 set dummy strip; ac_word=$2
2374 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2376 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2377 echo $ECHO_N "(cached) $ECHO_C" >&6
2378 else
2379 if test -n "$ac_ct_STRIP"; then
2380 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2381 else
2382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2383 for as_dir in $PATH
2385 IFS=$as_save_IFS
2386 test -z "$as_dir" && as_dir=.
2387 for ac_exec_ext in '' $ac_executable_extensions; do
2388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2389 ac_cv_prog_ac_ct_STRIP="strip"
2390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2391 break 2
2393 done
2394 done
2395 IFS=$as_save_IFS
2399 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2400 if test -n "$ac_ct_STRIP"; then
2401 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2402 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2403 else
2404 { echo "$as_me:$LINENO: result: no" >&5
2405 echo "${ECHO_T}no" >&6; }
2408 if test "x$ac_ct_STRIP" = x; then
2409 STRIP=":"
2410 else
2411 case $cross_compiling:$ac_tool_warned in
2412 yes:)
2413 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2414 whose name does not start with the host triplet. If you think this
2415 configuration is useful to you, please write to autoconf@gnu.org." >&5
2416 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2417 whose name does not start with the host triplet. If you think this
2418 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2419 ac_tool_warned=yes ;;
2420 esac
2421 STRIP=$ac_ct_STRIP
2423 else
2424 STRIP="$ac_cv_prog_STRIP"
2428 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2430 # We need awk for the "check" target. The system "awk" is bad on
2431 # some platforms.
2435 ac_config_headers="$ac_config_headers config.h"
2438 # Make sure we can run config.sub.
2439 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2440 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2441 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2442 { (exit 1); exit 1; }; }
2444 { echo "$as_me:$LINENO: checking build system type" >&5
2445 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2446 if test "${ac_cv_build+set}" = set; then
2447 echo $ECHO_N "(cached) $ECHO_C" >&6
2448 else
2449 ac_build_alias=$build_alias
2450 test "x$ac_build_alias" = x &&
2451 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2452 test "x$ac_build_alias" = x &&
2453 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2454 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2455 { (exit 1); exit 1; }; }
2456 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2457 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2458 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2459 { (exit 1); exit 1; }; }
2462 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2463 echo "${ECHO_T}$ac_cv_build" >&6; }
2464 case $ac_cv_build in
2465 *-*-*) ;;
2466 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2467 echo "$as_me: error: invalid value of canonical build" >&2;}
2468 { (exit 1); exit 1; }; };;
2469 esac
2470 build=$ac_cv_build
2471 ac_save_IFS=$IFS; IFS='-'
2472 set x $ac_cv_build
2473 shift
2474 build_cpu=$1
2475 build_vendor=$2
2476 shift; shift
2477 # Remember, the first character of IFS is used to create $*,
2478 # except with old shells:
2479 build_os=$*
2480 IFS=$ac_save_IFS
2481 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2484 { echo "$as_me:$LINENO: checking host system type" >&5
2485 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2486 if test "${ac_cv_host+set}" = set; then
2487 echo $ECHO_N "(cached) $ECHO_C" >&6
2488 else
2489 if test "x$host_alias" = x; then
2490 ac_cv_host=$ac_cv_build
2491 else
2492 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2493 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2494 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2495 { (exit 1); exit 1; }; }
2499 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2500 echo "${ECHO_T}$ac_cv_host" >&6; }
2501 case $ac_cv_host in
2502 *-*-*) ;;
2503 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2504 echo "$as_me: error: invalid value of canonical host" >&2;}
2505 { (exit 1); exit 1; }; };;
2506 esac
2507 host=$ac_cv_host
2508 ac_save_IFS=$IFS; IFS='-'
2509 set x $ac_cv_host
2510 shift
2511 host_cpu=$1
2512 host_vendor=$2
2513 shift; shift
2514 # Remember, the first character of IFS is used to create $*,
2515 # except with old shells:
2516 host_os=$*
2517 IFS=$ac_save_IFS
2518 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2522 ac_ext=c
2523 ac_cpp='$CPP $CPPFLAGS'
2524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2527 if test -n "$ac_tool_prefix"; then
2528 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2529 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2530 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2532 if test "${ac_cv_prog_CC+set}" = set; then
2533 echo $ECHO_N "(cached) $ECHO_C" >&6
2534 else
2535 if test -n "$CC"; then
2536 ac_cv_prog_CC="$CC" # Let the user override the test.
2537 else
2538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2539 for as_dir in $PATH
2541 IFS=$as_save_IFS
2542 test -z "$as_dir" && as_dir=.
2543 for ac_exec_ext in '' $ac_executable_extensions; do
2544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2545 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2547 break 2
2549 done
2550 done
2551 IFS=$as_save_IFS
2555 CC=$ac_cv_prog_CC
2556 if test -n "$CC"; then
2557 { echo "$as_me:$LINENO: result: $CC" >&5
2558 echo "${ECHO_T}$CC" >&6; }
2559 else
2560 { echo "$as_me:$LINENO: result: no" >&5
2561 echo "${ECHO_T}no" >&6; }
2566 if test -z "$ac_cv_prog_CC"; then
2567 ac_ct_CC=$CC
2568 # Extract the first word of "gcc", so it can be a program name with args.
2569 set dummy gcc; ac_word=$2
2570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2572 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2573 echo $ECHO_N "(cached) $ECHO_C" >&6
2574 else
2575 if test -n "$ac_ct_CC"; then
2576 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2577 else
2578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2579 for as_dir in $PATH
2581 IFS=$as_save_IFS
2582 test -z "$as_dir" && as_dir=.
2583 for ac_exec_ext in '' $ac_executable_extensions; do
2584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2585 ac_cv_prog_ac_ct_CC="gcc"
2586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2587 break 2
2589 done
2590 done
2591 IFS=$as_save_IFS
2595 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2596 if test -n "$ac_ct_CC"; then
2597 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2598 echo "${ECHO_T}$ac_ct_CC" >&6; }
2599 else
2600 { echo "$as_me:$LINENO: result: no" >&5
2601 echo "${ECHO_T}no" >&6; }
2604 if test "x$ac_ct_CC" = x; then
2605 CC=""
2606 else
2607 case $cross_compiling:$ac_tool_warned in
2608 yes:)
2609 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2610 whose name does not start with the host triplet. If you think this
2611 configuration is useful to you, please write to autoconf@gnu.org." >&5
2612 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2613 whose name does not start with the host triplet. If you think this
2614 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2615 ac_tool_warned=yes ;;
2616 esac
2617 CC=$ac_ct_CC
2619 else
2620 CC="$ac_cv_prog_CC"
2623 if test -z "$CC"; then
2624 if test -n "$ac_tool_prefix"; then
2625 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2626 set dummy ${ac_tool_prefix}cc; ac_word=$2
2627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2629 if test "${ac_cv_prog_CC+set}" = set; then
2630 echo $ECHO_N "(cached) $ECHO_C" >&6
2631 else
2632 if test -n "$CC"; then
2633 ac_cv_prog_CC="$CC" # Let the user override the test.
2634 else
2635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2636 for as_dir in $PATH
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_CC="${ac_tool_prefix}cc"
2643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2644 break 2
2646 done
2647 done
2648 IFS=$as_save_IFS
2652 CC=$ac_cv_prog_CC
2653 if test -n "$CC"; then
2654 { echo "$as_me:$LINENO: result: $CC" >&5
2655 echo "${ECHO_T}$CC" >&6; }
2656 else
2657 { echo "$as_me:$LINENO: result: no" >&5
2658 echo "${ECHO_T}no" >&6; }
2664 if test -z "$CC"; then
2665 # Extract the first word of "cc", so it can be a program name with args.
2666 set dummy cc; ac_word=$2
2667 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2669 if test "${ac_cv_prog_CC+set}" = set; then
2670 echo $ECHO_N "(cached) $ECHO_C" >&6
2671 else
2672 if test -n "$CC"; then
2673 ac_cv_prog_CC="$CC" # Let the user override the test.
2674 else
2675 ac_prog_rejected=no
2676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2677 for as_dir in $PATH
2679 IFS=$as_save_IFS
2680 test -z "$as_dir" && as_dir=.
2681 for ac_exec_ext in '' $ac_executable_extensions; do
2682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2683 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2684 ac_prog_rejected=yes
2685 continue
2687 ac_cv_prog_CC="cc"
2688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2689 break 2
2691 done
2692 done
2693 IFS=$as_save_IFS
2695 if test $ac_prog_rejected = yes; then
2696 # We found a bogon in the path, so make sure we never use it.
2697 set dummy $ac_cv_prog_CC
2698 shift
2699 if test $# != 0; then
2700 # We chose a different compiler from the bogus one.
2701 # However, it has the same basename, so the bogon will be chosen
2702 # first if we set CC to just the basename; use the full file name.
2703 shift
2704 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2709 CC=$ac_cv_prog_CC
2710 if test -n "$CC"; then
2711 { echo "$as_me:$LINENO: result: $CC" >&5
2712 echo "${ECHO_T}$CC" >&6; }
2713 else
2714 { echo "$as_me:$LINENO: result: no" >&5
2715 echo "${ECHO_T}no" >&6; }
2720 if test -z "$CC"; then
2721 if test -n "$ac_tool_prefix"; then
2722 for ac_prog in cl.exe
2724 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2725 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2726 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2728 if test "${ac_cv_prog_CC+set}" = set; then
2729 echo $ECHO_N "(cached) $ECHO_C" >&6
2730 else
2731 if test -n "$CC"; then
2732 ac_cv_prog_CC="$CC" # Let the user override the test.
2733 else
2734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2735 for as_dir in $PATH
2737 IFS=$as_save_IFS
2738 test -z "$as_dir" && as_dir=.
2739 for ac_exec_ext in '' $ac_executable_extensions; do
2740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2741 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2743 break 2
2745 done
2746 done
2747 IFS=$as_save_IFS
2751 CC=$ac_cv_prog_CC
2752 if test -n "$CC"; then
2753 { echo "$as_me:$LINENO: result: $CC" >&5
2754 echo "${ECHO_T}$CC" >&6; }
2755 else
2756 { echo "$as_me:$LINENO: result: no" >&5
2757 echo "${ECHO_T}no" >&6; }
2761 test -n "$CC" && break
2762 done
2764 if test -z "$CC"; then
2765 ac_ct_CC=$CC
2766 for ac_prog in cl.exe
2768 # Extract the first word of "$ac_prog", so it can be a program name with args.
2769 set dummy $ac_prog; ac_word=$2
2770 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2772 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2773 echo $ECHO_N "(cached) $ECHO_C" >&6
2774 else
2775 if test -n "$ac_ct_CC"; then
2776 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2777 else
2778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2779 for as_dir in $PATH
2781 IFS=$as_save_IFS
2782 test -z "$as_dir" && as_dir=.
2783 for ac_exec_ext in '' $ac_executable_extensions; do
2784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2785 ac_cv_prog_ac_ct_CC="$ac_prog"
2786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2787 break 2
2789 done
2790 done
2791 IFS=$as_save_IFS
2795 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2796 if test -n "$ac_ct_CC"; then
2797 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2798 echo "${ECHO_T}$ac_ct_CC" >&6; }
2799 else
2800 { echo "$as_me:$LINENO: result: no" >&5
2801 echo "${ECHO_T}no" >&6; }
2805 test -n "$ac_ct_CC" && break
2806 done
2808 if test "x$ac_ct_CC" = x; then
2809 CC=""
2810 else
2811 case $cross_compiling:$ac_tool_warned in
2812 yes:)
2813 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2814 whose name does not start with the host triplet. If you think this
2815 configuration is useful to you, please write to autoconf@gnu.org." >&5
2816 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2817 whose name does not start with the host triplet. If you think this
2818 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2819 ac_tool_warned=yes ;;
2820 esac
2821 CC=$ac_ct_CC
2828 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2829 See \`config.log' for more details." >&5
2830 echo "$as_me: error: no acceptable C compiler found in \$PATH
2831 See \`config.log' for more details." >&2;}
2832 { (exit 1); exit 1; }; }
2834 # Provide some information about the compiler.
2835 echo "$as_me:$LINENO: checking for C compiler version" >&5
2836 ac_compiler=`set X $ac_compile; echo $2`
2837 { (ac_try="$ac_compiler --version >&5"
2838 case "(($ac_try" in
2839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2840 *) ac_try_echo=$ac_try;;
2841 esac
2842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2843 (eval "$ac_compiler --version >&5") 2>&5
2844 ac_status=$?
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); }
2847 { (ac_try="$ac_compiler -v >&5"
2848 case "(($ac_try" in
2849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2850 *) ac_try_echo=$ac_try;;
2851 esac
2852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2853 (eval "$ac_compiler -v >&5") 2>&5
2854 ac_status=$?
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); }
2857 { (ac_try="$ac_compiler -V >&5"
2858 case "(($ac_try" in
2859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2860 *) ac_try_echo=$ac_try;;
2861 esac
2862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2863 (eval "$ac_compiler -V >&5") 2>&5
2864 ac_status=$?
2865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866 (exit $ac_status); }
2868 cat >conftest.$ac_ext <<_ACEOF
2869 /* confdefs.h. */
2870 _ACEOF
2871 cat confdefs.h >>conftest.$ac_ext
2872 cat >>conftest.$ac_ext <<_ACEOF
2873 /* end confdefs.h. */
2876 main ()
2880 return 0;
2882 _ACEOF
2883 ac_clean_files_save=$ac_clean_files
2884 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2885 # Try to create an executable without -o first, disregard a.out.
2886 # It will help us diagnose broken compilers, and finding out an intuition
2887 # of exeext.
2888 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2889 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2890 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2892 # List of possible output files, starting from the most likely.
2893 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2894 # only as a last resort. b.out is created by i960 compilers.
2895 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2897 # The IRIX 6 linker writes into existing files which may not be
2898 # executable, retaining their permissions. Remove them first so a
2899 # subsequent execution test works.
2900 ac_rmfiles=
2901 for ac_file in $ac_files
2903 case $ac_file in
2904 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2905 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2906 esac
2907 done
2908 rm -f $ac_rmfiles
2910 if { (ac_try="$ac_link_default"
2911 case "(($ac_try" in
2912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2913 *) ac_try_echo=$ac_try;;
2914 esac
2915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2916 (eval "$ac_link_default") 2>&5
2917 ac_status=$?
2918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919 (exit $ac_status); }; then
2920 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2921 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2922 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2923 # so that the user can short-circuit this test for compilers unknown to
2924 # Autoconf.
2925 for ac_file in $ac_files ''
2927 test -f "$ac_file" || continue
2928 case $ac_file in
2929 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2931 [ab].out )
2932 # We found the default executable, but exeext='' is most
2933 # certainly right.
2934 break;;
2935 *.* )
2936 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2937 then :; else
2938 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2940 # We set ac_cv_exeext here because the later test for it is not
2941 # safe: cross compilers may not add the suffix if given an `-o'
2942 # argument, so we may need to know it at that point already.
2943 # Even if this section looks crufty: it has the advantage of
2944 # actually working.
2945 break;;
2947 break;;
2948 esac
2949 done
2950 test "$ac_cv_exeext" = no && ac_cv_exeext=
2952 else
2953 ac_file=''
2956 { echo "$as_me:$LINENO: result: $ac_file" >&5
2957 echo "${ECHO_T}$ac_file" >&6; }
2958 if test -z "$ac_file"; then
2959 echo "$as_me: failed program was:" >&5
2960 sed 's/^/| /' conftest.$ac_ext >&5
2962 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2963 See \`config.log' for more details." >&5
2964 echo "$as_me: error: C compiler cannot create executables
2965 See \`config.log' for more details." >&2;}
2966 { (exit 77); exit 77; }; }
2969 ac_exeext=$ac_cv_exeext
2971 # Check that the compiler produces executables we can run. If not, either
2972 # the compiler is broken, or we cross compile.
2973 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2974 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2975 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2976 # If not cross compiling, check that we can run a simple program.
2977 if test "$cross_compiling" != yes; then
2978 if { ac_try='./$ac_file'
2979 { (case "(($ac_try" in
2980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2981 *) ac_try_echo=$ac_try;;
2982 esac
2983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2984 (eval "$ac_try") 2>&5
2985 ac_status=$?
2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); }; }; then
2988 cross_compiling=no
2989 else
2990 if test "$cross_compiling" = maybe; then
2991 cross_compiling=yes
2992 else
2993 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2994 If you meant to cross compile, use \`--host'.
2995 See \`config.log' for more details." >&5
2996 echo "$as_me: error: cannot run C compiled programs.
2997 If you meant to cross compile, use \`--host'.
2998 See \`config.log' for more details." >&2;}
2999 { (exit 1); exit 1; }; }
3003 { echo "$as_me:$LINENO: result: yes" >&5
3004 echo "${ECHO_T}yes" >&6; }
3006 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3007 ac_clean_files=$ac_clean_files_save
3008 # Check that the compiler produces executables we can run. If not, either
3009 # the compiler is broken, or we cross compile.
3010 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3011 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3012 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3013 echo "${ECHO_T}$cross_compiling" >&6; }
3015 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3016 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3017 if { (ac_try="$ac_link"
3018 case "(($ac_try" in
3019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020 *) ac_try_echo=$ac_try;;
3021 esac
3022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3023 (eval "$ac_link") 2>&5
3024 ac_status=$?
3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); }; then
3027 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3028 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3029 # work properly (i.e., refer to `conftest.exe'), while it won't with
3030 # `rm'.
3031 for ac_file in conftest.exe conftest conftest.*; do
3032 test -f "$ac_file" || continue
3033 case $ac_file in
3034 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3035 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3036 break;;
3037 * ) break;;
3038 esac
3039 done
3040 else
3041 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3042 See \`config.log' for more details." >&5
3043 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3044 See \`config.log' for more details." >&2;}
3045 { (exit 1); exit 1; }; }
3048 rm -f conftest$ac_cv_exeext
3049 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3050 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3052 rm -f conftest.$ac_ext
3053 EXEEXT=$ac_cv_exeext
3054 ac_exeext=$EXEEXT
3055 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3056 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3057 if test "${ac_cv_objext+set}" = set; then
3058 echo $ECHO_N "(cached) $ECHO_C" >&6
3059 else
3060 cat >conftest.$ac_ext <<_ACEOF
3061 /* confdefs.h. */
3062 _ACEOF
3063 cat confdefs.h >>conftest.$ac_ext
3064 cat >>conftest.$ac_ext <<_ACEOF
3065 /* end confdefs.h. */
3068 main ()
3072 return 0;
3074 _ACEOF
3075 rm -f conftest.o conftest.obj
3076 if { (ac_try="$ac_compile"
3077 case "(($ac_try" in
3078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079 *) ac_try_echo=$ac_try;;
3080 esac
3081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3082 (eval "$ac_compile") 2>&5
3083 ac_status=$?
3084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085 (exit $ac_status); }; then
3086 for ac_file in conftest.o conftest.obj conftest.*; do
3087 test -f "$ac_file" || continue;
3088 case $ac_file in
3089 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3090 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3091 break;;
3092 esac
3093 done
3094 else
3095 echo "$as_me: failed program was:" >&5
3096 sed 's/^/| /' conftest.$ac_ext >&5
3098 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3099 See \`config.log' for more details." >&5
3100 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3101 See \`config.log' for more details." >&2;}
3102 { (exit 1); exit 1; }; }
3105 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3107 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3108 echo "${ECHO_T}$ac_cv_objext" >&6; }
3109 OBJEXT=$ac_cv_objext
3110 ac_objext=$OBJEXT
3111 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3112 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3113 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3114 echo $ECHO_N "(cached) $ECHO_C" >&6
3115 else
3116 cat >conftest.$ac_ext <<_ACEOF
3117 /* confdefs.h. */
3118 _ACEOF
3119 cat confdefs.h >>conftest.$ac_ext
3120 cat >>conftest.$ac_ext <<_ACEOF
3121 /* end confdefs.h. */
3124 main ()
3126 #ifndef __GNUC__
3127 choke me
3128 #endif
3131 return 0;
3133 _ACEOF
3134 rm -f conftest.$ac_objext
3135 if { (ac_try="$ac_compile"
3136 case "(($ac_try" in
3137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138 *) ac_try_echo=$ac_try;;
3139 esac
3140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3141 (eval "$ac_compile") 2>conftest.er1
3142 ac_status=$?
3143 grep -v '^ *+' conftest.er1 >conftest.err
3144 rm -f conftest.er1
3145 cat conftest.err >&5
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); } && {
3148 test -z "$ac_c_werror_flag" ||
3149 test ! -s conftest.err
3150 } && test -s conftest.$ac_objext; then
3151 ac_compiler_gnu=yes
3152 else
3153 echo "$as_me: failed program was:" >&5
3154 sed 's/^/| /' conftest.$ac_ext >&5
3156 ac_compiler_gnu=no
3159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3160 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3163 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3164 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3165 GCC=`test $ac_compiler_gnu = yes && echo yes`
3166 ac_test_CFLAGS=${CFLAGS+set}
3167 ac_save_CFLAGS=$CFLAGS
3168 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3169 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3170 if test "${ac_cv_prog_cc_g+set}" = set; then
3171 echo $ECHO_N "(cached) $ECHO_C" >&6
3172 else
3173 ac_save_c_werror_flag=$ac_c_werror_flag
3174 ac_c_werror_flag=yes
3175 ac_cv_prog_cc_g=no
3176 CFLAGS="-g"
3177 cat >conftest.$ac_ext <<_ACEOF
3178 /* confdefs.h. */
3179 _ACEOF
3180 cat confdefs.h >>conftest.$ac_ext
3181 cat >>conftest.$ac_ext <<_ACEOF
3182 /* end confdefs.h. */
3185 main ()
3189 return 0;
3191 _ACEOF
3192 rm -f conftest.$ac_objext
3193 if { (ac_try="$ac_compile"
3194 case "(($ac_try" in
3195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3196 *) ac_try_echo=$ac_try;;
3197 esac
3198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3199 (eval "$ac_compile") 2>conftest.er1
3200 ac_status=$?
3201 grep -v '^ *+' conftest.er1 >conftest.err
3202 rm -f conftest.er1
3203 cat conftest.err >&5
3204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205 (exit $ac_status); } && {
3206 test -z "$ac_c_werror_flag" ||
3207 test ! -s conftest.err
3208 } && test -s conftest.$ac_objext; then
3209 ac_cv_prog_cc_g=yes
3210 else
3211 echo "$as_me: failed program was:" >&5
3212 sed 's/^/| /' conftest.$ac_ext >&5
3214 CFLAGS=""
3215 cat >conftest.$ac_ext <<_ACEOF
3216 /* confdefs.h. */
3217 _ACEOF
3218 cat confdefs.h >>conftest.$ac_ext
3219 cat >>conftest.$ac_ext <<_ACEOF
3220 /* end confdefs.h. */
3223 main ()
3227 return 0;
3229 _ACEOF
3230 rm -f conftest.$ac_objext
3231 if { (ac_try="$ac_compile"
3232 case "(($ac_try" in
3233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234 *) ac_try_echo=$ac_try;;
3235 esac
3236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3237 (eval "$ac_compile") 2>conftest.er1
3238 ac_status=$?
3239 grep -v '^ *+' conftest.er1 >conftest.err
3240 rm -f conftest.er1
3241 cat conftest.err >&5
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); } && {
3244 test -z "$ac_c_werror_flag" ||
3245 test ! -s conftest.err
3246 } && test -s conftest.$ac_objext; then
3248 else
3249 echo "$as_me: failed program was:" >&5
3250 sed 's/^/| /' conftest.$ac_ext >&5
3252 ac_c_werror_flag=$ac_save_c_werror_flag
3253 CFLAGS="-g"
3254 cat >conftest.$ac_ext <<_ACEOF
3255 /* confdefs.h. */
3256 _ACEOF
3257 cat confdefs.h >>conftest.$ac_ext
3258 cat >>conftest.$ac_ext <<_ACEOF
3259 /* end confdefs.h. */
3262 main ()
3266 return 0;
3268 _ACEOF
3269 rm -f conftest.$ac_objext
3270 if { (ac_try="$ac_compile"
3271 case "(($ac_try" in
3272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273 *) ac_try_echo=$ac_try;;
3274 esac
3275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3276 (eval "$ac_compile") 2>conftest.er1
3277 ac_status=$?
3278 grep -v '^ *+' conftest.er1 >conftest.err
3279 rm -f conftest.er1
3280 cat conftest.err >&5
3281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282 (exit $ac_status); } && {
3283 test -z "$ac_c_werror_flag" ||
3284 test ! -s conftest.err
3285 } && test -s conftest.$ac_objext; then
3286 ac_cv_prog_cc_g=yes
3287 else
3288 echo "$as_me: failed program was:" >&5
3289 sed 's/^/| /' conftest.$ac_ext >&5
3294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3301 ac_c_werror_flag=$ac_save_c_werror_flag
3303 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3304 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3305 if test "$ac_test_CFLAGS" = set; then
3306 CFLAGS=$ac_save_CFLAGS
3307 elif test $ac_cv_prog_cc_g = yes; then
3308 if test "$GCC" = yes; then
3309 CFLAGS="-g -O2"
3310 else
3311 CFLAGS="-g"
3313 else
3314 if test "$GCC" = yes; then
3315 CFLAGS="-O2"
3316 else
3317 CFLAGS=
3320 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3321 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3322 if test "${ac_cv_prog_cc_c89+set}" = set; then
3323 echo $ECHO_N "(cached) $ECHO_C" >&6
3324 else
3325 ac_cv_prog_cc_c89=no
3326 ac_save_CC=$CC
3327 cat >conftest.$ac_ext <<_ACEOF
3328 /* confdefs.h. */
3329 _ACEOF
3330 cat confdefs.h >>conftest.$ac_ext
3331 cat >>conftest.$ac_ext <<_ACEOF
3332 /* end confdefs.h. */
3333 #include <stdarg.h>
3334 #include <stdio.h>
3335 #include <sys/types.h>
3336 #include <sys/stat.h>
3337 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3338 struct buf { int x; };
3339 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3340 static char *e (p, i)
3341 char **p;
3342 int i;
3344 return p[i];
3346 static char *f (char * (*g) (char **, int), char **p, ...)
3348 char *s;
3349 va_list v;
3350 va_start (v,p);
3351 s = g (p, va_arg (v,int));
3352 va_end (v);
3353 return s;
3356 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3357 function prototypes and stuff, but not '\xHH' hex character constants.
3358 These don't provoke an error unfortunately, instead are silently treated
3359 as 'x'. The following induces an error, until -std is added to get
3360 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3361 array size at least. It's necessary to write '\x00'==0 to get something
3362 that's true only with -std. */
3363 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3365 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3366 inside strings and character constants. */
3367 #define FOO(x) 'x'
3368 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3370 int test (int i, double x);
3371 struct s1 {int (*f) (int a);};
3372 struct s2 {int (*f) (double a);};
3373 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3374 int argc;
3375 char **argv;
3377 main ()
3379 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3381 return 0;
3383 _ACEOF
3384 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3385 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3387 CC="$ac_save_CC $ac_arg"
3388 rm -f conftest.$ac_objext
3389 if { (ac_try="$ac_compile"
3390 case "(($ac_try" in
3391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392 *) ac_try_echo=$ac_try;;
3393 esac
3394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3395 (eval "$ac_compile") 2>conftest.er1
3396 ac_status=$?
3397 grep -v '^ *+' conftest.er1 >conftest.err
3398 rm -f conftest.er1
3399 cat conftest.err >&5
3400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401 (exit $ac_status); } && {
3402 test -z "$ac_c_werror_flag" ||
3403 test ! -s conftest.err
3404 } && test -s conftest.$ac_objext; then
3405 ac_cv_prog_cc_c89=$ac_arg
3406 else
3407 echo "$as_me: failed program was:" >&5
3408 sed 's/^/| /' conftest.$ac_ext >&5
3413 rm -f core conftest.err conftest.$ac_objext
3414 test "x$ac_cv_prog_cc_c89" != "xno" && break
3415 done
3416 rm -f conftest.$ac_ext
3417 CC=$ac_save_CC
3420 # AC_CACHE_VAL
3421 case "x$ac_cv_prog_cc_c89" in
3423 { echo "$as_me:$LINENO: result: none needed" >&5
3424 echo "${ECHO_T}none needed" >&6; } ;;
3425 xno)
3426 { echo "$as_me:$LINENO: result: unsupported" >&5
3427 echo "${ECHO_T}unsupported" >&6; } ;;
3429 CC="$CC $ac_cv_prog_cc_c89"
3430 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3431 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3432 esac
3435 ac_ext=c
3436 ac_cpp='$CPP $CPPFLAGS'
3437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3440 DEPDIR="${am__leading_dot}deps"
3442 ac_config_commands="$ac_config_commands depfiles"
3445 am_make=${MAKE-make}
3446 cat > confinc << 'END'
3447 am__doit:
3448 @echo done
3449 .PHONY: am__doit
3451 # If we don't find an include directive, just comment out the code.
3452 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3453 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3454 am__include="#"
3455 am__quote=
3456 _am_result=none
3457 # First try GNU make style include.
3458 echo "include confinc" > confmf
3459 # We grep out `Entering directory' and `Leaving directory'
3460 # messages which can occur if `w' ends up in MAKEFLAGS.
3461 # In particular we don't look at `^make:' because GNU make might
3462 # be invoked under some other name (usually "gmake"), in which
3463 # case it prints its new name instead of `make'.
3464 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3465 am__include=include
3466 am__quote=
3467 _am_result=GNU
3469 # Now try BSD make style include.
3470 if test "$am__include" = "#"; then
3471 echo '.include "confinc"' > confmf
3472 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3473 am__include=.include
3474 am__quote="\""
3475 _am_result=BSD
3480 { echo "$as_me:$LINENO: result: $_am_result" >&5
3481 echo "${ECHO_T}$_am_result" >&6; }
3482 rm -f confinc confmf
3484 # Check whether --enable-dependency-tracking was given.
3485 if test "${enable_dependency_tracking+set}" = set; then
3486 enableval=$enable_dependency_tracking;
3489 if test "x$enable_dependency_tracking" != xno; then
3490 am_depcomp="$ac_aux_dir/depcomp"
3491 AMDEPBACKSLASH='\'
3495 if test "x$enable_dependency_tracking" != xno; then
3496 AMDEP_TRUE=
3497 AMDEP_FALSE='#'
3498 else
3499 AMDEP_TRUE='#'
3500 AMDEP_FALSE=
3506 depcc="$CC" am_compiler_list=
3508 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3509 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3510 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3511 echo $ECHO_N "(cached) $ECHO_C" >&6
3512 else
3513 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3514 # We make a subdir and do the tests there. Otherwise we can end up
3515 # making bogus files that we don't know about and never remove. For
3516 # instance it was reported that on HP-UX the gcc test will end up
3517 # making a dummy file named `D' -- because `-MD' means `put the output
3518 # in D'.
3519 mkdir conftest.dir
3520 # Copy depcomp to subdir because otherwise we won't find it if we're
3521 # using a relative directory.
3522 cp "$am_depcomp" conftest.dir
3523 cd conftest.dir
3524 # We will build objects and dependencies in a subdirectory because
3525 # it helps to detect inapplicable dependency modes. For instance
3526 # both Tru64's cc and ICC support -MD to output dependencies as a
3527 # side effect of compilation, but ICC will put the dependencies in
3528 # the current directory while Tru64 will put them in the object
3529 # directory.
3530 mkdir sub
3532 am_cv_CC_dependencies_compiler_type=none
3533 if test "$am_compiler_list" = ""; then
3534 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3536 for depmode in $am_compiler_list; do
3537 # Setup a source with many dependencies, because some compilers
3538 # like to wrap large dependency lists on column 80 (with \), and
3539 # we should not choose a depcomp mode which is confused by this.
3541 # We need to recreate these files for each test, as the compiler may
3542 # overwrite some of them when testing with obscure command lines.
3543 # This happens at least with the AIX C compiler.
3544 : > sub/conftest.c
3545 for i in 1 2 3 4 5 6; do
3546 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3547 : > sub/conftst$i.h
3548 done
3549 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3551 case $depmode in
3552 nosideeffect)
3553 # after this tag, mechanisms are not by side-effect, so they'll
3554 # only be used when explicitly requested
3555 if test "x$enable_dependency_tracking" = xyes; then
3556 continue
3557 else
3558 break
3561 none) break ;;
3562 esac
3563 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3564 # mode. It turns out that the SunPro C++ compiler does not properly
3565 # handle `-M -o', and we need to detect this.
3566 if depmode=$depmode \
3567 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3568 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3569 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3570 >/dev/null 2>conftest.err &&
3571 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3572 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3573 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3574 # icc doesn't choke on unknown options, it will just issue warnings
3575 # (even with -Werror). So we grep stderr for any message
3576 # that says an option was ignored.
3577 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3578 am_cv_CC_dependencies_compiler_type=$depmode
3579 break
3582 done
3584 cd ..
3585 rm -rf conftest.dir
3586 else
3587 am_cv_CC_dependencies_compiler_type=none
3591 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3592 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3593 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3598 test "x$enable_dependency_tracking" != xno \
3599 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3600 am__fastdepCC_TRUE=
3601 am__fastdepCC_FALSE='#'
3602 else
3603 am__fastdepCC_TRUE='#'
3604 am__fastdepCC_FALSE=
3608 ac_ext=c
3609 ac_cpp='$CPP $CPPFLAGS'
3610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3613 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3614 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3615 # On Suns, sometimes $CPP names a directory.
3616 if test -n "$CPP" && test -d "$CPP"; then
3617 CPP=
3619 if test -z "$CPP"; then
3620 if test "${ac_cv_prog_CPP+set}" = set; then
3621 echo $ECHO_N "(cached) $ECHO_C" >&6
3622 else
3623 # Double quotes because CPP needs to be expanded
3624 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3626 ac_preproc_ok=false
3627 for ac_c_preproc_warn_flag in '' yes
3629 # Use a header file that comes with gcc, so configuring glibc
3630 # with a fresh cross-compiler works.
3631 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3632 # <limits.h> exists even on freestanding compilers.
3633 # On the NeXT, cc -E runs the code through the compiler's parser,
3634 # not just through cpp. "Syntax error" is here to catch this case.
3635 cat >conftest.$ac_ext <<_ACEOF
3636 /* confdefs.h. */
3637 _ACEOF
3638 cat confdefs.h >>conftest.$ac_ext
3639 cat >>conftest.$ac_ext <<_ACEOF
3640 /* end confdefs.h. */
3641 #ifdef __STDC__
3642 # include <limits.h>
3643 #else
3644 # include <assert.h>
3645 #endif
3646 Syntax error
3647 _ACEOF
3648 if { (ac_try="$ac_cpp conftest.$ac_ext"
3649 case "(($ac_try" in
3650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3651 *) ac_try_echo=$ac_try;;
3652 esac
3653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3654 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3655 ac_status=$?
3656 grep -v '^ *+' conftest.er1 >conftest.err
3657 rm -f conftest.er1
3658 cat conftest.err >&5
3659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660 (exit $ac_status); } >/dev/null && {
3661 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3662 test ! -s conftest.err
3663 }; then
3665 else
3666 echo "$as_me: failed program was:" >&5
3667 sed 's/^/| /' conftest.$ac_ext >&5
3669 # Broken: fails on valid input.
3670 continue
3673 rm -f conftest.err conftest.$ac_ext
3675 # OK, works on sane cases. Now check whether nonexistent headers
3676 # can be detected and how.
3677 cat >conftest.$ac_ext <<_ACEOF
3678 /* confdefs.h. */
3679 _ACEOF
3680 cat confdefs.h >>conftest.$ac_ext
3681 cat >>conftest.$ac_ext <<_ACEOF
3682 /* end confdefs.h. */
3683 #include <ac_nonexistent.h>
3684 _ACEOF
3685 if { (ac_try="$ac_cpp conftest.$ac_ext"
3686 case "(($ac_try" in
3687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3688 *) ac_try_echo=$ac_try;;
3689 esac
3690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3691 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3692 ac_status=$?
3693 grep -v '^ *+' conftest.er1 >conftest.err
3694 rm -f conftest.er1
3695 cat conftest.err >&5
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); } >/dev/null && {
3698 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3699 test ! -s conftest.err
3700 }; then
3701 # Broken: success on invalid input.
3702 continue
3703 else
3704 echo "$as_me: failed program was:" >&5
3705 sed 's/^/| /' conftest.$ac_ext >&5
3707 # Passes both tests.
3708 ac_preproc_ok=:
3709 break
3712 rm -f conftest.err conftest.$ac_ext
3714 done
3715 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3716 rm -f conftest.err conftest.$ac_ext
3717 if $ac_preproc_ok; then
3718 break
3721 done
3722 ac_cv_prog_CPP=$CPP
3725 CPP=$ac_cv_prog_CPP
3726 else
3727 ac_cv_prog_CPP=$CPP
3729 { echo "$as_me:$LINENO: result: $CPP" >&5
3730 echo "${ECHO_T}$CPP" >&6; }
3731 ac_preproc_ok=false
3732 for ac_c_preproc_warn_flag in '' yes
3734 # Use a header file that comes with gcc, so configuring glibc
3735 # with a fresh cross-compiler works.
3736 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3737 # <limits.h> exists even on freestanding compilers.
3738 # On the NeXT, cc -E runs the code through the compiler's parser,
3739 # not just through cpp. "Syntax error" is here to catch this case.
3740 cat >conftest.$ac_ext <<_ACEOF
3741 /* confdefs.h. */
3742 _ACEOF
3743 cat confdefs.h >>conftest.$ac_ext
3744 cat >>conftest.$ac_ext <<_ACEOF
3745 /* end confdefs.h. */
3746 #ifdef __STDC__
3747 # include <limits.h>
3748 #else
3749 # include <assert.h>
3750 #endif
3751 Syntax error
3752 _ACEOF
3753 if { (ac_try="$ac_cpp conftest.$ac_ext"
3754 case "(($ac_try" in
3755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3756 *) ac_try_echo=$ac_try;;
3757 esac
3758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3759 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3760 ac_status=$?
3761 grep -v '^ *+' conftest.er1 >conftest.err
3762 rm -f conftest.er1
3763 cat conftest.err >&5
3764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765 (exit $ac_status); } >/dev/null && {
3766 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3767 test ! -s conftest.err
3768 }; then
3770 else
3771 echo "$as_me: failed program was:" >&5
3772 sed 's/^/| /' conftest.$ac_ext >&5
3774 # Broken: fails on valid input.
3775 continue
3778 rm -f conftest.err conftest.$ac_ext
3780 # OK, works on sane cases. Now check whether nonexistent headers
3781 # can be detected and how.
3782 cat >conftest.$ac_ext <<_ACEOF
3783 /* confdefs.h. */
3784 _ACEOF
3785 cat confdefs.h >>conftest.$ac_ext
3786 cat >>conftest.$ac_ext <<_ACEOF
3787 /* end confdefs.h. */
3788 #include <ac_nonexistent.h>
3789 _ACEOF
3790 if { (ac_try="$ac_cpp conftest.$ac_ext"
3791 case "(($ac_try" in
3792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3793 *) ac_try_echo=$ac_try;;
3794 esac
3795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3796 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3797 ac_status=$?
3798 grep -v '^ *+' conftest.er1 >conftest.err
3799 rm -f conftest.er1
3800 cat conftest.err >&5
3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802 (exit $ac_status); } >/dev/null && {
3803 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3804 test ! -s conftest.err
3805 }; then
3806 # Broken: success on invalid input.
3807 continue
3808 else
3809 echo "$as_me: failed program was:" >&5
3810 sed 's/^/| /' conftest.$ac_ext >&5
3812 # Passes both tests.
3813 ac_preproc_ok=:
3814 break
3817 rm -f conftest.err conftest.$ac_ext
3819 done
3820 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3821 rm -f conftest.err conftest.$ac_ext
3822 if $ac_preproc_ok; then
3824 else
3825 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3826 See \`config.log' for more details." >&5
3827 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3828 See \`config.log' for more details." >&2;}
3829 { (exit 1); exit 1; }; }
3832 ac_ext=c
3833 ac_cpp='$CPP $CPPFLAGS'
3834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3838 # Find a good install program. We prefer a C program (faster),
3839 # so one script is as good as another. But avoid the broken or
3840 # incompatible versions:
3841 # SysV /etc/install, /usr/sbin/install
3842 # SunOS /usr/etc/install
3843 # IRIX /sbin/install
3844 # AIX /bin/install
3845 # AmigaOS /C/install, which installs bootblocks on floppy discs
3846 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3847 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3848 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3849 # OS/2's system install, which has a completely different semantic
3850 # ./install, which can be erroneously created by make from ./install.sh.
3851 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3852 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3853 if test -z "$INSTALL"; then
3854 if test "${ac_cv_path_install+set}" = set; then
3855 echo $ECHO_N "(cached) $ECHO_C" >&6
3856 else
3857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3858 for as_dir in $PATH
3860 IFS=$as_save_IFS
3861 test -z "$as_dir" && as_dir=.
3862 # Account for people who put trailing slashes in PATH elements.
3863 case $as_dir/ in
3864 ./ | .// | /cC/* | \
3865 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3866 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3867 /usr/ucb/* ) ;;
3869 # OSF1 and SCO ODT 3.0 have their own names for install.
3870 # Don't use installbsd from OSF since it installs stuff as root
3871 # by default.
3872 for ac_prog in ginstall scoinst install; do
3873 for ac_exec_ext in '' $ac_executable_extensions; do
3874 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3875 if test $ac_prog = install &&
3876 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3877 # AIX install. It has an incompatible calling convention.
3879 elif test $ac_prog = install &&
3880 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3881 # program-specific install script used by HP pwplus--don't use.
3883 else
3884 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3885 break 3
3888 done
3889 done
3891 esac
3892 done
3893 IFS=$as_save_IFS
3897 if test "${ac_cv_path_install+set}" = set; then
3898 INSTALL=$ac_cv_path_install
3899 else
3900 # As a last resort, use the slow shell script. Don't cache a
3901 # value for INSTALL within a source directory, because that will
3902 # break other packages using the cache if that directory is
3903 # removed, or if the value is a relative name.
3904 INSTALL=$ac_install_sh
3907 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3908 echo "${ECHO_T}$INSTALL" >&6; }
3910 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3911 # It thinks the first close brace ends the variable substitution.
3912 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3914 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3916 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3918 if test -n "$ac_tool_prefix"; then
3919 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3920 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3923 if test "${ac_cv_prog_RANLIB+set}" = set; then
3924 echo $ECHO_N "(cached) $ECHO_C" >&6
3925 else
3926 if test -n "$RANLIB"; then
3927 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3928 else
3929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3930 for as_dir in $PATH
3932 IFS=$as_save_IFS
3933 test -z "$as_dir" && as_dir=.
3934 for ac_exec_ext in '' $ac_executable_extensions; do
3935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3936 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3938 break 2
3940 done
3941 done
3942 IFS=$as_save_IFS
3946 RANLIB=$ac_cv_prog_RANLIB
3947 if test -n "$RANLIB"; then
3948 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3949 echo "${ECHO_T}$RANLIB" >&6; }
3950 else
3951 { echo "$as_me:$LINENO: result: no" >&5
3952 echo "${ECHO_T}no" >&6; }
3957 if test -z "$ac_cv_prog_RANLIB"; then
3958 ac_ct_RANLIB=$RANLIB
3959 # Extract the first word of "ranlib", so it can be a program name with args.
3960 set dummy ranlib; ac_word=$2
3961 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3963 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3964 echo $ECHO_N "(cached) $ECHO_C" >&6
3965 else
3966 if test -n "$ac_ct_RANLIB"; then
3967 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3968 else
3969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3970 for as_dir in $PATH
3972 IFS=$as_save_IFS
3973 test -z "$as_dir" && as_dir=.
3974 for ac_exec_ext in '' $ac_executable_extensions; do
3975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3976 ac_cv_prog_ac_ct_RANLIB="ranlib"
3977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3978 break 2
3980 done
3981 done
3982 IFS=$as_save_IFS
3986 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3987 if test -n "$ac_ct_RANLIB"; then
3988 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3989 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3990 else
3991 { echo "$as_me:$LINENO: result: no" >&5
3992 echo "${ECHO_T}no" >&6; }
3995 if test "x$ac_ct_RANLIB" = x; then
3996 RANLIB=":"
3997 else
3998 case $cross_compiling:$ac_tool_warned in
3999 yes:)
4000 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4001 whose name does not start with the host triplet. If you think this
4002 configuration is useful to you, please write to autoconf@gnu.org." >&5
4003 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4004 whose name does not start with the host triplet. If you think this
4005 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4006 ac_tool_warned=yes ;;
4007 esac
4008 RANLIB=$ac_ct_RANLIB
4010 else
4011 RANLIB="$ac_cv_prog_RANLIB"
4014 # Check whether --enable-shared was given.
4015 if test "${enable_shared+set}" = set; then
4016 enableval=$enable_shared; p=${PACKAGE-default}
4017 case $enableval in
4018 yes) enable_shared=yes ;;
4019 no) enable_shared=no ;;
4021 enable_shared=no
4022 # Look at the argument we got. We use all the common list separators.
4023 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4024 for pkg in $enableval; do
4025 IFS="$lt_save_ifs"
4026 if test "X$pkg" = "X$p"; then
4027 enable_shared=yes
4029 done
4030 IFS="$lt_save_ifs"
4032 esac
4033 else
4034 enable_shared=yes
4038 # Check whether --enable-static was given.
4039 if test "${enable_static+set}" = set; then
4040 enableval=$enable_static; p=${PACKAGE-default}
4041 case $enableval in
4042 yes) enable_static=yes ;;
4043 no) enable_static=no ;;
4045 enable_static=no
4046 # Look at the argument we got. We use all the common list separators.
4047 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4048 for pkg in $enableval; do
4049 IFS="$lt_save_ifs"
4050 if test "X$pkg" = "X$p"; then
4051 enable_static=yes
4053 done
4054 IFS="$lt_save_ifs"
4056 esac
4057 else
4058 enable_static=yes
4062 # Check whether --enable-fast-install was given.
4063 if test "${enable_fast_install+set}" = set; then
4064 enableval=$enable_fast_install; p=${PACKAGE-default}
4065 case $enableval in
4066 yes) enable_fast_install=yes ;;
4067 no) enable_fast_install=no ;;
4069 enable_fast_install=no
4070 # Look at the argument we got. We use all the common list separators.
4071 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4072 for pkg in $enableval; do
4073 IFS="$lt_save_ifs"
4074 if test "X$pkg" = "X$p"; then
4075 enable_fast_install=yes
4077 done
4078 IFS="$lt_save_ifs"
4080 esac
4081 else
4082 enable_fast_install=yes
4086 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4087 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4088 if test "${lt_cv_path_SED+set}" = set; then
4089 echo $ECHO_N "(cached) $ECHO_C" >&6
4090 else
4091 # Loop through the user's path and test for sed and gsed.
4092 # Then use that list of sed's as ones to test for truncation.
4093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4094 for as_dir in $PATH
4096 IFS=$as_save_IFS
4097 test -z "$as_dir" && as_dir=.
4098 for lt_ac_prog in sed gsed; do
4099 for ac_exec_ext in '' $ac_executable_extensions; do
4100 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4101 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4103 done
4104 done
4105 done
4106 IFS=$as_save_IFS
4107 lt_ac_max=0
4108 lt_ac_count=0
4109 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4110 # along with /bin/sed that truncates output.
4111 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4112 test ! -f $lt_ac_sed && continue
4113 cat /dev/null > conftest.in
4114 lt_ac_count=0
4115 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4116 # Check for GNU sed and select it if it is found.
4117 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4118 lt_cv_path_SED=$lt_ac_sed
4119 break
4121 while true; do
4122 cat conftest.in conftest.in >conftest.tmp
4123 mv conftest.tmp conftest.in
4124 cp conftest.in conftest.nl
4125 echo >>conftest.nl
4126 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4127 cmp -s conftest.out conftest.nl || break
4128 # 10000 chars as input seems more than enough
4129 test $lt_ac_count -gt 10 && break
4130 lt_ac_count=`expr $lt_ac_count + 1`
4131 if test $lt_ac_count -gt $lt_ac_max; then
4132 lt_ac_max=$lt_ac_count
4133 lt_cv_path_SED=$lt_ac_sed
4135 done
4136 done
4140 SED=$lt_cv_path_SED
4142 { echo "$as_me:$LINENO: result: $SED" >&5
4143 echo "${ECHO_T}$SED" >&6; }
4145 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4146 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4147 if test "${ac_cv_path_GREP+set}" = set; then
4148 echo $ECHO_N "(cached) $ECHO_C" >&6
4149 else
4150 # Extract the first word of "grep ggrep" to use in msg output
4151 if test -z "$GREP"; then
4152 set dummy grep ggrep; ac_prog_name=$2
4153 if test "${ac_cv_path_GREP+set}" = set; then
4154 echo $ECHO_N "(cached) $ECHO_C" >&6
4155 else
4156 ac_path_GREP_found=false
4157 # Loop through the user's path and test for each of PROGNAME-LIST
4158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4159 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4161 IFS=$as_save_IFS
4162 test -z "$as_dir" && as_dir=.
4163 for ac_prog in grep ggrep; do
4164 for ac_exec_ext in '' $ac_executable_extensions; do
4165 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4166 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4167 # Check for GNU ac_path_GREP and select it if it is found.
4168 # Check for GNU $ac_path_GREP
4169 case `"$ac_path_GREP" --version 2>&1` in
4170 *GNU*)
4171 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4173 ac_count=0
4174 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4175 while :
4177 cat "conftest.in" "conftest.in" >"conftest.tmp"
4178 mv "conftest.tmp" "conftest.in"
4179 cp "conftest.in" "conftest.nl"
4180 echo 'GREP' >> "conftest.nl"
4181 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4182 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4183 ac_count=`expr $ac_count + 1`
4184 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4185 # Best one so far, save it but keep looking for a better one
4186 ac_cv_path_GREP="$ac_path_GREP"
4187 ac_path_GREP_max=$ac_count
4189 # 10*(2^10) chars as input seems more than enough
4190 test $ac_count -gt 10 && break
4191 done
4192 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4193 esac
4196 $ac_path_GREP_found && break 3
4197 done
4198 done
4200 done
4201 IFS=$as_save_IFS
4206 GREP="$ac_cv_path_GREP"
4207 if test -z "$GREP"; then
4208 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4209 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4210 { (exit 1); exit 1; }; }
4213 else
4214 ac_cv_path_GREP=$GREP
4219 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4220 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4221 GREP="$ac_cv_path_GREP"
4224 { echo "$as_me:$LINENO: checking for egrep" >&5
4225 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4226 if test "${ac_cv_path_EGREP+set}" = set; then
4227 echo $ECHO_N "(cached) $ECHO_C" >&6
4228 else
4229 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4230 then ac_cv_path_EGREP="$GREP -E"
4231 else
4232 # Extract the first word of "egrep" to use in msg output
4233 if test -z "$EGREP"; then
4234 set dummy egrep; ac_prog_name=$2
4235 if test "${ac_cv_path_EGREP+set}" = set; then
4236 echo $ECHO_N "(cached) $ECHO_C" >&6
4237 else
4238 ac_path_EGREP_found=false
4239 # Loop through the user's path and test for each of PROGNAME-LIST
4240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4241 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4243 IFS=$as_save_IFS
4244 test -z "$as_dir" && as_dir=.
4245 for ac_prog in egrep; do
4246 for ac_exec_ext in '' $ac_executable_extensions; do
4247 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4248 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4249 # Check for GNU ac_path_EGREP and select it if it is found.
4250 # Check for GNU $ac_path_EGREP
4251 case `"$ac_path_EGREP" --version 2>&1` in
4252 *GNU*)
4253 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4255 ac_count=0
4256 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4257 while :
4259 cat "conftest.in" "conftest.in" >"conftest.tmp"
4260 mv "conftest.tmp" "conftest.in"
4261 cp "conftest.in" "conftest.nl"
4262 echo 'EGREP' >> "conftest.nl"
4263 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4264 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4265 ac_count=`expr $ac_count + 1`
4266 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4267 # Best one so far, save it but keep looking for a better one
4268 ac_cv_path_EGREP="$ac_path_EGREP"
4269 ac_path_EGREP_max=$ac_count
4271 # 10*(2^10) chars as input seems more than enough
4272 test $ac_count -gt 10 && break
4273 done
4274 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4275 esac
4278 $ac_path_EGREP_found && break 3
4279 done
4280 done
4282 done
4283 IFS=$as_save_IFS
4288 EGREP="$ac_cv_path_EGREP"
4289 if test -z "$EGREP"; then
4290 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4291 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4292 { (exit 1); exit 1; }; }
4295 else
4296 ac_cv_path_EGREP=$EGREP
4302 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4303 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4304 EGREP="$ac_cv_path_EGREP"
4308 # Check whether --with-gnu-ld was given.
4309 if test "${with_gnu_ld+set}" = set; then
4310 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4311 else
4312 with_gnu_ld=no
4315 ac_prog=ld
4316 if test "$GCC" = yes; then
4317 # Check if gcc -print-prog-name=ld gives a path.
4318 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4319 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4320 case $host in
4321 *-*-mingw*)
4322 # gcc leaves a trailing carriage return which upsets mingw
4323 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4325 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4326 esac
4327 case $ac_prog in
4328 # Accept absolute paths.
4329 [\\/]* | ?:[\\/]*)
4330 re_direlt='/[^/][^/]*/\.\./'
4331 # Canonicalize the pathname of ld
4332 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4333 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4334 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4335 done
4336 test -z "$LD" && LD="$ac_prog"
4339 # If it fails, then pretend we aren't using GCC.
4340 ac_prog=ld
4343 # If it is relative, then search for the first ld in PATH.
4344 with_gnu_ld=unknown
4346 esac
4347 elif test "$with_gnu_ld" = yes; then
4348 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4349 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4350 else
4351 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4352 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4354 if test "${lt_cv_path_LD+set}" = set; then
4355 echo $ECHO_N "(cached) $ECHO_C" >&6
4356 else
4357 if test -z "$LD"; then
4358 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4359 for ac_dir in $PATH; do
4360 IFS="$lt_save_ifs"
4361 test -z "$ac_dir" && ac_dir=.
4362 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4363 lt_cv_path_LD="$ac_dir/$ac_prog"
4364 # Check to see if the program is GNU ld. I'd rather use --version,
4365 # but apparently some variants of GNU ld only accept -v.
4366 # Break only if it was the GNU/non-GNU ld that we prefer.
4367 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4368 *GNU* | *'with BFD'*)
4369 test "$with_gnu_ld" != no && break
4372 test "$with_gnu_ld" != yes && break
4374 esac
4376 done
4377 IFS="$lt_save_ifs"
4378 else
4379 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4383 LD="$lt_cv_path_LD"
4384 if test -n "$LD"; then
4385 { echo "$as_me:$LINENO: result: $LD" >&5
4386 echo "${ECHO_T}$LD" >&6; }
4387 else
4388 { echo "$as_me:$LINENO: result: no" >&5
4389 echo "${ECHO_T}no" >&6; }
4391 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4392 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4393 { (exit 1); exit 1; }; }
4394 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4395 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4396 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4397 echo $ECHO_N "(cached) $ECHO_C" >&6
4398 else
4399 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4400 case `$LD -v 2>&1 </dev/null` in
4401 *GNU* | *'with BFD'*)
4402 lt_cv_prog_gnu_ld=yes
4405 lt_cv_prog_gnu_ld=no
4407 esac
4409 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4410 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4411 with_gnu_ld=$lt_cv_prog_gnu_ld
4414 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4415 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4416 if test "${lt_cv_ld_reload_flag+set}" = set; then
4417 echo $ECHO_N "(cached) $ECHO_C" >&6
4418 else
4419 lt_cv_ld_reload_flag='-r'
4421 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4422 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4423 reload_flag=$lt_cv_ld_reload_flag
4424 case $reload_flag in
4425 "" | " "*) ;;
4426 *) reload_flag=" $reload_flag" ;;
4427 esac
4428 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4429 case $host_os in
4430 darwin*)
4431 if test "$GCC" = yes; then
4432 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4433 else
4434 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4437 esac
4439 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4440 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4441 if test "${lt_cv_path_NM+set}" = set; then
4442 echo $ECHO_N "(cached) $ECHO_C" >&6
4443 else
4444 if test -n "$NM"; then
4445 # Let the user override the test.
4446 lt_cv_path_NM="$NM"
4447 else
4448 lt_nm_to_check="${ac_tool_prefix}nm"
4449 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4450 lt_nm_to_check="$lt_nm_to_check nm"
4452 for lt_tmp_nm in $lt_nm_to_check; do
4453 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4454 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4455 IFS="$lt_save_ifs"
4456 test -z "$ac_dir" && ac_dir=.
4457 tmp_nm="$ac_dir/$lt_tmp_nm"
4458 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4459 # Check to see if the nm accepts a BSD-compat flag.
4460 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4461 # nm: unknown option "B" ignored
4462 # Tru64's nm complains that /dev/null is an invalid object file
4463 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4464 */dev/null* | *'Invalid file or object type'*)
4465 lt_cv_path_NM="$tmp_nm -B"
4466 break
4469 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4470 */dev/null*)
4471 lt_cv_path_NM="$tmp_nm -p"
4472 break
4475 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4476 continue # so that we can try to find one that supports BSD flags
4478 esac
4480 esac
4482 done
4483 IFS="$lt_save_ifs"
4484 done
4485 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4488 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4489 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4490 NM="$lt_cv_path_NM"
4492 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4493 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4494 LN_S=$as_ln_s
4495 if test "$LN_S" = "ln -s"; then
4496 { echo "$as_me:$LINENO: result: yes" >&5
4497 echo "${ECHO_T}yes" >&6; }
4498 else
4499 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4500 echo "${ECHO_T}no, using $LN_S" >&6; }
4503 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4504 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4505 if test "${lt_cv_deplibs_check_method+set}" = set; then
4506 echo $ECHO_N "(cached) $ECHO_C" >&6
4507 else
4508 lt_cv_file_magic_cmd='$MAGIC_CMD'
4509 lt_cv_file_magic_test_file=
4510 lt_cv_deplibs_check_method='unknown'
4511 # Need to set the preceding variable on all platforms that support
4512 # interlibrary dependencies.
4513 # 'none' -- dependencies not supported.
4514 # `unknown' -- same as none, but documents that we really don't know.
4515 # 'pass_all' -- all dependencies passed with no checks.
4516 # 'test_compile' -- check by making test program.
4517 # 'file_magic [[regex]]' -- check by looking for files in library path
4518 # which responds to the $file_magic_cmd with a given extended regex.
4519 # If you have `file' or equivalent on your system and you're not sure
4520 # whether `pass_all' will *always* work, you probably want this one.
4522 case $host_os in
4523 aix[4-9]*)
4524 lt_cv_deplibs_check_method=pass_all
4527 beos*)
4528 lt_cv_deplibs_check_method=pass_all
4531 bsdi[45]*)
4532 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4533 lt_cv_file_magic_cmd='/usr/bin/file -L'
4534 lt_cv_file_magic_test_file=/shlib/libc.so
4537 cygwin*)
4538 # func_win32_libid is a shell function defined in ltmain.sh
4539 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4540 lt_cv_file_magic_cmd='func_win32_libid'
4543 mingw* | pw32*)
4544 # Base MSYS/MinGW do not provide the 'file' command needed by
4545 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4546 # unless we find 'file', for example because we are cross-compiling.
4547 if ( file / ) >/dev/null 2>&1; then
4548 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4549 lt_cv_file_magic_cmd='func_win32_libid'
4550 else
4551 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4552 lt_cv_file_magic_cmd='$OBJDUMP -f'
4556 darwin* | rhapsody*)
4557 lt_cv_deplibs_check_method=pass_all
4560 freebsd* | dragonfly*)
4561 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4562 case $host_cpu in
4563 i*86 )
4564 # Not sure whether the presence of OpenBSD here was a mistake.
4565 # Let's accept both of them until this is cleared up.
4566 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4567 lt_cv_file_magic_cmd=/usr/bin/file
4568 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4570 esac
4571 else
4572 lt_cv_deplibs_check_method=pass_all
4576 gnu*)
4577 lt_cv_deplibs_check_method=pass_all
4580 hpux10.20* | hpux11*)
4581 lt_cv_file_magic_cmd=/usr/bin/file
4582 case $host_cpu in
4583 ia64*)
4584 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4585 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4587 hppa*64*)
4588 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]'
4589 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4592 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4593 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4595 esac
4598 interix[3-9]*)
4599 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4600 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4603 irix5* | irix6* | nonstopux*)
4604 case $LD in
4605 *-32|*"-32 ") libmagic=32-bit;;
4606 *-n32|*"-n32 ") libmagic=N32;;
4607 *-64|*"-64 ") libmagic=64-bit;;
4608 *) libmagic=never-match;;
4609 esac
4610 lt_cv_deplibs_check_method=pass_all
4613 # This must be Linux ELF.
4614 linux* | k*bsd*-gnu)
4615 lt_cv_deplibs_check_method=pass_all
4618 netbsd*)
4619 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4620 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4621 else
4622 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4626 newos6*)
4627 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4628 lt_cv_file_magic_cmd=/usr/bin/file
4629 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4632 nto-qnx*)
4633 lt_cv_deplibs_check_method=unknown
4636 openbsd*)
4637 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4638 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4639 else
4640 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4644 osf3* | osf4* | osf5*)
4645 lt_cv_deplibs_check_method=pass_all
4648 rdos*)
4649 lt_cv_deplibs_check_method=pass_all
4652 solaris*)
4653 lt_cv_deplibs_check_method=pass_all
4656 sysv4 | sysv4.3*)
4657 case $host_vendor in
4658 motorola)
4659 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]'
4660 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4662 ncr)
4663 lt_cv_deplibs_check_method=pass_all
4665 sequent)
4666 lt_cv_file_magic_cmd='/bin/file'
4667 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4669 sni)
4670 lt_cv_file_magic_cmd='/bin/file'
4671 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4672 lt_cv_file_magic_test_file=/lib/libc.so
4674 siemens)
4675 lt_cv_deplibs_check_method=pass_all
4678 lt_cv_deplibs_check_method=pass_all
4680 esac
4683 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4684 lt_cv_deplibs_check_method=pass_all
4686 esac
4689 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4690 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4691 file_magic_cmd=$lt_cv_file_magic_cmd
4692 deplibs_check_method=$lt_cv_deplibs_check_method
4693 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4698 # If no C compiler was specified, use CC.
4699 LTCC=${LTCC-"$CC"}
4701 # If no C compiler flags were specified, use CFLAGS.
4702 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4704 # Allow CC to be a program name with arguments.
4705 compiler=$CC
4708 # Check whether --enable-libtool-lock was given.
4709 if test "${enable_libtool_lock+set}" = set; then
4710 enableval=$enable_libtool_lock;
4713 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4715 # Some flags need to be propagated to the compiler or linker for good
4716 # libtool support.
4717 case $host in
4718 ia64-*-hpux*)
4719 # Find out which ABI we are using.
4720 echo 'int i;' > conftest.$ac_ext
4721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4722 (eval $ac_compile) 2>&5
4723 ac_status=$?
4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725 (exit $ac_status); }; then
4726 case `/usr/bin/file conftest.$ac_objext` in
4727 *ELF-32*)
4728 HPUX_IA64_MODE="32"
4730 *ELF-64*)
4731 HPUX_IA64_MODE="64"
4733 esac
4735 rm -rf conftest*
4737 *-*-irix6*)
4738 # Find out which ABI we are using.
4739 echo '#line 4739 "configure"' > conftest.$ac_ext
4740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4741 (eval $ac_compile) 2>&5
4742 ac_status=$?
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); }; then
4745 if test "$lt_cv_prog_gnu_ld" = yes; then
4746 case `/usr/bin/file conftest.$ac_objext` in
4747 *32-bit*)
4748 LD="${LD-ld} -melf32bsmip"
4750 *N32*)
4751 LD="${LD-ld} -melf32bmipn32"
4753 *64-bit*)
4754 LD="${LD-ld} -melf64bmip"
4756 esac
4757 else
4758 case `/usr/bin/file conftest.$ac_objext` in
4759 *32-bit*)
4760 LD="${LD-ld} -32"
4762 *N32*)
4763 LD="${LD-ld} -n32"
4765 *64-bit*)
4766 LD="${LD-ld} -64"
4768 esac
4771 rm -rf conftest*
4774 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4775 s390*-*linux*|sparc*-*linux*)
4776 # Find out which ABI we are using.
4777 echo 'int i;' > conftest.$ac_ext
4778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4779 (eval $ac_compile) 2>&5
4780 ac_status=$?
4781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782 (exit $ac_status); }; then
4783 case `/usr/bin/file conftest.o` in
4784 *32-bit*)
4785 case $host in
4786 x86_64-*kfreebsd*-gnu)
4787 LD="${LD-ld} -m elf_i386_fbsd"
4789 x86_64-*linux*)
4790 LD="${LD-ld} -m elf_i386"
4792 ppc64-*linux*|powerpc64-*linux*)
4793 LD="${LD-ld} -m elf32ppclinux"
4795 s390x-*linux*)
4796 LD="${LD-ld} -m elf_s390"
4798 sparc64-*linux*)
4799 LD="${LD-ld} -m elf32_sparc"
4801 esac
4803 *64-bit*)
4804 case $host in
4805 x86_64-*kfreebsd*-gnu)
4806 LD="${LD-ld} -m elf_x86_64_fbsd"
4808 x86_64-*linux*)
4809 LD="${LD-ld} -m elf_x86_64"
4811 ppc*-*linux*|powerpc*-*linux*)
4812 LD="${LD-ld} -m elf64ppc"
4814 s390*-*linux*)
4815 LD="${LD-ld} -m elf64_s390"
4817 sparc*-*linux*)
4818 LD="${LD-ld} -m elf64_sparc"
4820 esac
4822 esac
4824 rm -rf conftest*
4827 *-*-sco3.2v5*)
4828 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4829 SAVE_CFLAGS="$CFLAGS"
4830 CFLAGS="$CFLAGS -belf"
4831 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4832 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4833 if test "${lt_cv_cc_needs_belf+set}" = set; then
4834 echo $ECHO_N "(cached) $ECHO_C" >&6
4835 else
4836 ac_ext=c
4837 ac_cpp='$CPP $CPPFLAGS'
4838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4842 cat >conftest.$ac_ext <<_ACEOF
4843 /* confdefs.h. */
4844 _ACEOF
4845 cat confdefs.h >>conftest.$ac_ext
4846 cat >>conftest.$ac_ext <<_ACEOF
4847 /* end confdefs.h. */
4850 main ()
4854 return 0;
4856 _ACEOF
4857 rm -f conftest.$ac_objext conftest$ac_exeext
4858 if { (ac_try="$ac_link"
4859 case "(($ac_try" in
4860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4861 *) ac_try_echo=$ac_try;;
4862 esac
4863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4864 (eval "$ac_link") 2>conftest.er1
4865 ac_status=$?
4866 grep -v '^ *+' conftest.er1 >conftest.err
4867 rm -f conftest.er1
4868 cat conftest.err >&5
4869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870 (exit $ac_status); } && {
4871 test -z "$ac_c_werror_flag" ||
4872 test ! -s conftest.err
4873 } && test -s conftest$ac_exeext &&
4874 $as_test_x conftest$ac_exeext; then
4875 lt_cv_cc_needs_belf=yes
4876 else
4877 echo "$as_me: failed program was:" >&5
4878 sed 's/^/| /' conftest.$ac_ext >&5
4880 lt_cv_cc_needs_belf=no
4883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4884 conftest$ac_exeext conftest.$ac_ext
4885 ac_ext=c
4886 ac_cpp='$CPP $CPPFLAGS'
4887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4892 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4893 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4894 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4895 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4896 CFLAGS="$SAVE_CFLAGS"
4899 sparc*-*solaris*)
4900 # Find out which ABI we are using.
4901 echo 'int i;' > conftest.$ac_ext
4902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4903 (eval $ac_compile) 2>&5
4904 ac_status=$?
4905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906 (exit $ac_status); }; then
4907 case `/usr/bin/file conftest.o` in
4908 *64-bit*)
4909 case $lt_cv_prog_gnu_ld in
4910 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4912 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4913 LD="${LD-ld} -64"
4916 esac
4918 esac
4920 rm -rf conftest*
4924 esac
4926 need_locks="$enable_libtool_lock"
4930 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4931 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4932 if test "${ac_cv_header_stdc+set}" = set; then
4933 echo $ECHO_N "(cached) $ECHO_C" >&6
4934 else
4935 cat >conftest.$ac_ext <<_ACEOF
4936 /* confdefs.h. */
4937 _ACEOF
4938 cat confdefs.h >>conftest.$ac_ext
4939 cat >>conftest.$ac_ext <<_ACEOF
4940 /* end confdefs.h. */
4941 #include <stdlib.h>
4942 #include <stdarg.h>
4943 #include <string.h>
4944 #include <float.h>
4947 main ()
4951 return 0;
4953 _ACEOF
4954 rm -f conftest.$ac_objext
4955 if { (ac_try="$ac_compile"
4956 case "(($ac_try" in
4957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4958 *) ac_try_echo=$ac_try;;
4959 esac
4960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4961 (eval "$ac_compile") 2>conftest.er1
4962 ac_status=$?
4963 grep -v '^ *+' conftest.er1 >conftest.err
4964 rm -f conftest.er1
4965 cat conftest.err >&5
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); } && {
4968 test -z "$ac_c_werror_flag" ||
4969 test ! -s conftest.err
4970 } && test -s conftest.$ac_objext; then
4971 ac_cv_header_stdc=yes
4972 else
4973 echo "$as_me: failed program was:" >&5
4974 sed 's/^/| /' conftest.$ac_ext >&5
4976 ac_cv_header_stdc=no
4979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4981 if test $ac_cv_header_stdc = yes; then
4982 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4983 cat >conftest.$ac_ext <<_ACEOF
4984 /* confdefs.h. */
4985 _ACEOF
4986 cat confdefs.h >>conftest.$ac_ext
4987 cat >>conftest.$ac_ext <<_ACEOF
4988 /* end confdefs.h. */
4989 #include <string.h>
4991 _ACEOF
4992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4993 $EGREP "memchr" >/dev/null 2>&1; then
4995 else
4996 ac_cv_header_stdc=no
4998 rm -f conftest*
5002 if test $ac_cv_header_stdc = yes; then
5003 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5004 cat >conftest.$ac_ext <<_ACEOF
5005 /* confdefs.h. */
5006 _ACEOF
5007 cat confdefs.h >>conftest.$ac_ext
5008 cat >>conftest.$ac_ext <<_ACEOF
5009 /* end confdefs.h. */
5010 #include <stdlib.h>
5012 _ACEOF
5013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5014 $EGREP "free" >/dev/null 2>&1; then
5016 else
5017 ac_cv_header_stdc=no
5019 rm -f conftest*
5023 if test $ac_cv_header_stdc = yes; then
5024 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5025 if test "$cross_compiling" = yes; then
5027 else
5028 cat >conftest.$ac_ext <<_ACEOF
5029 /* confdefs.h. */
5030 _ACEOF
5031 cat confdefs.h >>conftest.$ac_ext
5032 cat >>conftest.$ac_ext <<_ACEOF
5033 /* end confdefs.h. */
5034 #include <ctype.h>
5035 #include <stdlib.h>
5036 #if ((' ' & 0x0FF) == 0x020)
5037 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5038 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5039 #else
5040 # define ISLOWER(c) \
5041 (('a' <= (c) && (c) <= 'i') \
5042 || ('j' <= (c) && (c) <= 'r') \
5043 || ('s' <= (c) && (c) <= 'z'))
5044 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5045 #endif
5047 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5049 main ()
5051 int i;
5052 for (i = 0; i < 256; i++)
5053 if (XOR (islower (i), ISLOWER (i))
5054 || toupper (i) != TOUPPER (i))
5055 return 2;
5056 return 0;
5058 _ACEOF
5059 rm -f conftest$ac_exeext
5060 if { (ac_try="$ac_link"
5061 case "(($ac_try" in
5062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5063 *) ac_try_echo=$ac_try;;
5064 esac
5065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5066 (eval "$ac_link") 2>&5
5067 ac_status=$?
5068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5070 { (case "(($ac_try" in
5071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5072 *) ac_try_echo=$ac_try;;
5073 esac
5074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5075 (eval "$ac_try") 2>&5
5076 ac_status=$?
5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); }; }; then
5080 else
5081 echo "$as_me: program exited with status $ac_status" >&5
5082 echo "$as_me: failed program was:" >&5
5083 sed 's/^/| /' conftest.$ac_ext >&5
5085 ( exit $ac_status )
5086 ac_cv_header_stdc=no
5088 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5094 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5095 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5096 if test $ac_cv_header_stdc = yes; then
5098 cat >>confdefs.h <<\_ACEOF
5099 #define STDC_HEADERS 1
5100 _ACEOF
5104 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5114 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5115 inttypes.h stdint.h unistd.h
5117 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5118 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5119 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5120 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5121 echo $ECHO_N "(cached) $ECHO_C" >&6
5122 else
5123 cat >conftest.$ac_ext <<_ACEOF
5124 /* confdefs.h. */
5125 _ACEOF
5126 cat confdefs.h >>conftest.$ac_ext
5127 cat >>conftest.$ac_ext <<_ACEOF
5128 /* end confdefs.h. */
5129 $ac_includes_default
5131 #include <$ac_header>
5132 _ACEOF
5133 rm -f conftest.$ac_objext
5134 if { (ac_try="$ac_compile"
5135 case "(($ac_try" in
5136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5137 *) ac_try_echo=$ac_try;;
5138 esac
5139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5140 (eval "$ac_compile") 2>conftest.er1
5141 ac_status=$?
5142 grep -v '^ *+' conftest.er1 >conftest.err
5143 rm -f conftest.er1
5144 cat conftest.err >&5
5145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146 (exit $ac_status); } && {
5147 test -z "$ac_c_werror_flag" ||
5148 test ! -s conftest.err
5149 } && test -s conftest.$ac_objext; then
5150 eval "$as_ac_Header=yes"
5151 else
5152 echo "$as_me: failed program was:" >&5
5153 sed 's/^/| /' conftest.$ac_ext >&5
5155 eval "$as_ac_Header=no"
5158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5160 ac_res=`eval echo '${'$as_ac_Header'}'`
5161 { echo "$as_me:$LINENO: result: $ac_res" >&5
5162 echo "${ECHO_T}$ac_res" >&6; }
5163 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5164 cat >>confdefs.h <<_ACEOF
5165 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5166 _ACEOF
5170 done
5174 for ac_header in dlfcn.h
5176 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5177 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5178 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5180 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5181 echo $ECHO_N "(cached) $ECHO_C" >&6
5183 ac_res=`eval echo '${'$as_ac_Header'}'`
5184 { echo "$as_me:$LINENO: result: $ac_res" >&5
5185 echo "${ECHO_T}$ac_res" >&6; }
5186 else
5187 # Is the header compilable?
5188 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5189 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5190 cat >conftest.$ac_ext <<_ACEOF
5191 /* confdefs.h. */
5192 _ACEOF
5193 cat confdefs.h >>conftest.$ac_ext
5194 cat >>conftest.$ac_ext <<_ACEOF
5195 /* end confdefs.h. */
5196 $ac_includes_default
5197 #include <$ac_header>
5198 _ACEOF
5199 rm -f conftest.$ac_objext
5200 if { (ac_try="$ac_compile"
5201 case "(($ac_try" in
5202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5203 *) ac_try_echo=$ac_try;;
5204 esac
5205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5206 (eval "$ac_compile") 2>conftest.er1
5207 ac_status=$?
5208 grep -v '^ *+' conftest.er1 >conftest.err
5209 rm -f conftest.er1
5210 cat conftest.err >&5
5211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212 (exit $ac_status); } && {
5213 test -z "$ac_c_werror_flag" ||
5214 test ! -s conftest.err
5215 } && test -s conftest.$ac_objext; then
5216 ac_header_compiler=yes
5217 else
5218 echo "$as_me: failed program was:" >&5
5219 sed 's/^/| /' conftest.$ac_ext >&5
5221 ac_header_compiler=no
5224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5225 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5226 echo "${ECHO_T}$ac_header_compiler" >&6; }
5228 # Is the header present?
5229 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5230 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5231 cat >conftest.$ac_ext <<_ACEOF
5232 /* confdefs.h. */
5233 _ACEOF
5234 cat confdefs.h >>conftest.$ac_ext
5235 cat >>conftest.$ac_ext <<_ACEOF
5236 /* end confdefs.h. */
5237 #include <$ac_header>
5238 _ACEOF
5239 if { (ac_try="$ac_cpp conftest.$ac_ext"
5240 case "(($ac_try" in
5241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5242 *) ac_try_echo=$ac_try;;
5243 esac
5244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5245 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5246 ac_status=$?
5247 grep -v '^ *+' conftest.er1 >conftest.err
5248 rm -f conftest.er1
5249 cat conftest.err >&5
5250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251 (exit $ac_status); } >/dev/null && {
5252 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5253 test ! -s conftest.err
5254 }; then
5255 ac_header_preproc=yes
5256 else
5257 echo "$as_me: failed program was:" >&5
5258 sed 's/^/| /' conftest.$ac_ext >&5
5260 ac_header_preproc=no
5263 rm -f conftest.err conftest.$ac_ext
5264 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5265 echo "${ECHO_T}$ac_header_preproc" >&6; }
5267 # So? What about this header?
5268 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5269 yes:no: )
5270 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5271 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5272 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5273 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5274 ac_header_preproc=yes
5276 no:yes:* )
5277 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5278 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5279 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5280 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5281 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5282 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5283 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5284 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5285 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5286 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5287 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5288 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5291 esac
5292 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5293 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5294 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5295 echo $ECHO_N "(cached) $ECHO_C" >&6
5296 else
5297 eval "$as_ac_Header=\$ac_header_preproc"
5299 ac_res=`eval echo '${'$as_ac_Header'}'`
5300 { echo "$as_me:$LINENO: result: $ac_res" >&5
5301 echo "${ECHO_T}$ac_res" >&6; }
5304 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5305 cat >>confdefs.h <<_ACEOF
5306 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5307 _ACEOF
5311 done
5313 ac_ext=cpp
5314 ac_cpp='$CXXCPP $CPPFLAGS'
5315 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5316 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5317 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5318 if test -z "$CXX"; then
5319 if test -n "$CCC"; then
5320 CXX=$CCC
5321 else
5322 if test -n "$ac_tool_prefix"; then
5323 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5325 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5326 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5329 if test "${ac_cv_prog_CXX+set}" = set; then
5330 echo $ECHO_N "(cached) $ECHO_C" >&6
5331 else
5332 if test -n "$CXX"; then
5333 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5334 else
5335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5336 for as_dir in $PATH
5338 IFS=$as_save_IFS
5339 test -z "$as_dir" && as_dir=.
5340 for ac_exec_ext in '' $ac_executable_extensions; do
5341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5342 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5344 break 2
5346 done
5347 done
5348 IFS=$as_save_IFS
5352 CXX=$ac_cv_prog_CXX
5353 if test -n "$CXX"; then
5354 { echo "$as_me:$LINENO: result: $CXX" >&5
5355 echo "${ECHO_T}$CXX" >&6; }
5356 else
5357 { echo "$as_me:$LINENO: result: no" >&5
5358 echo "${ECHO_T}no" >&6; }
5362 test -n "$CXX" && break
5363 done
5365 if test -z "$CXX"; then
5366 ac_ct_CXX=$CXX
5367 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5369 # Extract the first word of "$ac_prog", so it can be a program name with args.
5370 set dummy $ac_prog; ac_word=$2
5371 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5373 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5374 echo $ECHO_N "(cached) $ECHO_C" >&6
5375 else
5376 if test -n "$ac_ct_CXX"; then
5377 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5378 else
5379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5380 for as_dir in $PATH
5382 IFS=$as_save_IFS
5383 test -z "$as_dir" && as_dir=.
5384 for ac_exec_ext in '' $ac_executable_extensions; do
5385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5386 ac_cv_prog_ac_ct_CXX="$ac_prog"
5387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5388 break 2
5390 done
5391 done
5392 IFS=$as_save_IFS
5396 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5397 if test -n "$ac_ct_CXX"; then
5398 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5399 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5400 else
5401 { echo "$as_me:$LINENO: result: no" >&5
5402 echo "${ECHO_T}no" >&6; }
5406 test -n "$ac_ct_CXX" && break
5407 done
5409 if test "x$ac_ct_CXX" = x; then
5410 CXX="g++"
5411 else
5412 case $cross_compiling:$ac_tool_warned in
5413 yes:)
5414 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5415 whose name does not start with the host triplet. If you think this
5416 configuration is useful to you, please write to autoconf@gnu.org." >&5
5417 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5418 whose name does not start with the host triplet. If you think this
5419 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5420 ac_tool_warned=yes ;;
5421 esac
5422 CXX=$ac_ct_CXX
5428 # Provide some information about the compiler.
5429 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5430 ac_compiler=`set X $ac_compile; echo $2`
5431 { (ac_try="$ac_compiler --version >&5"
5432 case "(($ac_try" in
5433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5434 *) ac_try_echo=$ac_try;;
5435 esac
5436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5437 (eval "$ac_compiler --version >&5") 2>&5
5438 ac_status=$?
5439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440 (exit $ac_status); }
5441 { (ac_try="$ac_compiler -v >&5"
5442 case "(($ac_try" in
5443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5444 *) ac_try_echo=$ac_try;;
5445 esac
5446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5447 (eval "$ac_compiler -v >&5") 2>&5
5448 ac_status=$?
5449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450 (exit $ac_status); }
5451 { (ac_try="$ac_compiler -V >&5"
5452 case "(($ac_try" in
5453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5454 *) ac_try_echo=$ac_try;;
5455 esac
5456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5457 (eval "$ac_compiler -V >&5") 2>&5
5458 ac_status=$?
5459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460 (exit $ac_status); }
5462 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5463 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5464 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5465 echo $ECHO_N "(cached) $ECHO_C" >&6
5466 else
5467 cat >conftest.$ac_ext <<_ACEOF
5468 /* confdefs.h. */
5469 _ACEOF
5470 cat confdefs.h >>conftest.$ac_ext
5471 cat >>conftest.$ac_ext <<_ACEOF
5472 /* end confdefs.h. */
5475 main ()
5477 #ifndef __GNUC__
5478 choke me
5479 #endif
5482 return 0;
5484 _ACEOF
5485 rm -f conftest.$ac_objext
5486 if { (ac_try="$ac_compile"
5487 case "(($ac_try" in
5488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5489 *) ac_try_echo=$ac_try;;
5490 esac
5491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5492 (eval "$ac_compile") 2>conftest.er1
5493 ac_status=$?
5494 grep -v '^ *+' conftest.er1 >conftest.err
5495 rm -f conftest.er1
5496 cat conftest.err >&5
5497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498 (exit $ac_status); } && {
5499 test -z "$ac_cxx_werror_flag" ||
5500 test ! -s conftest.err
5501 } && test -s conftest.$ac_objext; then
5502 ac_compiler_gnu=yes
5503 else
5504 echo "$as_me: failed program was:" >&5
5505 sed 's/^/| /' conftest.$ac_ext >&5
5507 ac_compiler_gnu=no
5510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5511 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5514 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5515 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5516 GXX=`test $ac_compiler_gnu = yes && echo yes`
5517 ac_test_CXXFLAGS=${CXXFLAGS+set}
5518 ac_save_CXXFLAGS=$CXXFLAGS
5519 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5520 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5521 if test "${ac_cv_prog_cxx_g+set}" = set; then
5522 echo $ECHO_N "(cached) $ECHO_C" >&6
5523 else
5524 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5525 ac_cxx_werror_flag=yes
5526 ac_cv_prog_cxx_g=no
5527 CXXFLAGS="-g"
5528 cat >conftest.$ac_ext <<_ACEOF
5529 /* confdefs.h. */
5530 _ACEOF
5531 cat confdefs.h >>conftest.$ac_ext
5532 cat >>conftest.$ac_ext <<_ACEOF
5533 /* end confdefs.h. */
5536 main ()
5540 return 0;
5542 _ACEOF
5543 rm -f conftest.$ac_objext
5544 if { (ac_try="$ac_compile"
5545 case "(($ac_try" in
5546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5547 *) ac_try_echo=$ac_try;;
5548 esac
5549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5550 (eval "$ac_compile") 2>conftest.er1
5551 ac_status=$?
5552 grep -v '^ *+' conftest.er1 >conftest.err
5553 rm -f conftest.er1
5554 cat conftest.err >&5
5555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556 (exit $ac_status); } && {
5557 test -z "$ac_cxx_werror_flag" ||
5558 test ! -s conftest.err
5559 } && test -s conftest.$ac_objext; then
5560 ac_cv_prog_cxx_g=yes
5561 else
5562 echo "$as_me: failed program was:" >&5
5563 sed 's/^/| /' conftest.$ac_ext >&5
5565 CXXFLAGS=""
5566 cat >conftest.$ac_ext <<_ACEOF
5567 /* confdefs.h. */
5568 _ACEOF
5569 cat confdefs.h >>conftest.$ac_ext
5570 cat >>conftest.$ac_ext <<_ACEOF
5571 /* end confdefs.h. */
5574 main ()
5578 return 0;
5580 _ACEOF
5581 rm -f conftest.$ac_objext
5582 if { (ac_try="$ac_compile"
5583 case "(($ac_try" in
5584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5585 *) ac_try_echo=$ac_try;;
5586 esac
5587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5588 (eval "$ac_compile") 2>conftest.er1
5589 ac_status=$?
5590 grep -v '^ *+' conftest.er1 >conftest.err
5591 rm -f conftest.er1
5592 cat conftest.err >&5
5593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594 (exit $ac_status); } && {
5595 test -z "$ac_cxx_werror_flag" ||
5596 test ! -s conftest.err
5597 } && test -s conftest.$ac_objext; then
5599 else
5600 echo "$as_me: failed program was:" >&5
5601 sed 's/^/| /' conftest.$ac_ext >&5
5603 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5604 CXXFLAGS="-g"
5605 cat >conftest.$ac_ext <<_ACEOF
5606 /* confdefs.h. */
5607 _ACEOF
5608 cat confdefs.h >>conftest.$ac_ext
5609 cat >>conftest.$ac_ext <<_ACEOF
5610 /* end confdefs.h. */
5613 main ()
5617 return 0;
5619 _ACEOF
5620 rm -f conftest.$ac_objext
5621 if { (ac_try="$ac_compile"
5622 case "(($ac_try" in
5623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5624 *) ac_try_echo=$ac_try;;
5625 esac
5626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5627 (eval "$ac_compile") 2>conftest.er1
5628 ac_status=$?
5629 grep -v '^ *+' conftest.er1 >conftest.err
5630 rm -f conftest.er1
5631 cat conftest.err >&5
5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); } && {
5634 test -z "$ac_cxx_werror_flag" ||
5635 test ! -s conftest.err
5636 } && test -s conftest.$ac_objext; then
5637 ac_cv_prog_cxx_g=yes
5638 else
5639 echo "$as_me: failed program was:" >&5
5640 sed 's/^/| /' conftest.$ac_ext >&5
5645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5652 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5654 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5655 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5656 if test "$ac_test_CXXFLAGS" = set; then
5657 CXXFLAGS=$ac_save_CXXFLAGS
5658 elif test $ac_cv_prog_cxx_g = yes; then
5659 if test "$GXX" = yes; then
5660 CXXFLAGS="-g -O2"
5661 else
5662 CXXFLAGS="-g"
5664 else
5665 if test "$GXX" = yes; then
5666 CXXFLAGS="-O2"
5667 else
5668 CXXFLAGS=
5671 ac_ext=cpp
5672 ac_cpp='$CXXCPP $CPPFLAGS'
5673 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5674 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5675 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5677 depcc="$CXX" am_compiler_list=
5679 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5680 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5681 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5682 echo $ECHO_N "(cached) $ECHO_C" >&6
5683 else
5684 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5685 # We make a subdir and do the tests there. Otherwise we can end up
5686 # making bogus files that we don't know about and never remove. For
5687 # instance it was reported that on HP-UX the gcc test will end up
5688 # making a dummy file named `D' -- because `-MD' means `put the output
5689 # in D'.
5690 mkdir conftest.dir
5691 # Copy depcomp to subdir because otherwise we won't find it if we're
5692 # using a relative directory.
5693 cp "$am_depcomp" conftest.dir
5694 cd conftest.dir
5695 # We will build objects and dependencies in a subdirectory because
5696 # it helps to detect inapplicable dependency modes. For instance
5697 # both Tru64's cc and ICC support -MD to output dependencies as a
5698 # side effect of compilation, but ICC will put the dependencies in
5699 # the current directory while Tru64 will put them in the object
5700 # directory.
5701 mkdir sub
5703 am_cv_CXX_dependencies_compiler_type=none
5704 if test "$am_compiler_list" = ""; then
5705 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5707 for depmode in $am_compiler_list; do
5708 # Setup a source with many dependencies, because some compilers
5709 # like to wrap large dependency lists on column 80 (with \), and
5710 # we should not choose a depcomp mode which is confused by this.
5712 # We need to recreate these files for each test, as the compiler may
5713 # overwrite some of them when testing with obscure command lines.
5714 # This happens at least with the AIX C compiler.
5715 : > sub/conftest.c
5716 for i in 1 2 3 4 5 6; do
5717 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5718 : > sub/conftst$i.h
5719 done
5720 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5722 case $depmode in
5723 nosideeffect)
5724 # after this tag, mechanisms are not by side-effect, so they'll
5725 # only be used when explicitly requested
5726 if test "x$enable_dependency_tracking" = xyes; then
5727 continue
5728 else
5729 break
5732 none) break ;;
5733 esac
5734 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5735 # mode. It turns out that the SunPro C++ compiler does not properly
5736 # handle `-M -o', and we need to detect this.
5737 if depmode=$depmode \
5738 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5739 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5740 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5741 >/dev/null 2>conftest.err &&
5742 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5743 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5744 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5745 # icc doesn't choke on unknown options, it will just issue warnings
5746 # (even with -Werror). So we grep stderr for any message
5747 # that says an option was ignored.
5748 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
5749 am_cv_CXX_dependencies_compiler_type=$depmode
5750 break
5753 done
5755 cd ..
5756 rm -rf conftest.dir
5757 else
5758 am_cv_CXX_dependencies_compiler_type=none
5762 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5763 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5764 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5769 test "x$enable_dependency_tracking" != xno \
5770 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5771 am__fastdepCXX_TRUE=
5772 am__fastdepCXX_FALSE='#'
5773 else
5774 am__fastdepCXX_TRUE='#'
5775 am__fastdepCXX_FALSE=
5781 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5782 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5783 (test "X$CXX" != "Xg++"))) ; then
5784 ac_ext=cpp
5785 ac_cpp='$CXXCPP $CPPFLAGS'
5786 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5787 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5788 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5789 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5790 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5791 if test -z "$CXXCPP"; then
5792 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5793 echo $ECHO_N "(cached) $ECHO_C" >&6
5794 else
5795 # Double quotes because CXXCPP needs to be expanded
5796 for CXXCPP in "$CXX -E" "/lib/cpp"
5798 ac_preproc_ok=false
5799 for ac_cxx_preproc_warn_flag in '' yes
5801 # Use a header file that comes with gcc, so configuring glibc
5802 # with a fresh cross-compiler works.
5803 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5804 # <limits.h> exists even on freestanding compilers.
5805 # On the NeXT, cc -E runs the code through the compiler's parser,
5806 # not just through cpp. "Syntax error" is here to catch this case.
5807 cat >conftest.$ac_ext <<_ACEOF
5808 /* confdefs.h. */
5809 _ACEOF
5810 cat confdefs.h >>conftest.$ac_ext
5811 cat >>conftest.$ac_ext <<_ACEOF
5812 /* end confdefs.h. */
5813 #ifdef __STDC__
5814 # include <limits.h>
5815 #else
5816 # include <assert.h>
5817 #endif
5818 Syntax error
5819 _ACEOF
5820 if { (ac_try="$ac_cpp conftest.$ac_ext"
5821 case "(($ac_try" in
5822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5823 *) ac_try_echo=$ac_try;;
5824 esac
5825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5826 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5827 ac_status=$?
5828 grep -v '^ *+' conftest.er1 >conftest.err
5829 rm -f conftest.er1
5830 cat conftest.err >&5
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); } >/dev/null && {
5833 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5834 test ! -s conftest.err
5835 }; then
5837 else
5838 echo "$as_me: failed program was:" >&5
5839 sed 's/^/| /' conftest.$ac_ext >&5
5841 # Broken: fails on valid input.
5842 continue
5845 rm -f conftest.err conftest.$ac_ext
5847 # OK, works on sane cases. Now check whether nonexistent headers
5848 # can be detected and how.
5849 cat >conftest.$ac_ext <<_ACEOF
5850 /* confdefs.h. */
5851 _ACEOF
5852 cat confdefs.h >>conftest.$ac_ext
5853 cat >>conftest.$ac_ext <<_ACEOF
5854 /* end confdefs.h. */
5855 #include <ac_nonexistent.h>
5856 _ACEOF
5857 if { (ac_try="$ac_cpp conftest.$ac_ext"
5858 case "(($ac_try" in
5859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5860 *) ac_try_echo=$ac_try;;
5861 esac
5862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5863 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5864 ac_status=$?
5865 grep -v '^ *+' conftest.er1 >conftest.err
5866 rm -f conftest.er1
5867 cat conftest.err >&5
5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869 (exit $ac_status); } >/dev/null && {
5870 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5871 test ! -s conftest.err
5872 }; then
5873 # Broken: success on invalid input.
5874 continue
5875 else
5876 echo "$as_me: failed program was:" >&5
5877 sed 's/^/| /' conftest.$ac_ext >&5
5879 # Passes both tests.
5880 ac_preproc_ok=:
5881 break
5884 rm -f conftest.err conftest.$ac_ext
5886 done
5887 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5888 rm -f conftest.err conftest.$ac_ext
5889 if $ac_preproc_ok; then
5890 break
5893 done
5894 ac_cv_prog_CXXCPP=$CXXCPP
5897 CXXCPP=$ac_cv_prog_CXXCPP
5898 else
5899 ac_cv_prog_CXXCPP=$CXXCPP
5901 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5902 echo "${ECHO_T}$CXXCPP" >&6; }
5903 ac_preproc_ok=false
5904 for ac_cxx_preproc_warn_flag in '' yes
5906 # Use a header file that comes with gcc, so configuring glibc
5907 # with a fresh cross-compiler works.
5908 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5909 # <limits.h> exists even on freestanding compilers.
5910 # On the NeXT, cc -E runs the code through the compiler's parser,
5911 # not just through cpp. "Syntax error" is here to catch this case.
5912 cat >conftest.$ac_ext <<_ACEOF
5913 /* confdefs.h. */
5914 _ACEOF
5915 cat confdefs.h >>conftest.$ac_ext
5916 cat >>conftest.$ac_ext <<_ACEOF
5917 /* end confdefs.h. */
5918 #ifdef __STDC__
5919 # include <limits.h>
5920 #else
5921 # include <assert.h>
5922 #endif
5923 Syntax error
5924 _ACEOF
5925 if { (ac_try="$ac_cpp conftest.$ac_ext"
5926 case "(($ac_try" in
5927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5928 *) ac_try_echo=$ac_try;;
5929 esac
5930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5931 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5932 ac_status=$?
5933 grep -v '^ *+' conftest.er1 >conftest.err
5934 rm -f conftest.er1
5935 cat conftest.err >&5
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); } >/dev/null && {
5938 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5939 test ! -s conftest.err
5940 }; then
5942 else
5943 echo "$as_me: failed program was:" >&5
5944 sed 's/^/| /' conftest.$ac_ext >&5
5946 # Broken: fails on valid input.
5947 continue
5950 rm -f conftest.err conftest.$ac_ext
5952 # OK, works on sane cases. Now check whether nonexistent headers
5953 # can be detected and how.
5954 cat >conftest.$ac_ext <<_ACEOF
5955 /* confdefs.h. */
5956 _ACEOF
5957 cat confdefs.h >>conftest.$ac_ext
5958 cat >>conftest.$ac_ext <<_ACEOF
5959 /* end confdefs.h. */
5960 #include <ac_nonexistent.h>
5961 _ACEOF
5962 if { (ac_try="$ac_cpp conftest.$ac_ext"
5963 case "(($ac_try" in
5964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5965 *) ac_try_echo=$ac_try;;
5966 esac
5967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5968 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5969 ac_status=$?
5970 grep -v '^ *+' conftest.er1 >conftest.err
5971 rm -f conftest.er1
5972 cat conftest.err >&5
5973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974 (exit $ac_status); } >/dev/null && {
5975 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5976 test ! -s conftest.err
5977 }; then
5978 # Broken: success on invalid input.
5979 continue
5980 else
5981 echo "$as_me: failed program was:" >&5
5982 sed 's/^/| /' conftest.$ac_ext >&5
5984 # Passes both tests.
5985 ac_preproc_ok=:
5986 break
5989 rm -f conftest.err conftest.$ac_ext
5991 done
5992 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5993 rm -f conftest.err conftest.$ac_ext
5994 if $ac_preproc_ok; then
5996 else
5997 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5998 See \`config.log' for more details." >&5
5999 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6000 See \`config.log' for more details." >&2;}
6001 { (exit 1); exit 1; }; }
6004 ac_ext=cpp
6005 ac_cpp='$CXXCPP $CPPFLAGS'
6006 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6007 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6008 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6013 ac_ext=f
6014 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6015 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6016 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6017 if test -n "$ac_tool_prefix"; then
6018 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6020 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6021 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6022 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6024 if test "${ac_cv_prog_F77+set}" = set; then
6025 echo $ECHO_N "(cached) $ECHO_C" >&6
6026 else
6027 if test -n "$F77"; then
6028 ac_cv_prog_F77="$F77" # Let the user override the test.
6029 else
6030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6031 for as_dir in $PATH
6033 IFS=$as_save_IFS
6034 test -z "$as_dir" && as_dir=.
6035 for ac_exec_ext in '' $ac_executable_extensions; do
6036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6037 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6039 break 2
6041 done
6042 done
6043 IFS=$as_save_IFS
6047 F77=$ac_cv_prog_F77
6048 if test -n "$F77"; then
6049 { echo "$as_me:$LINENO: result: $F77" >&5
6050 echo "${ECHO_T}$F77" >&6; }
6051 else
6052 { echo "$as_me:$LINENO: result: no" >&5
6053 echo "${ECHO_T}no" >&6; }
6057 test -n "$F77" && break
6058 done
6060 if test -z "$F77"; then
6061 ac_ct_F77=$F77
6062 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6064 # Extract the first word of "$ac_prog", so it can be a program name with args.
6065 set dummy $ac_prog; ac_word=$2
6066 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6068 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6069 echo $ECHO_N "(cached) $ECHO_C" >&6
6070 else
6071 if test -n "$ac_ct_F77"; then
6072 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6073 else
6074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6075 for as_dir in $PATH
6077 IFS=$as_save_IFS
6078 test -z "$as_dir" && as_dir=.
6079 for ac_exec_ext in '' $ac_executable_extensions; do
6080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6081 ac_cv_prog_ac_ct_F77="$ac_prog"
6082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6083 break 2
6085 done
6086 done
6087 IFS=$as_save_IFS
6091 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6092 if test -n "$ac_ct_F77"; then
6093 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6094 echo "${ECHO_T}$ac_ct_F77" >&6; }
6095 else
6096 { echo "$as_me:$LINENO: result: no" >&5
6097 echo "${ECHO_T}no" >&6; }
6101 test -n "$ac_ct_F77" && break
6102 done
6104 if test "x$ac_ct_F77" = x; then
6105 F77=""
6106 else
6107 case $cross_compiling:$ac_tool_warned in
6108 yes:)
6109 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6110 whose name does not start with the host triplet. If you think this
6111 configuration is useful to you, please write to autoconf@gnu.org." >&5
6112 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6113 whose name does not start with the host triplet. If you think this
6114 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6115 ac_tool_warned=yes ;;
6116 esac
6117 F77=$ac_ct_F77
6122 # Provide some information about the compiler.
6123 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6124 ac_compiler=`set X $ac_compile; echo $2`
6125 { (ac_try="$ac_compiler --version >&5"
6126 case "(($ac_try" in
6127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6128 *) ac_try_echo=$ac_try;;
6129 esac
6130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6131 (eval "$ac_compiler --version >&5") 2>&5
6132 ac_status=$?
6133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134 (exit $ac_status); }
6135 { (ac_try="$ac_compiler -v >&5"
6136 case "(($ac_try" in
6137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6138 *) ac_try_echo=$ac_try;;
6139 esac
6140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6141 (eval "$ac_compiler -v >&5") 2>&5
6142 ac_status=$?
6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); }
6145 { (ac_try="$ac_compiler -V >&5"
6146 case "(($ac_try" in
6147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6148 *) ac_try_echo=$ac_try;;
6149 esac
6150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6151 (eval "$ac_compiler -V >&5") 2>&5
6152 ac_status=$?
6153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154 (exit $ac_status); }
6155 rm -f a.out
6157 # If we don't use `.F' as extension, the preprocessor is not run on the
6158 # input file. (Note that this only needs to work for GNU compilers.)
6159 ac_save_ext=$ac_ext
6160 ac_ext=F
6161 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6162 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6163 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6164 echo $ECHO_N "(cached) $ECHO_C" >&6
6165 else
6166 cat >conftest.$ac_ext <<_ACEOF
6167 program main
6168 #ifndef __GNUC__
6169 choke me
6170 #endif
6173 _ACEOF
6174 rm -f conftest.$ac_objext
6175 if { (ac_try="$ac_compile"
6176 case "(($ac_try" in
6177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6178 *) ac_try_echo=$ac_try;;
6179 esac
6180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6181 (eval "$ac_compile") 2>conftest.er1
6182 ac_status=$?
6183 grep -v '^ *+' conftest.er1 >conftest.err
6184 rm -f conftest.er1
6185 cat conftest.err >&5
6186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187 (exit $ac_status); } && {
6188 test -z "$ac_f77_werror_flag" ||
6189 test ! -s conftest.err
6190 } && test -s conftest.$ac_objext; then
6191 ac_compiler_gnu=yes
6192 else
6193 echo "$as_me: failed program was:" >&5
6194 sed 's/^/| /' conftest.$ac_ext >&5
6196 ac_compiler_gnu=no
6199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6200 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6203 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6204 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6205 ac_ext=$ac_save_ext
6206 ac_test_FFLAGS=${FFLAGS+set}
6207 ac_save_FFLAGS=$FFLAGS
6208 FFLAGS=
6209 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6210 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6211 if test "${ac_cv_prog_f77_g+set}" = set; then
6212 echo $ECHO_N "(cached) $ECHO_C" >&6
6213 else
6214 FFLAGS=-g
6215 cat >conftest.$ac_ext <<_ACEOF
6216 program main
6219 _ACEOF
6220 rm -f conftest.$ac_objext
6221 if { (ac_try="$ac_compile"
6222 case "(($ac_try" in
6223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6224 *) ac_try_echo=$ac_try;;
6225 esac
6226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6227 (eval "$ac_compile") 2>conftest.er1
6228 ac_status=$?
6229 grep -v '^ *+' conftest.er1 >conftest.err
6230 rm -f conftest.er1
6231 cat conftest.err >&5
6232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233 (exit $ac_status); } && {
6234 test -z "$ac_f77_werror_flag" ||
6235 test ! -s conftest.err
6236 } && test -s conftest.$ac_objext; then
6237 ac_cv_prog_f77_g=yes
6238 else
6239 echo "$as_me: failed program was:" >&5
6240 sed 's/^/| /' conftest.$ac_ext >&5
6242 ac_cv_prog_f77_g=no
6245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6248 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6249 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6250 if test "$ac_test_FFLAGS" = set; then
6251 FFLAGS=$ac_save_FFLAGS
6252 elif test $ac_cv_prog_f77_g = yes; then
6253 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6254 FFLAGS="-g -O2"
6255 else
6256 FFLAGS="-g"
6258 else
6259 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6260 FFLAGS="-O2"
6261 else
6262 FFLAGS=
6266 G77=`test $ac_compiler_gnu = yes && echo yes`
6267 ac_ext=c
6268 ac_cpp='$CPP $CPPFLAGS'
6269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6275 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6276 # find the maximum length of command line arguments
6277 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6278 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6279 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6280 echo $ECHO_N "(cached) $ECHO_C" >&6
6281 else
6283 teststring="ABCD"
6285 case $build_os in
6286 msdosdjgpp*)
6287 # On DJGPP, this test can blow up pretty badly due to problems in libc
6288 # (any single argument exceeding 2000 bytes causes a buffer overrun
6289 # during glob expansion). Even if it were fixed, the result of this
6290 # check would be larger than it should be.
6291 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6294 gnu*)
6295 # Under GNU Hurd, this test is not required because there is
6296 # no limit to the length of command line arguments.
6297 # Libtool will interpret -1 as no limit whatsoever
6298 lt_cv_sys_max_cmd_len=-1;
6301 cygwin* | mingw*)
6302 # On Win9x/ME, this test blows up -- it succeeds, but takes
6303 # about 5 minutes as the teststring grows exponentially.
6304 # Worse, since 9x/ME are not pre-emptively multitasking,
6305 # you end up with a "frozen" computer, even though with patience
6306 # the test eventually succeeds (with a max line length of 256k).
6307 # Instead, let's just punt: use the minimum linelength reported by
6308 # all of the supported platforms: 8192 (on NT/2K/XP).
6309 lt_cv_sys_max_cmd_len=8192;
6312 amigaos*)
6313 # On AmigaOS with pdksh, this test takes hours, literally.
6314 # So we just punt and use a minimum line length of 8192.
6315 lt_cv_sys_max_cmd_len=8192;
6318 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6319 # This has been around since 386BSD, at least. Likely further.
6320 if test -x /sbin/sysctl; then
6321 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6322 elif test -x /usr/sbin/sysctl; then
6323 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6324 else
6325 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6327 # And add a safety zone
6328 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6329 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6332 interix*)
6333 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6334 lt_cv_sys_max_cmd_len=196608
6337 osf*)
6338 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6339 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6340 # nice to cause kernel panics so lets avoid the loop below.
6341 # First set a reasonable default.
6342 lt_cv_sys_max_cmd_len=16384
6344 if test -x /sbin/sysconfig; then
6345 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6346 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6347 esac
6350 sco3.2v5*)
6351 lt_cv_sys_max_cmd_len=102400
6353 sysv5* | sco5v6* | sysv4.2uw2*)
6354 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6355 if test -n "$kargmax"; then
6356 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6357 else
6358 lt_cv_sys_max_cmd_len=32768
6362 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6363 if test -n "$lt_cv_sys_max_cmd_len"; then
6364 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6365 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6366 else
6367 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6368 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6369 = "XX$teststring") >/dev/null 2>&1 &&
6370 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6371 lt_cv_sys_max_cmd_len=$new_result &&
6372 test $i != 17 # 1/2 MB should be enough
6374 i=`expr $i + 1`
6375 teststring=$teststring$teststring
6376 done
6377 teststring=
6378 # Add a significant safety factor because C++ compilers can tack on massive
6379 # amounts of additional arguments before passing them to the linker.
6380 # It appears as though 1/2 is a usable value.
6381 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6384 esac
6388 if test -n $lt_cv_sys_max_cmd_len ; then
6389 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6390 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6391 else
6392 { echo "$as_me:$LINENO: result: none" >&5
6393 echo "${ECHO_T}none" >&6; }
6400 # Check for command to grab the raw symbol name followed by C symbol from nm.
6401 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6402 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6403 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6404 echo $ECHO_N "(cached) $ECHO_C" >&6
6405 else
6407 # These are sane defaults that work on at least a few old systems.
6408 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6410 # Character class describing NM global symbol codes.
6411 symcode='[BCDEGRST]'
6413 # Regexp to match symbols that can be accessed directly from C.
6414 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6416 # Transform an extracted symbol line into a proper C declaration
6417 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6419 # Transform an extracted symbol line into symbol name and symbol address
6420 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6422 # Define system-specific variables.
6423 case $host_os in
6424 aix*)
6425 symcode='[BCDT]'
6427 cygwin* | mingw* | pw32*)
6428 symcode='[ABCDGISTW]'
6430 hpux*) # Its linker distinguishes data from code symbols
6431 if test "$host_cpu" = ia64; then
6432 symcode='[ABCDEGRST]'
6434 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6435 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6437 linux* | k*bsd*-gnu)
6438 if test "$host_cpu" = ia64; then
6439 symcode='[ABCDGIRSTW]'
6440 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6441 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6444 irix* | nonstopux*)
6445 symcode='[BCDEGRST]'
6447 osf*)
6448 symcode='[BCDEGQRST]'
6450 solaris*)
6451 symcode='[BDRT]'
6453 sco3.2v5*)
6454 symcode='[DT]'
6456 sysv4.2uw2*)
6457 symcode='[DT]'
6459 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6460 symcode='[ABDT]'
6462 sysv4)
6463 symcode='[DFNSTU]'
6465 esac
6467 # Handle CRLF in mingw tool chain
6468 opt_cr=
6469 case $build_os in
6470 mingw*)
6471 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6473 esac
6475 # If we're using GNU nm, then use its standard symbol codes.
6476 case `$NM -V 2>&1` in
6477 *GNU* | *'with BFD'*)
6478 symcode='[ABCDGIRSTW]' ;;
6479 esac
6481 # Try without a prefix undercore, then with it.
6482 for ac_symprfx in "" "_"; do
6484 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6485 symxfrm="\\1 $ac_symprfx\\2 \\2"
6487 # Write the raw and C identifiers.
6488 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6490 # Check to see that the pipe works correctly.
6491 pipe_works=no
6493 rm -f conftest*
6494 cat > conftest.$ac_ext <<EOF
6495 #ifdef __cplusplus
6496 extern "C" {
6497 #endif
6498 char nm_test_var;
6499 void nm_test_func(){}
6500 #ifdef __cplusplus
6502 #endif
6503 int main(){nm_test_var='a';nm_test_func();return(0);}
6506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6507 (eval $ac_compile) 2>&5
6508 ac_status=$?
6509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510 (exit $ac_status); }; then
6511 # Now try to grab the symbols.
6512 nlist=conftest.nm
6513 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6514 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6515 ac_status=$?
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); } && test -s "$nlist"; then
6518 # Try sorting and uniquifying the output.
6519 if sort "$nlist" | uniq > "$nlist"T; then
6520 mv -f "$nlist"T "$nlist"
6521 else
6522 rm -f "$nlist"T
6525 # Make sure that we snagged all the symbols we need.
6526 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6527 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6528 cat <<EOF > conftest.$ac_ext
6529 #ifdef __cplusplus
6530 extern "C" {
6531 #endif
6534 # Now generate the symbol file.
6535 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6537 cat <<EOF >> conftest.$ac_ext
6538 #if defined (__STDC__) && __STDC__
6539 # define lt_ptr_t void *
6540 #else
6541 # define lt_ptr_t char *
6542 # define const
6543 #endif
6545 /* The mapping between symbol names and symbols. */
6546 const struct {
6547 const char *name;
6548 lt_ptr_t address;
6550 lt_preloaded_symbols[] =
6553 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6554 cat <<\EOF >> conftest.$ac_ext
6555 {0, (lt_ptr_t) 0}
6558 #ifdef __cplusplus
6560 #endif
6562 # Now try linking the two files.
6563 mv conftest.$ac_objext conftstm.$ac_objext
6564 lt_save_LIBS="$LIBS"
6565 lt_save_CFLAGS="$CFLAGS"
6566 LIBS="conftstm.$ac_objext"
6567 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6569 (eval $ac_link) 2>&5
6570 ac_status=$?
6571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6573 pipe_works=yes
6575 LIBS="$lt_save_LIBS"
6576 CFLAGS="$lt_save_CFLAGS"
6577 else
6578 echo "cannot find nm_test_func in $nlist" >&5
6580 else
6581 echo "cannot find nm_test_var in $nlist" >&5
6583 else
6584 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6586 else
6587 echo "$progname: failed program was:" >&5
6588 cat conftest.$ac_ext >&5
6590 rm -rf conftest* conftst*
6592 # Do not use the global_symbol_pipe unless it works.
6593 if test "$pipe_works" = yes; then
6594 break
6595 else
6596 lt_cv_sys_global_symbol_pipe=
6598 done
6602 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6603 lt_cv_sys_global_symbol_to_cdecl=
6605 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6606 { echo "$as_me:$LINENO: result: failed" >&5
6607 echo "${ECHO_T}failed" >&6; }
6608 else
6609 { echo "$as_me:$LINENO: result: ok" >&5
6610 echo "${ECHO_T}ok" >&6; }
6613 { echo "$as_me:$LINENO: checking for objdir" >&5
6614 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6615 if test "${lt_cv_objdir+set}" = set; then
6616 echo $ECHO_N "(cached) $ECHO_C" >&6
6617 else
6618 rm -f .libs 2>/dev/null
6619 mkdir .libs 2>/dev/null
6620 if test -d .libs; then
6621 lt_cv_objdir=.libs
6622 else
6623 # MS-DOS does not allow filenames that begin with a dot.
6624 lt_cv_objdir=_libs
6626 rmdir .libs 2>/dev/null
6628 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6629 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6630 objdir=$lt_cv_objdir
6636 case $host_os in
6637 aix3*)
6638 # AIX sometimes has problems with the GCC collect2 program. For some
6639 # reason, if we set the COLLECT_NAMES environment variable, the problems
6640 # vanish in a puff of smoke.
6641 if test "X${COLLECT_NAMES+set}" != Xset; then
6642 COLLECT_NAMES=
6643 export COLLECT_NAMES
6646 esac
6648 # Sed substitution that helps us do robust quoting. It backslashifies
6649 # metacharacters that are still active within double-quoted strings.
6650 Xsed='sed -e 1s/^X//'
6651 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6653 # Same as above, but do not quote variable references.
6654 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6656 # Sed substitution to delay expansion of an escaped shell variable in a
6657 # double_quote_subst'ed string.
6658 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6660 # Sed substitution to avoid accidental globbing in evaled expressions
6661 no_glob_subst='s/\*/\\\*/g'
6663 # Constants:
6664 rm="rm -f"
6666 # Global variables:
6667 default_ofile=libtool
6668 can_build_shared=yes
6670 # All known linkers require a `.a' archive for static linking (except MSVC,
6671 # which needs '.lib').
6672 libext=a
6673 ltmain="$ac_aux_dir/ltmain.sh"
6674 ofile="$default_ofile"
6675 with_gnu_ld="$lt_cv_prog_gnu_ld"
6677 if test -n "$ac_tool_prefix"; then
6678 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6679 set dummy ${ac_tool_prefix}ar; ac_word=$2
6680 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6682 if test "${ac_cv_prog_AR+set}" = set; then
6683 echo $ECHO_N "(cached) $ECHO_C" >&6
6684 else
6685 if test -n "$AR"; then
6686 ac_cv_prog_AR="$AR" # Let the user override the test.
6687 else
6688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6689 for as_dir in $PATH
6691 IFS=$as_save_IFS
6692 test -z "$as_dir" && as_dir=.
6693 for ac_exec_ext in '' $ac_executable_extensions; do
6694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6695 ac_cv_prog_AR="${ac_tool_prefix}ar"
6696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6697 break 2
6699 done
6700 done
6701 IFS=$as_save_IFS
6705 AR=$ac_cv_prog_AR
6706 if test -n "$AR"; then
6707 { echo "$as_me:$LINENO: result: $AR" >&5
6708 echo "${ECHO_T}$AR" >&6; }
6709 else
6710 { echo "$as_me:$LINENO: result: no" >&5
6711 echo "${ECHO_T}no" >&6; }
6716 if test -z "$ac_cv_prog_AR"; then
6717 ac_ct_AR=$AR
6718 # Extract the first word of "ar", so it can be a program name with args.
6719 set dummy ar; ac_word=$2
6720 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6722 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6723 echo $ECHO_N "(cached) $ECHO_C" >&6
6724 else
6725 if test -n "$ac_ct_AR"; then
6726 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6727 else
6728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6729 for as_dir in $PATH
6731 IFS=$as_save_IFS
6732 test -z "$as_dir" && as_dir=.
6733 for ac_exec_ext in '' $ac_executable_extensions; do
6734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6735 ac_cv_prog_ac_ct_AR="ar"
6736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6737 break 2
6739 done
6740 done
6741 IFS=$as_save_IFS
6745 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6746 if test -n "$ac_ct_AR"; then
6747 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6748 echo "${ECHO_T}$ac_ct_AR" >&6; }
6749 else
6750 { echo "$as_me:$LINENO: result: no" >&5
6751 echo "${ECHO_T}no" >&6; }
6754 if test "x$ac_ct_AR" = x; then
6755 AR="false"
6756 else
6757 case $cross_compiling:$ac_tool_warned in
6758 yes:)
6759 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6760 whose name does not start with the host triplet. If you think this
6761 configuration is useful to you, please write to autoconf@gnu.org." >&5
6762 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6763 whose name does not start with the host triplet. If you think this
6764 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6765 ac_tool_warned=yes ;;
6766 esac
6767 AR=$ac_ct_AR
6769 else
6770 AR="$ac_cv_prog_AR"
6773 if test -n "$ac_tool_prefix"; then
6774 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6775 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6776 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6778 if test "${ac_cv_prog_RANLIB+set}" = set; then
6779 echo $ECHO_N "(cached) $ECHO_C" >&6
6780 else
6781 if test -n "$RANLIB"; then
6782 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6783 else
6784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6785 for as_dir in $PATH
6787 IFS=$as_save_IFS
6788 test -z "$as_dir" && as_dir=.
6789 for ac_exec_ext in '' $ac_executable_extensions; do
6790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6791 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6793 break 2
6795 done
6796 done
6797 IFS=$as_save_IFS
6801 RANLIB=$ac_cv_prog_RANLIB
6802 if test -n "$RANLIB"; then
6803 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6804 echo "${ECHO_T}$RANLIB" >&6; }
6805 else
6806 { echo "$as_me:$LINENO: result: no" >&5
6807 echo "${ECHO_T}no" >&6; }
6812 if test -z "$ac_cv_prog_RANLIB"; then
6813 ac_ct_RANLIB=$RANLIB
6814 # Extract the first word of "ranlib", so it can be a program name with args.
6815 set dummy ranlib; ac_word=$2
6816 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6818 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6819 echo $ECHO_N "(cached) $ECHO_C" >&6
6820 else
6821 if test -n "$ac_ct_RANLIB"; then
6822 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6823 else
6824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825 for as_dir in $PATH
6827 IFS=$as_save_IFS
6828 test -z "$as_dir" && as_dir=.
6829 for ac_exec_ext in '' $ac_executable_extensions; do
6830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6831 ac_cv_prog_ac_ct_RANLIB="ranlib"
6832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6833 break 2
6835 done
6836 done
6837 IFS=$as_save_IFS
6841 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6842 if test -n "$ac_ct_RANLIB"; then
6843 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6844 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6845 else
6846 { echo "$as_me:$LINENO: result: no" >&5
6847 echo "${ECHO_T}no" >&6; }
6850 if test "x$ac_ct_RANLIB" = x; then
6851 RANLIB=":"
6852 else
6853 case $cross_compiling:$ac_tool_warned in
6854 yes:)
6855 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6856 whose name does not start with the host triplet. If you think this
6857 configuration is useful to you, please write to autoconf@gnu.org." >&5
6858 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6859 whose name does not start with the host triplet. If you think this
6860 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6861 ac_tool_warned=yes ;;
6862 esac
6863 RANLIB=$ac_ct_RANLIB
6865 else
6866 RANLIB="$ac_cv_prog_RANLIB"
6869 if test -n "$ac_tool_prefix"; then
6870 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6871 set dummy ${ac_tool_prefix}strip; ac_word=$2
6872 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6874 if test "${ac_cv_prog_STRIP+set}" = set; then
6875 echo $ECHO_N "(cached) $ECHO_C" >&6
6876 else
6877 if test -n "$STRIP"; then
6878 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6879 else
6880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6881 for as_dir in $PATH
6883 IFS=$as_save_IFS
6884 test -z "$as_dir" && as_dir=.
6885 for ac_exec_ext in '' $ac_executable_extensions; do
6886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6887 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6889 break 2
6891 done
6892 done
6893 IFS=$as_save_IFS
6897 STRIP=$ac_cv_prog_STRIP
6898 if test -n "$STRIP"; then
6899 { echo "$as_me:$LINENO: result: $STRIP" >&5
6900 echo "${ECHO_T}$STRIP" >&6; }
6901 else
6902 { echo "$as_me:$LINENO: result: no" >&5
6903 echo "${ECHO_T}no" >&6; }
6908 if test -z "$ac_cv_prog_STRIP"; then
6909 ac_ct_STRIP=$STRIP
6910 # Extract the first word of "strip", so it can be a program name with args.
6911 set dummy strip; ac_word=$2
6912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6914 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6915 echo $ECHO_N "(cached) $ECHO_C" >&6
6916 else
6917 if test -n "$ac_ct_STRIP"; then
6918 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6919 else
6920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6921 for as_dir in $PATH
6923 IFS=$as_save_IFS
6924 test -z "$as_dir" && as_dir=.
6925 for ac_exec_ext in '' $ac_executable_extensions; do
6926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6927 ac_cv_prog_ac_ct_STRIP="strip"
6928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6929 break 2
6931 done
6932 done
6933 IFS=$as_save_IFS
6937 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6938 if test -n "$ac_ct_STRIP"; then
6939 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6940 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6941 else
6942 { echo "$as_me:$LINENO: result: no" >&5
6943 echo "${ECHO_T}no" >&6; }
6946 if test "x$ac_ct_STRIP" = x; then
6947 STRIP=":"
6948 else
6949 case $cross_compiling:$ac_tool_warned in
6950 yes:)
6951 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6952 whose name does not start with the host triplet. If you think this
6953 configuration is useful to you, please write to autoconf@gnu.org." >&5
6954 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6955 whose name does not start with the host triplet. If you think this
6956 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6957 ac_tool_warned=yes ;;
6958 esac
6959 STRIP=$ac_ct_STRIP
6961 else
6962 STRIP="$ac_cv_prog_STRIP"
6966 old_CC="$CC"
6967 old_CFLAGS="$CFLAGS"
6969 # Set sane defaults for various variables
6970 test -z "$AR" && AR=ar
6971 test -z "$AR_FLAGS" && AR_FLAGS=cru
6972 test -z "$AS" && AS=as
6973 test -z "$CC" && CC=cc
6974 test -z "$LTCC" && LTCC=$CC
6975 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6976 test -z "$DLLTOOL" && DLLTOOL=dlltool
6977 test -z "$LD" && LD=ld
6978 test -z "$LN_S" && LN_S="ln -s"
6979 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6980 test -z "$NM" && NM=nm
6981 test -z "$SED" && SED=sed
6982 test -z "$OBJDUMP" && OBJDUMP=objdump
6983 test -z "$RANLIB" && RANLIB=:
6984 test -z "$STRIP" && STRIP=:
6985 test -z "$ac_objext" && ac_objext=o
6987 # Determine commands to create old-style static archives.
6988 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6989 old_postinstall_cmds='chmod 644 $oldlib'
6990 old_postuninstall_cmds=
6992 if test -n "$RANLIB"; then
6993 case $host_os in
6994 openbsd*)
6995 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6998 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7000 esac
7001 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7004 for cc_temp in $compiler""; do
7005 case $cc_temp in
7006 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7007 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7008 \-*) ;;
7009 *) break;;
7010 esac
7011 done
7012 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7015 # Only perform the check for file, if the check method requires it
7016 case $deplibs_check_method in
7017 file_magic*)
7018 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7019 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7020 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7021 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7022 echo $ECHO_N "(cached) $ECHO_C" >&6
7023 else
7024 case $MAGIC_CMD in
7025 [\\/*] | ?:[\\/]*)
7026 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7029 lt_save_MAGIC_CMD="$MAGIC_CMD"
7030 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7031 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7032 for ac_dir in $ac_dummy; do
7033 IFS="$lt_save_ifs"
7034 test -z "$ac_dir" && ac_dir=.
7035 if test -f $ac_dir/${ac_tool_prefix}file; then
7036 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7037 if test -n "$file_magic_test_file"; then
7038 case $deplibs_check_method in
7039 "file_magic "*)
7040 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7041 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7042 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7043 $EGREP "$file_magic_regex" > /dev/null; then
7045 else
7046 cat <<EOF 1>&2
7048 *** Warning: the command libtool uses to detect shared libraries,
7049 *** $file_magic_cmd, produces output that libtool cannot recognize.
7050 *** The result is that libtool may fail to recognize shared libraries
7051 *** as such. This will affect the creation of libtool libraries that
7052 *** depend on shared libraries, but programs linked with such libtool
7053 *** libraries will work regardless of this problem. Nevertheless, you
7054 *** may want to report the problem to your system manager and/or to
7055 *** bug-libtool@gnu.org
7058 fi ;;
7059 esac
7061 break
7063 done
7064 IFS="$lt_save_ifs"
7065 MAGIC_CMD="$lt_save_MAGIC_CMD"
7067 esac
7070 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7071 if test -n "$MAGIC_CMD"; then
7072 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7073 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7074 else
7075 { echo "$as_me:$LINENO: result: no" >&5
7076 echo "${ECHO_T}no" >&6; }
7079 if test -z "$lt_cv_path_MAGIC_CMD"; then
7080 if test -n "$ac_tool_prefix"; then
7081 { echo "$as_me:$LINENO: checking for file" >&5
7082 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7083 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7084 echo $ECHO_N "(cached) $ECHO_C" >&6
7085 else
7086 case $MAGIC_CMD in
7087 [\\/*] | ?:[\\/]*)
7088 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7091 lt_save_MAGIC_CMD="$MAGIC_CMD"
7092 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7093 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7094 for ac_dir in $ac_dummy; do
7095 IFS="$lt_save_ifs"
7096 test -z "$ac_dir" && ac_dir=.
7097 if test -f $ac_dir/file; then
7098 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7099 if test -n "$file_magic_test_file"; then
7100 case $deplibs_check_method in
7101 "file_magic "*)
7102 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7103 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7104 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7105 $EGREP "$file_magic_regex" > /dev/null; then
7107 else
7108 cat <<EOF 1>&2
7110 *** Warning: the command libtool uses to detect shared libraries,
7111 *** $file_magic_cmd, produces output that libtool cannot recognize.
7112 *** The result is that libtool may fail to recognize shared libraries
7113 *** as such. This will affect the creation of libtool libraries that
7114 *** depend on shared libraries, but programs linked with such libtool
7115 *** libraries will work regardless of this problem. Nevertheless, you
7116 *** may want to report the problem to your system manager and/or to
7117 *** bug-libtool@gnu.org
7120 fi ;;
7121 esac
7123 break
7125 done
7126 IFS="$lt_save_ifs"
7127 MAGIC_CMD="$lt_save_MAGIC_CMD"
7129 esac
7132 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7133 if test -n "$MAGIC_CMD"; then
7134 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7135 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7136 else
7137 { echo "$as_me:$LINENO: result: no" >&5
7138 echo "${ECHO_T}no" >&6; }
7141 else
7142 MAGIC_CMD=:
7148 esac
7151 case $host_os in
7152 rhapsody* | darwin*)
7153 if test -n "$ac_tool_prefix"; then
7154 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7155 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7156 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7158 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7159 echo $ECHO_N "(cached) $ECHO_C" >&6
7160 else
7161 if test -n "$DSYMUTIL"; then
7162 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7163 else
7164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7165 for as_dir in $PATH
7167 IFS=$as_save_IFS
7168 test -z "$as_dir" && as_dir=.
7169 for ac_exec_ext in '' $ac_executable_extensions; do
7170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7171 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7173 break 2
7175 done
7176 done
7177 IFS=$as_save_IFS
7181 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7182 if test -n "$DSYMUTIL"; then
7183 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7184 echo "${ECHO_T}$DSYMUTIL" >&6; }
7185 else
7186 { echo "$as_me:$LINENO: result: no" >&5
7187 echo "${ECHO_T}no" >&6; }
7192 if test -z "$ac_cv_prog_DSYMUTIL"; then
7193 ac_ct_DSYMUTIL=$DSYMUTIL
7194 # Extract the first word of "dsymutil", so it can be a program name with args.
7195 set dummy dsymutil; ac_word=$2
7196 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7198 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7199 echo $ECHO_N "(cached) $ECHO_C" >&6
7200 else
7201 if test -n "$ac_ct_DSYMUTIL"; then
7202 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7203 else
7204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7205 for as_dir in $PATH
7207 IFS=$as_save_IFS
7208 test -z "$as_dir" && as_dir=.
7209 for ac_exec_ext in '' $ac_executable_extensions; do
7210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7211 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7213 break 2
7215 done
7216 done
7217 IFS=$as_save_IFS
7221 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7222 if test -n "$ac_ct_DSYMUTIL"; then
7223 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7224 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7225 else
7226 { echo "$as_me:$LINENO: result: no" >&5
7227 echo "${ECHO_T}no" >&6; }
7230 if test "x$ac_ct_DSYMUTIL" = x; then
7231 DSYMUTIL=":"
7232 else
7233 case $cross_compiling:$ac_tool_warned in
7234 yes:)
7235 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7236 whose name does not start with the host triplet. If you think this
7237 configuration is useful to you, please write to autoconf@gnu.org." >&5
7238 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7239 whose name does not start with the host triplet. If you think this
7240 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7241 ac_tool_warned=yes ;;
7242 esac
7243 DSYMUTIL=$ac_ct_DSYMUTIL
7245 else
7246 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7249 if test -n "$ac_tool_prefix"; then
7250 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7251 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7252 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7254 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7255 echo $ECHO_N "(cached) $ECHO_C" >&6
7256 else
7257 if test -n "$NMEDIT"; then
7258 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7259 else
7260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7261 for as_dir in $PATH
7263 IFS=$as_save_IFS
7264 test -z "$as_dir" && as_dir=.
7265 for ac_exec_ext in '' $ac_executable_extensions; do
7266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7267 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7269 break 2
7271 done
7272 done
7273 IFS=$as_save_IFS
7277 NMEDIT=$ac_cv_prog_NMEDIT
7278 if test -n "$NMEDIT"; then
7279 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7280 echo "${ECHO_T}$NMEDIT" >&6; }
7281 else
7282 { echo "$as_me:$LINENO: result: no" >&5
7283 echo "${ECHO_T}no" >&6; }
7288 if test -z "$ac_cv_prog_NMEDIT"; then
7289 ac_ct_NMEDIT=$NMEDIT
7290 # Extract the first word of "nmedit", so it can be a program name with args.
7291 set dummy nmedit; ac_word=$2
7292 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7294 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7295 echo $ECHO_N "(cached) $ECHO_C" >&6
7296 else
7297 if test -n "$ac_ct_NMEDIT"; then
7298 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7299 else
7300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7301 for as_dir in $PATH
7303 IFS=$as_save_IFS
7304 test -z "$as_dir" && as_dir=.
7305 for ac_exec_ext in '' $ac_executable_extensions; do
7306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7307 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7309 break 2
7311 done
7312 done
7313 IFS=$as_save_IFS
7317 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7318 if test -n "$ac_ct_NMEDIT"; then
7319 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7320 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7321 else
7322 { echo "$as_me:$LINENO: result: no" >&5
7323 echo "${ECHO_T}no" >&6; }
7326 if test "x$ac_ct_NMEDIT" = x; then
7327 NMEDIT=":"
7328 else
7329 case $cross_compiling:$ac_tool_warned in
7330 yes:)
7331 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7332 whose name does not start with the host triplet. If you think this
7333 configuration is useful to you, please write to autoconf@gnu.org." >&5
7334 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7335 whose name does not start with the host triplet. If you think this
7336 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7337 ac_tool_warned=yes ;;
7338 esac
7339 NMEDIT=$ac_ct_NMEDIT
7341 else
7342 NMEDIT="$ac_cv_prog_NMEDIT"
7346 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7347 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7348 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7349 echo $ECHO_N "(cached) $ECHO_C" >&6
7350 else
7351 lt_cv_apple_cc_single_mod=no
7352 if test -z "${LT_MULTI_MODULE}"; then
7353 # By default we will add the -single_module flag. You can override
7354 # by either setting the environment variable LT_MULTI_MODULE
7355 # non-empty at configure time, or by adding -multi_module to the
7356 # link flags.
7357 echo "int foo(void){return 1;}" > conftest.c
7358 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7359 -dynamiclib ${wl}-single_module conftest.c
7360 if test -f libconftest.dylib; then
7361 lt_cv_apple_cc_single_mod=yes
7362 rm -rf libconftest.dylib*
7364 rm conftest.c
7367 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7368 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7369 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7370 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7371 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7372 echo $ECHO_N "(cached) $ECHO_C" >&6
7373 else
7374 lt_cv_ld_exported_symbols_list=no
7375 save_LDFLAGS=$LDFLAGS
7376 echo "_main" > conftest.sym
7377 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7378 cat >conftest.$ac_ext <<_ACEOF
7379 /* confdefs.h. */
7380 _ACEOF
7381 cat confdefs.h >>conftest.$ac_ext
7382 cat >>conftest.$ac_ext <<_ACEOF
7383 /* end confdefs.h. */
7386 main ()
7390 return 0;
7392 _ACEOF
7393 rm -f conftest.$ac_objext conftest$ac_exeext
7394 if { (ac_try="$ac_link"
7395 case "(($ac_try" in
7396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7397 *) ac_try_echo=$ac_try;;
7398 esac
7399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7400 (eval "$ac_link") 2>conftest.er1
7401 ac_status=$?
7402 grep -v '^ *+' conftest.er1 >conftest.err
7403 rm -f conftest.er1
7404 cat conftest.err >&5
7405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7406 (exit $ac_status); } && {
7407 test -z "$ac_c_werror_flag" ||
7408 test ! -s conftest.err
7409 } && test -s conftest$ac_exeext &&
7410 $as_test_x conftest$ac_exeext; then
7411 lt_cv_ld_exported_symbols_list=yes
7412 else
7413 echo "$as_me: failed program was:" >&5
7414 sed 's/^/| /' conftest.$ac_ext >&5
7416 lt_cv_ld_exported_symbols_list=no
7419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7420 conftest$ac_exeext conftest.$ac_ext
7421 LDFLAGS="$save_LDFLAGS"
7424 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7425 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7426 case $host_os in
7427 rhapsody* | darwin1.[0123])
7428 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7429 darwin1.*)
7430 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7431 darwin*)
7432 # if running on 10.5 or later, the deployment target defaults
7433 # to the OS version, if on x86, and 10.4, the deployment
7434 # target defaults to 10.4. Don't you love it?
7435 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7436 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7437 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7438 10.[012]*)
7439 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7440 10.*)
7441 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7442 esac
7444 esac
7445 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7446 _lt_dar_single_mod='$single_module'
7448 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7449 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7450 else
7451 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7453 if test "$DSYMUTIL" != ":"; then
7454 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7455 else
7456 _lt_dsymutil=
7459 esac
7462 enable_dlopen=no
7463 enable_win32_dll=no
7465 # Check whether --enable-libtool-lock was given.
7466 if test "${enable_libtool_lock+set}" = set; then
7467 enableval=$enable_libtool_lock;
7470 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7473 # Check whether --with-pic was given.
7474 if test "${with_pic+set}" = set; then
7475 withval=$with_pic; pic_mode="$withval"
7476 else
7477 pic_mode=default
7480 test -z "$pic_mode" && pic_mode=default
7482 # Use C for the default configuration in the libtool script
7483 tagname=
7484 lt_save_CC="$CC"
7485 ac_ext=c
7486 ac_cpp='$CPP $CPPFLAGS'
7487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7492 # Source file extension for C test sources.
7493 ac_ext=c
7495 # Object file extension for compiled C test sources.
7496 objext=o
7497 objext=$objext
7499 # Code to be used in simple compile tests
7500 lt_simple_compile_test_code="int some_variable = 0;"
7502 # Code to be used in simple link tests
7503 lt_simple_link_test_code='int main(){return(0);}'
7506 # If no C compiler was specified, use CC.
7507 LTCC=${LTCC-"$CC"}
7509 # If no C compiler flags were specified, use CFLAGS.
7510 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7512 # Allow CC to be a program name with arguments.
7513 compiler=$CC
7516 # save warnings/boilerplate of simple test code
7517 ac_outfile=conftest.$ac_objext
7518 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7519 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7520 _lt_compiler_boilerplate=`cat conftest.err`
7521 $rm conftest*
7523 ac_outfile=conftest.$ac_objext
7524 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7525 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7526 _lt_linker_boilerplate=`cat conftest.err`
7527 $rm -r conftest*
7531 lt_prog_compiler_no_builtin_flag=
7533 if test "$GCC" = yes; then
7534 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7537 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7538 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7539 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7540 echo $ECHO_N "(cached) $ECHO_C" >&6
7541 else
7542 lt_cv_prog_compiler_rtti_exceptions=no
7543 ac_outfile=conftest.$ac_objext
7544 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7545 lt_compiler_flag="-fno-rtti -fno-exceptions"
7546 # Insert the option either (1) after the last *FLAGS variable, or
7547 # (2) before a word containing "conftest.", or (3) at the end.
7548 # Note that $ac_compile itself does not contain backslashes and begins
7549 # with a dollar sign (not a hyphen), so the echo should work correctly.
7550 # The option is referenced via a variable to avoid confusing sed.
7551 lt_compile=`echo "$ac_compile" | $SED \
7552 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7553 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7554 -e 's:$: $lt_compiler_flag:'`
7555 (eval echo "\"\$as_me:7555: $lt_compile\"" >&5)
7556 (eval "$lt_compile" 2>conftest.err)
7557 ac_status=$?
7558 cat conftest.err >&5
7559 echo "$as_me:7559: \$? = $ac_status" >&5
7560 if (exit $ac_status) && test -s "$ac_outfile"; then
7561 # The compiler can only warn and ignore the option if not recognized
7562 # So say no if there are warnings other than the usual output.
7563 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7564 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7565 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7566 lt_cv_prog_compiler_rtti_exceptions=yes
7569 $rm conftest*
7572 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7573 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7575 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7576 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7577 else
7583 lt_prog_compiler_wl=
7584 lt_prog_compiler_pic=
7585 lt_prog_compiler_static=
7587 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7588 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7590 if test "$GCC" = yes; then
7591 lt_prog_compiler_wl='-Wl,'
7592 lt_prog_compiler_static='-static'
7594 case $host_os in
7595 aix*)
7596 # All AIX code is PIC.
7597 if test "$host_cpu" = ia64; then
7598 # AIX 5 now supports IA64 processor
7599 lt_prog_compiler_static='-Bstatic'
7603 amigaos*)
7604 # FIXME: we need at least 68020 code to build shared libraries, but
7605 # adding the `-m68020' flag to GCC prevents building anything better,
7606 # like `-m68040'.
7607 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7610 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7611 # PIC is the default for these OSes.
7614 mingw* | cygwin* | pw32* | os2*)
7615 # This hack is so that the source file can tell whether it is being
7616 # built for inclusion in a dll (and should export symbols for example).
7617 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7618 # (--disable-auto-import) libraries
7619 lt_prog_compiler_pic='-DDLL_EXPORT'
7622 darwin* | rhapsody*)
7623 # PIC is the default on this platform
7624 # Common symbols not allowed in MH_DYLIB files
7625 lt_prog_compiler_pic='-fno-common'
7628 interix[3-9]*)
7629 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7630 # Instead, we relocate shared libraries at runtime.
7633 msdosdjgpp*)
7634 # Just because we use GCC doesn't mean we suddenly get shared libraries
7635 # on systems that don't support them.
7636 lt_prog_compiler_can_build_shared=no
7637 enable_shared=no
7640 sysv4*MP*)
7641 if test -d /usr/nec; then
7642 lt_prog_compiler_pic=-Kconform_pic
7646 hpux*)
7647 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7648 # not for PA HP-UX.
7649 case $host_cpu in
7650 hppa*64*|ia64*)
7651 # +Z the default
7654 lt_prog_compiler_pic='-fPIC'
7656 esac
7660 lt_prog_compiler_pic='-fPIC'
7662 esac
7663 else
7664 # PORTME Check for flag to pass linker flags through the system compiler.
7665 case $host_os in
7666 aix*)
7667 lt_prog_compiler_wl='-Wl,'
7668 if test "$host_cpu" = ia64; then
7669 # AIX 5 now supports IA64 processor
7670 lt_prog_compiler_static='-Bstatic'
7671 else
7672 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7675 darwin*)
7676 # PIC is the default on this platform
7677 # Common symbols not allowed in MH_DYLIB files
7678 case $cc_basename in
7679 xlc*)
7680 lt_prog_compiler_pic='-qnocommon'
7681 lt_prog_compiler_wl='-Wl,'
7683 esac
7686 mingw* | cygwin* | pw32* | os2*)
7687 # This hack is so that the source file can tell whether it is being
7688 # built for inclusion in a dll (and should export symbols for example).
7689 lt_prog_compiler_pic='-DDLL_EXPORT'
7692 hpux9* | hpux10* | hpux11*)
7693 lt_prog_compiler_wl='-Wl,'
7694 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7695 # not for PA HP-UX.
7696 case $host_cpu in
7697 hppa*64*|ia64*)
7698 # +Z the default
7701 lt_prog_compiler_pic='+Z'
7703 esac
7704 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7705 lt_prog_compiler_static='${wl}-a ${wl}archive'
7708 irix5* | irix6* | nonstopux*)
7709 lt_prog_compiler_wl='-Wl,'
7710 # PIC (with -KPIC) is the default.
7711 lt_prog_compiler_static='-non_shared'
7714 newsos6)
7715 lt_prog_compiler_pic='-KPIC'
7716 lt_prog_compiler_static='-Bstatic'
7719 linux* | k*bsd*-gnu)
7720 case $cc_basename in
7721 icc* | ecc*)
7722 lt_prog_compiler_wl='-Wl,'
7723 lt_prog_compiler_pic='-KPIC'
7724 lt_prog_compiler_static='-static'
7726 pgcc* | pgf77* | pgf90* | pgf95*)
7727 # Portland Group compilers (*not* the Pentium gcc compiler,
7728 # which looks to be a dead project)
7729 lt_prog_compiler_wl='-Wl,'
7730 lt_prog_compiler_pic='-fpic'
7731 lt_prog_compiler_static='-Bstatic'
7733 ccc*)
7734 lt_prog_compiler_wl='-Wl,'
7735 # All Alpha code is PIC.
7736 lt_prog_compiler_static='-non_shared'
7739 case `$CC -V 2>&1 | sed 5q` in
7740 *Sun\ C*)
7741 # Sun C 5.9
7742 lt_prog_compiler_pic='-KPIC'
7743 lt_prog_compiler_static='-Bstatic'
7744 lt_prog_compiler_wl='-Wl,'
7746 *Sun\ F*)
7747 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7748 lt_prog_compiler_pic='-KPIC'
7749 lt_prog_compiler_static='-Bstatic'
7750 lt_prog_compiler_wl=''
7752 esac
7754 esac
7757 osf3* | osf4* | osf5*)
7758 lt_prog_compiler_wl='-Wl,'
7759 # All OSF/1 code is PIC.
7760 lt_prog_compiler_static='-non_shared'
7763 rdos*)
7764 lt_prog_compiler_static='-non_shared'
7767 solaris*)
7768 lt_prog_compiler_pic='-KPIC'
7769 lt_prog_compiler_static='-Bstatic'
7770 case $cc_basename in
7771 f77* | f90* | f95*)
7772 lt_prog_compiler_wl='-Qoption ld ';;
7774 lt_prog_compiler_wl='-Wl,';;
7775 esac
7778 sunos4*)
7779 lt_prog_compiler_wl='-Qoption ld '
7780 lt_prog_compiler_pic='-PIC'
7781 lt_prog_compiler_static='-Bstatic'
7784 sysv4 | sysv4.2uw2* | sysv4.3*)
7785 lt_prog_compiler_wl='-Wl,'
7786 lt_prog_compiler_pic='-KPIC'
7787 lt_prog_compiler_static='-Bstatic'
7790 sysv4*MP*)
7791 if test -d /usr/nec ;then
7792 lt_prog_compiler_pic='-Kconform_pic'
7793 lt_prog_compiler_static='-Bstatic'
7797 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7798 lt_prog_compiler_wl='-Wl,'
7799 lt_prog_compiler_pic='-KPIC'
7800 lt_prog_compiler_static='-Bstatic'
7803 unicos*)
7804 lt_prog_compiler_wl='-Wl,'
7805 lt_prog_compiler_can_build_shared=no
7808 uts4*)
7809 lt_prog_compiler_pic='-pic'
7810 lt_prog_compiler_static='-Bstatic'
7814 lt_prog_compiler_can_build_shared=no
7816 esac
7819 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7820 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7823 # Check to make sure the PIC flag actually works.
7825 if test -n "$lt_prog_compiler_pic"; then
7827 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7828 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7829 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7830 echo $ECHO_N "(cached) $ECHO_C" >&6
7831 else
7832 lt_cv_prog_compiler_pic_works=no
7833 ac_outfile=conftest.$ac_objext
7834 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7835 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7836 # Insert the option either (1) after the last *FLAGS variable, or
7837 # (2) before a word containing "conftest.", or (3) at the end.
7838 # Note that $ac_compile itself does not contain backslashes and begins
7839 # with a dollar sign (not a hyphen), so the echo should work correctly.
7840 # The option is referenced via a variable to avoid confusing sed.
7841 lt_compile=`echo "$ac_compile" | $SED \
7842 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7843 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7844 -e 's:$: $lt_compiler_flag:'`
7845 (eval echo "\"\$as_me:7845: $lt_compile\"" >&5)
7846 (eval "$lt_compile" 2>conftest.err)
7847 ac_status=$?
7848 cat conftest.err >&5
7849 echo "$as_me:7849: \$? = $ac_status" >&5
7850 if (exit $ac_status) && test -s "$ac_outfile"; then
7851 # The compiler can only warn and ignore the option if not recognized
7852 # So say no if there are warnings other than the usual output.
7853 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7854 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7855 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7856 lt_cv_prog_compiler_pic_works=yes
7859 $rm conftest*
7862 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7863 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7865 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7866 case $lt_prog_compiler_pic in
7867 "" | " "*) ;;
7868 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7869 esac
7870 else
7871 lt_prog_compiler_pic=
7872 lt_prog_compiler_can_build_shared=no
7876 case $host_os in
7877 # For platforms which do not support PIC, -DPIC is meaningless:
7878 *djgpp*)
7879 lt_prog_compiler_pic=
7882 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7884 esac
7887 # Check to make sure the static flag actually works.
7889 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7890 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7891 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7892 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7893 echo $ECHO_N "(cached) $ECHO_C" >&6
7894 else
7895 lt_cv_prog_compiler_static_works=no
7896 save_LDFLAGS="$LDFLAGS"
7897 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7898 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7899 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7900 # The linker can only warn and ignore the option if not recognized
7901 # So say no if there are warnings
7902 if test -s conftest.err; then
7903 # Append any errors to the config.log.
7904 cat conftest.err 1>&5
7905 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7906 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7907 if diff conftest.exp conftest.er2 >/dev/null; then
7908 lt_cv_prog_compiler_static_works=yes
7910 else
7911 lt_cv_prog_compiler_static_works=yes
7914 $rm -r conftest*
7915 LDFLAGS="$save_LDFLAGS"
7918 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7919 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7921 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7923 else
7924 lt_prog_compiler_static=
7928 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7929 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7930 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7931 echo $ECHO_N "(cached) $ECHO_C" >&6
7932 else
7933 lt_cv_prog_compiler_c_o=no
7934 $rm -r conftest 2>/dev/null
7935 mkdir conftest
7936 cd conftest
7937 mkdir out
7938 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7940 lt_compiler_flag="-o out/conftest2.$ac_objext"
7941 # Insert the option either (1) after the last *FLAGS variable, or
7942 # (2) before a word containing "conftest.", or (3) at the end.
7943 # Note that $ac_compile itself does not contain backslashes and begins
7944 # with a dollar sign (not a hyphen), so the echo should work correctly.
7945 lt_compile=`echo "$ac_compile" | $SED \
7946 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7947 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7948 -e 's:$: $lt_compiler_flag:'`
7949 (eval echo "\"\$as_me:7949: $lt_compile\"" >&5)
7950 (eval "$lt_compile" 2>out/conftest.err)
7951 ac_status=$?
7952 cat out/conftest.err >&5
7953 echo "$as_me:7953: \$? = $ac_status" >&5
7954 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7955 then
7956 # The compiler can only warn and ignore the option if not recognized
7957 # So say no if there are warnings
7958 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7959 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7960 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7961 lt_cv_prog_compiler_c_o=yes
7964 chmod u+w . 2>&5
7965 $rm conftest*
7966 # SGI C++ compiler will create directory out/ii_files/ for
7967 # template instantiation
7968 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7969 $rm out/* && rmdir out
7970 cd ..
7971 rmdir conftest
7972 $rm conftest*
7975 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7976 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7979 hard_links="nottested"
7980 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7981 # do not overwrite the value of need_locks provided by the user
7982 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7983 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7984 hard_links=yes
7985 $rm conftest*
7986 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7987 touch conftest.a
7988 ln conftest.a conftest.b 2>&5 || hard_links=no
7989 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7990 { echo "$as_me:$LINENO: result: $hard_links" >&5
7991 echo "${ECHO_T}$hard_links" >&6; }
7992 if test "$hard_links" = no; then
7993 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7994 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7995 need_locks=warn
7997 else
7998 need_locks=no
8001 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8002 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8004 runpath_var=
8005 allow_undefined_flag=
8006 enable_shared_with_static_runtimes=no
8007 archive_cmds=
8008 archive_expsym_cmds=
8009 old_archive_From_new_cmds=
8010 old_archive_from_expsyms_cmds=
8011 export_dynamic_flag_spec=
8012 whole_archive_flag_spec=
8013 thread_safe_flag_spec=
8014 hardcode_libdir_flag_spec=
8015 hardcode_libdir_flag_spec_ld=
8016 hardcode_libdir_separator=
8017 hardcode_direct=no
8018 hardcode_minus_L=no
8019 hardcode_shlibpath_var=unsupported
8020 link_all_deplibs=unknown
8021 hardcode_automatic=no
8022 module_cmds=
8023 module_expsym_cmds=
8024 always_export_symbols=no
8025 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8026 # include_expsyms should be a list of space-separated symbols to be *always*
8027 # included in the symbol list
8028 include_expsyms=
8029 # exclude_expsyms can be an extended regexp of symbols to exclude
8030 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8031 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8032 # as well as any symbol that contains `d'.
8033 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8034 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8035 # platforms (ab)use it in PIC code, but their linkers get confused if
8036 # the symbol is explicitly referenced. Since portable code cannot
8037 # rely on this symbol name, it's probably fine to never include it in
8038 # preloaded symbol tables.
8039 # Exclude shared library initialization/finalization symbols.
8040 extract_expsyms_cmds=
8041 # Just being paranoid about ensuring that cc_basename is set.
8042 for cc_temp in $compiler""; do
8043 case $cc_temp in
8044 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8045 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8046 \-*) ;;
8047 *) break;;
8048 esac
8049 done
8050 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8052 case $host_os in
8053 cygwin* | mingw* | pw32*)
8054 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8055 # When not using gcc, we currently assume that we are using
8056 # Microsoft Visual C++.
8057 if test "$GCC" != yes; then
8058 with_gnu_ld=no
8061 interix*)
8062 # we just hope/assume this is gcc and not c89 (= MSVC++)
8063 with_gnu_ld=yes
8065 openbsd*)
8066 with_gnu_ld=no
8068 esac
8070 ld_shlibs=yes
8071 if test "$with_gnu_ld" = yes; then
8072 # If archive_cmds runs LD, not CC, wlarc should be empty
8073 wlarc='${wl}'
8075 # Set some defaults for GNU ld with shared library support. These
8076 # are reset later if shared libraries are not supported. Putting them
8077 # here allows them to be overridden if necessary.
8078 runpath_var=LD_RUN_PATH
8079 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8080 export_dynamic_flag_spec='${wl}--export-dynamic'
8081 # ancient GNU ld didn't support --whole-archive et. al.
8082 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8083 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8084 else
8085 whole_archive_flag_spec=
8087 supports_anon_versioning=no
8088 case `$LD -v 2>/dev/null` in
8089 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8090 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8091 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8092 *\ 2.11.*) ;; # other 2.11 versions
8093 *) supports_anon_versioning=yes ;;
8094 esac
8096 # See if GNU ld supports shared libraries.
8097 case $host_os in
8098 aix[3-9]*)
8099 # On AIX/PPC, the GNU linker is very broken
8100 if test "$host_cpu" != ia64; then
8101 ld_shlibs=no
8102 cat <<EOF 1>&2
8104 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8105 *** to be unable to reliably create shared libraries on AIX.
8106 *** Therefore, libtool is disabling shared libraries support. If you
8107 *** really care for shared libraries, you may want to modify your PATH
8108 *** so that a non-GNU linker is found, and then restart.
8114 amigaos*)
8115 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)'
8116 hardcode_libdir_flag_spec='-L$libdir'
8117 hardcode_minus_L=yes
8119 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8120 # that the semantics of dynamic libraries on AmigaOS, at least up
8121 # to version 4, is to share data among multiple programs linked
8122 # with the same dynamic library. Since this doesn't match the
8123 # behavior of shared libraries on other platforms, we can't use
8124 # them.
8125 ld_shlibs=no
8128 beos*)
8129 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8130 allow_undefined_flag=unsupported
8131 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8132 # support --undefined. This deserves some investigation. FIXME
8133 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8134 else
8135 ld_shlibs=no
8139 cygwin* | mingw* | pw32*)
8140 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8141 # as there is no search path for DLLs.
8142 hardcode_libdir_flag_spec='-L$libdir'
8143 allow_undefined_flag=unsupported
8144 always_export_symbols=no
8145 enable_shared_with_static_runtimes=yes
8146 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8148 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8149 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8150 # If the export-symbols file already is a .def file (1st line
8151 # is EXPORTS), use it as is; otherwise, prepend...
8152 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8153 cp $export_symbols $output_objdir/$soname.def;
8154 else
8155 echo EXPORTS > $output_objdir/$soname.def;
8156 cat $export_symbols >> $output_objdir/$soname.def;
8158 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8159 else
8160 ld_shlibs=no
8164 interix[3-9]*)
8165 hardcode_direct=no
8166 hardcode_shlibpath_var=no
8167 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8168 export_dynamic_flag_spec='${wl}-E'
8169 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8170 # Instead, shared libraries are loaded at an image base (0x10000000 by
8171 # default) and relocated if they conflict, which is a slow very memory
8172 # consuming and fragmenting process. To avoid this, we pick a random,
8173 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8174 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8175 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8176 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'
8179 gnu* | linux* | k*bsd*-gnu)
8180 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8181 tmp_addflag=
8182 case $cc_basename,$host_cpu in
8183 pgcc*) # Portland Group C compiler
8184 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'
8185 tmp_addflag=' $pic_flag'
8187 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8188 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'
8189 tmp_addflag=' $pic_flag -Mnomain' ;;
8190 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8191 tmp_addflag=' -i_dynamic' ;;
8192 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8193 tmp_addflag=' -i_dynamic -nofor_main' ;;
8194 ifc* | ifort*) # Intel Fortran compiler
8195 tmp_addflag=' -nofor_main' ;;
8196 esac
8197 case `$CC -V 2>&1 | sed 5q` in
8198 *Sun\ C*) # Sun C 5.9
8199 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'
8200 tmp_sharedflag='-G' ;;
8201 *Sun\ F*) # Sun Fortran 8.3
8202 tmp_sharedflag='-G' ;;
8204 tmp_sharedflag='-shared' ;;
8205 esac
8206 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8208 if test $supports_anon_versioning = yes; then
8209 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8210 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8211 $echo "local: *; };" >> $output_objdir/$libname.ver~
8212 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8214 else
8215 ld_shlibs=no
8219 netbsd*)
8220 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8221 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8222 wlarc=
8223 else
8224 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8225 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8229 solaris*)
8230 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8231 ld_shlibs=no
8232 cat <<EOF 1>&2
8234 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8235 *** create shared libraries on Solaris systems. Therefore, libtool
8236 *** is disabling shared libraries support. We urge you to upgrade GNU
8237 *** binutils to release 2.9.1 or newer. Another option is to modify
8238 *** your PATH or compiler configuration so that the native linker is
8239 *** used, and then restart.
8242 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8243 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8244 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8245 else
8246 ld_shlibs=no
8250 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8251 case `$LD -v 2>&1` in
8252 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8253 ld_shlibs=no
8254 cat <<_LT_EOF 1>&2
8256 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8257 *** reliably create shared libraries on SCO systems. Therefore, libtool
8258 *** is disabling shared libraries support. We urge you to upgrade GNU
8259 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8260 *** your PATH or compiler configuration so that the native linker is
8261 *** used, and then restart.
8263 _LT_EOF
8266 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8267 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8268 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8269 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8270 else
8271 ld_shlibs=no
8274 esac
8277 sunos4*)
8278 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8279 wlarc=
8280 hardcode_direct=yes
8281 hardcode_shlibpath_var=no
8285 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8286 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8287 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8288 else
8289 ld_shlibs=no
8292 esac
8294 if test "$ld_shlibs" = no; then
8295 runpath_var=
8296 hardcode_libdir_flag_spec=
8297 export_dynamic_flag_spec=
8298 whole_archive_flag_spec=
8300 else
8301 # PORTME fill in a description of your system's linker (not GNU ld)
8302 case $host_os in
8303 aix3*)
8304 allow_undefined_flag=unsupported
8305 always_export_symbols=yes
8306 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'
8307 # Note: this linker hardcodes the directories in LIBPATH if there
8308 # are no directories specified by -L.
8309 hardcode_minus_L=yes
8310 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8311 # Neither direct hardcoding nor static linking is supported with a
8312 # broken collect2.
8313 hardcode_direct=unsupported
8317 aix[4-9]*)
8318 if test "$host_cpu" = ia64; then
8319 # On IA64, the linker does run time linking by default, so we don't
8320 # have to do anything special.
8321 aix_use_runtimelinking=no
8322 exp_sym_flag='-Bexport'
8323 no_entry_flag=""
8324 else
8325 # If we're using GNU nm, then we don't want the "-C" option.
8326 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8327 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8328 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'
8329 else
8330 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'
8332 aix_use_runtimelinking=no
8334 # Test if we are trying to use run time linking or normal
8335 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8336 # need to do runtime linking.
8337 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8338 for ld_flag in $LDFLAGS; do
8339 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8340 aix_use_runtimelinking=yes
8341 break
8343 done
8345 esac
8347 exp_sym_flag='-bexport'
8348 no_entry_flag='-bnoentry'
8351 # When large executables or shared objects are built, AIX ld can
8352 # have problems creating the table of contents. If linking a library
8353 # or program results in "error TOC overflow" add -mminimal-toc to
8354 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8355 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8357 archive_cmds=''
8358 hardcode_direct=yes
8359 hardcode_libdir_separator=':'
8360 link_all_deplibs=yes
8362 if test "$GCC" = yes; then
8363 case $host_os in aix4.[012]|aix4.[012].*)
8364 # We only want to do this on AIX 4.2 and lower, the check
8365 # below for broken collect2 doesn't work under 4.3+
8366 collect2name=`${CC} -print-prog-name=collect2`
8367 if test -f "$collect2name" && \
8368 strings "$collect2name" | grep resolve_lib_name >/dev/null
8369 then
8370 # We have reworked collect2
8372 else
8373 # We have old collect2
8374 hardcode_direct=unsupported
8375 # It fails to find uninstalled libraries when the uninstalled
8376 # path is not listed in the libpath. Setting hardcode_minus_L
8377 # to unsupported forces relinking
8378 hardcode_minus_L=yes
8379 hardcode_libdir_flag_spec='-L$libdir'
8380 hardcode_libdir_separator=
8383 esac
8384 shared_flag='-shared'
8385 if test "$aix_use_runtimelinking" = yes; then
8386 shared_flag="$shared_flag "'${wl}-G'
8388 else
8389 # not using gcc
8390 if test "$host_cpu" = ia64; then
8391 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8392 # chokes on -Wl,-G. The following line is correct:
8393 shared_flag='-G'
8394 else
8395 if test "$aix_use_runtimelinking" = yes; then
8396 shared_flag='${wl}-G'
8397 else
8398 shared_flag='${wl}-bM:SRE'
8403 # It seems that -bexpall does not export symbols beginning with
8404 # underscore (_), so it is better to generate a list of symbols to export.
8405 always_export_symbols=yes
8406 if test "$aix_use_runtimelinking" = yes; then
8407 # Warning - without using the other runtime loading flags (-brtl),
8408 # -berok will link without error, but may produce a broken library.
8409 allow_undefined_flag='-berok'
8410 # Determine the default libpath from the value encoded in an empty executable.
8411 cat >conftest.$ac_ext <<_ACEOF
8412 /* confdefs.h. */
8413 _ACEOF
8414 cat confdefs.h >>conftest.$ac_ext
8415 cat >>conftest.$ac_ext <<_ACEOF
8416 /* end confdefs.h. */
8419 main ()
8423 return 0;
8425 _ACEOF
8426 rm -f conftest.$ac_objext conftest$ac_exeext
8427 if { (ac_try="$ac_link"
8428 case "(($ac_try" in
8429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8430 *) ac_try_echo=$ac_try;;
8431 esac
8432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8433 (eval "$ac_link") 2>conftest.er1
8434 ac_status=$?
8435 grep -v '^ *+' conftest.er1 >conftest.err
8436 rm -f conftest.er1
8437 cat conftest.err >&5
8438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8439 (exit $ac_status); } && {
8440 test -z "$ac_c_werror_flag" ||
8441 test ! -s conftest.err
8442 } && test -s conftest$ac_exeext &&
8443 $as_test_x conftest$ac_exeext; then
8445 lt_aix_libpath_sed='
8446 /Import File Strings/,/^$/ {
8447 /^0/ {
8448 s/^0 *\(.*\)$/\1/
8452 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8453 # Check for a 64-bit object if we didn't find anything.
8454 if test -z "$aix_libpath"; then
8455 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8457 else
8458 echo "$as_me: failed program was:" >&5
8459 sed 's/^/| /' conftest.$ac_ext >&5
8464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8465 conftest$ac_exeext conftest.$ac_ext
8466 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8468 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8469 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8470 else
8471 if test "$host_cpu" = ia64; then
8472 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8473 allow_undefined_flag="-z nodefs"
8474 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"
8475 else
8476 # Determine the default libpath from the value encoded in an empty executable.
8477 cat >conftest.$ac_ext <<_ACEOF
8478 /* confdefs.h. */
8479 _ACEOF
8480 cat confdefs.h >>conftest.$ac_ext
8481 cat >>conftest.$ac_ext <<_ACEOF
8482 /* end confdefs.h. */
8485 main ()
8489 return 0;
8491 _ACEOF
8492 rm -f conftest.$ac_objext conftest$ac_exeext
8493 if { (ac_try="$ac_link"
8494 case "(($ac_try" in
8495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8496 *) ac_try_echo=$ac_try;;
8497 esac
8498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8499 (eval "$ac_link") 2>conftest.er1
8500 ac_status=$?
8501 grep -v '^ *+' conftest.er1 >conftest.err
8502 rm -f conftest.er1
8503 cat conftest.err >&5
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 (exit $ac_status); } && {
8506 test -z "$ac_c_werror_flag" ||
8507 test ! -s conftest.err
8508 } && test -s conftest$ac_exeext &&
8509 $as_test_x conftest$ac_exeext; then
8511 lt_aix_libpath_sed='
8512 /Import File Strings/,/^$/ {
8513 /^0/ {
8514 s/^0 *\(.*\)$/\1/
8518 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8519 # Check for a 64-bit object if we didn't find anything.
8520 if test -z "$aix_libpath"; then
8521 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8523 else
8524 echo "$as_me: failed program was:" >&5
8525 sed 's/^/| /' conftest.$ac_ext >&5
8530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8531 conftest$ac_exeext conftest.$ac_ext
8532 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8534 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8535 # Warning - without using the other run time loading flags,
8536 # -berok will link without error, but may produce a broken library.
8537 no_undefined_flag=' ${wl}-bernotok'
8538 allow_undefined_flag=' ${wl}-berok'
8539 # Exported symbols can be pulled into shared objects from archives
8540 whole_archive_flag_spec='$convenience'
8541 archive_cmds_need_lc=yes
8542 # This is similar to how AIX traditionally builds its shared libraries.
8543 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'
8548 amigaos*)
8549 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)'
8550 hardcode_libdir_flag_spec='-L$libdir'
8551 hardcode_minus_L=yes
8552 # see comment about different semantics on the GNU ld section
8553 ld_shlibs=no
8556 bsdi[45]*)
8557 export_dynamic_flag_spec=-rdynamic
8560 cygwin* | mingw* | pw32*)
8561 # When not using gcc, we currently assume that we are using
8562 # Microsoft Visual C++.
8563 # hardcode_libdir_flag_spec is actually meaningless, as there is
8564 # no search path for DLLs.
8565 hardcode_libdir_flag_spec=' '
8566 allow_undefined_flag=unsupported
8567 # Tell ltmain to make .lib files, not .a files.
8568 libext=lib
8569 # Tell ltmain to make .dll files, not .so files.
8570 shrext_cmds=".dll"
8571 # FIXME: Setting linknames here is a bad hack.
8572 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8573 # The linker will automatically build a .lib file if we build a DLL.
8574 old_archive_From_new_cmds='true'
8575 # FIXME: Should let the user specify the lib program.
8576 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8577 fix_srcfile_path='`cygpath -w "$srcfile"`'
8578 enable_shared_with_static_runtimes=yes
8581 darwin* | rhapsody*)
8582 case $host_os in
8583 rhapsody* | darwin1.[012])
8584 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8586 *) # Darwin 1.3 on
8587 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8588 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8589 else
8590 case ${MACOSX_DEPLOYMENT_TARGET} in
8591 10.[012])
8592 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8594 10.*)
8595 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8597 esac
8600 esac
8601 archive_cmds_need_lc=no
8602 hardcode_direct=no
8603 hardcode_automatic=yes
8604 hardcode_shlibpath_var=unsupported
8605 whole_archive_flag_spec=''
8606 link_all_deplibs=yes
8607 if test "$GCC" = yes ; then
8608 output_verbose_link_cmd='echo'
8609 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8610 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8611 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}"
8612 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}"
8613 else
8614 case $cc_basename in
8615 xlc*)
8616 output_verbose_link_cmd='echo'
8617 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8618 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8619 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8620 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8621 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8624 ld_shlibs=no
8626 esac
8630 dgux*)
8631 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8632 hardcode_libdir_flag_spec='-L$libdir'
8633 hardcode_shlibpath_var=no
8636 freebsd1*)
8637 ld_shlibs=no
8640 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8641 # support. Future versions do this automatically, but an explicit c++rt0.o
8642 # does not break anything, and helps significantly (at the cost of a little
8643 # extra space).
8644 freebsd2.2*)
8645 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8646 hardcode_libdir_flag_spec='-R$libdir'
8647 hardcode_direct=yes
8648 hardcode_shlibpath_var=no
8651 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8652 freebsd2*)
8653 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8654 hardcode_direct=yes
8655 hardcode_minus_L=yes
8656 hardcode_shlibpath_var=no
8659 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8660 freebsd* | dragonfly*)
8661 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8662 hardcode_libdir_flag_spec='-R$libdir'
8663 hardcode_direct=yes
8664 hardcode_shlibpath_var=no
8667 hpux9*)
8668 if test "$GCC" = yes; then
8669 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'
8670 else
8671 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'
8673 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8674 hardcode_libdir_separator=:
8675 hardcode_direct=yes
8677 # hardcode_minus_L: Not really in the search PATH,
8678 # but as the default location of the library.
8679 hardcode_minus_L=yes
8680 export_dynamic_flag_spec='${wl}-E'
8683 hpux10*)
8684 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8685 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8686 else
8687 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8689 if test "$with_gnu_ld" = no; then
8690 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8691 hardcode_libdir_separator=:
8693 hardcode_direct=yes
8694 export_dynamic_flag_spec='${wl}-E'
8696 # hardcode_minus_L: Not really in the search PATH,
8697 # but as the default location of the library.
8698 hardcode_minus_L=yes
8702 hpux11*)
8703 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8704 case $host_cpu in
8705 hppa*64*)
8706 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8708 ia64*)
8709 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8712 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8714 esac
8715 else
8716 case $host_cpu in
8717 hppa*64*)
8718 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8720 ia64*)
8721 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8724 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8726 esac
8728 if test "$with_gnu_ld" = no; then
8729 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8730 hardcode_libdir_separator=:
8732 case $host_cpu in
8733 hppa*64*|ia64*)
8734 hardcode_libdir_flag_spec_ld='+b $libdir'
8735 hardcode_direct=no
8736 hardcode_shlibpath_var=no
8739 hardcode_direct=yes
8740 export_dynamic_flag_spec='${wl}-E'
8742 # hardcode_minus_L: Not really in the search PATH,
8743 # but as the default location of the library.
8744 hardcode_minus_L=yes
8746 esac
8750 irix5* | irix6* | nonstopux*)
8751 if test "$GCC" = yes; then
8752 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8753 else
8754 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8755 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8757 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8758 hardcode_libdir_separator=:
8759 link_all_deplibs=yes
8762 netbsd*)
8763 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8764 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8765 else
8766 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8768 hardcode_libdir_flag_spec='-R$libdir'
8769 hardcode_direct=yes
8770 hardcode_shlibpath_var=no
8773 newsos6)
8774 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8775 hardcode_direct=yes
8776 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8777 hardcode_libdir_separator=:
8778 hardcode_shlibpath_var=no
8781 openbsd*)
8782 if test -f /usr/libexec/ld.so; then
8783 hardcode_direct=yes
8784 hardcode_shlibpath_var=no
8785 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8786 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8787 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8788 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8789 export_dynamic_flag_spec='${wl}-E'
8790 else
8791 case $host_os in
8792 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8793 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8794 hardcode_libdir_flag_spec='-R$libdir'
8797 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8798 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8800 esac
8802 else
8803 ld_shlibs=no
8807 os2*)
8808 hardcode_libdir_flag_spec='-L$libdir'
8809 hardcode_minus_L=yes
8810 allow_undefined_flag=unsupported
8811 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'
8812 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8815 osf3*)
8816 if test "$GCC" = yes; then
8817 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8818 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8819 else
8820 allow_undefined_flag=' -expect_unresolved \*'
8821 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8823 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8824 hardcode_libdir_separator=:
8827 osf4* | osf5*) # as osf3* with the addition of -msym flag
8828 if test "$GCC" = yes; then
8829 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8830 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8831 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8832 else
8833 allow_undefined_flag=' -expect_unresolved \*'
8834 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8835 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8836 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8838 # Both c and cxx compiler support -rpath directly
8839 hardcode_libdir_flag_spec='-rpath $libdir'
8841 hardcode_libdir_separator=:
8844 solaris*)
8845 no_undefined_flag=' -z text'
8846 if test "$GCC" = yes; then
8847 wlarc='${wl}'
8848 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8849 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8850 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8851 else
8852 wlarc=''
8853 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8854 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8855 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8857 hardcode_libdir_flag_spec='-R$libdir'
8858 hardcode_shlibpath_var=no
8859 case $host_os in
8860 solaris2.[0-5] | solaris2.[0-5].*) ;;
8862 # The compiler driver will combine and reorder linker options,
8863 # but understands `-z linker_flag'. GCC discards it without `$wl',
8864 # but is careful enough not to reorder.
8865 # Supported since Solaris 2.6 (maybe 2.5.1?)
8866 if test "$GCC" = yes; then
8867 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8868 else
8869 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8872 esac
8873 link_all_deplibs=yes
8876 sunos4*)
8877 if test "x$host_vendor" = xsequent; then
8878 # Use $CC to link under sequent, because it throws in some extra .o
8879 # files that make .init and .fini sections work.
8880 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8881 else
8882 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8884 hardcode_libdir_flag_spec='-L$libdir'
8885 hardcode_direct=yes
8886 hardcode_minus_L=yes
8887 hardcode_shlibpath_var=no
8890 sysv4)
8891 case $host_vendor in
8892 sni)
8893 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8894 hardcode_direct=yes # is this really true???
8896 siemens)
8897 ## LD is ld it makes a PLAMLIB
8898 ## CC just makes a GrossModule.
8899 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8900 reload_cmds='$CC -r -o $output$reload_objs'
8901 hardcode_direct=no
8903 motorola)
8904 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8905 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8907 esac
8908 runpath_var='LD_RUN_PATH'
8909 hardcode_shlibpath_var=no
8912 sysv4.3*)
8913 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8914 hardcode_shlibpath_var=no
8915 export_dynamic_flag_spec='-Bexport'
8918 sysv4*MP*)
8919 if test -d /usr/nec; then
8920 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8921 hardcode_shlibpath_var=no
8922 runpath_var=LD_RUN_PATH
8923 hardcode_runpath_var=yes
8924 ld_shlibs=yes
8928 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8929 no_undefined_flag='${wl}-z,text'
8930 archive_cmds_need_lc=no
8931 hardcode_shlibpath_var=no
8932 runpath_var='LD_RUN_PATH'
8934 if test "$GCC" = yes; then
8935 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8936 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8937 else
8938 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8939 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8943 sysv5* | sco3.2v5* | sco5v6*)
8944 # Note: We can NOT use -z defs as we might desire, because we do not
8945 # link with -lc, and that would cause any symbols used from libc to
8946 # always be unresolved, which means just about no library would
8947 # ever link correctly. If we're not using GNU ld we use -z text
8948 # though, which does catch some bad symbols but isn't as heavy-handed
8949 # as -z defs.
8950 no_undefined_flag='${wl}-z,text'
8951 allow_undefined_flag='${wl}-z,nodefs'
8952 archive_cmds_need_lc=no
8953 hardcode_shlibpath_var=no
8954 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8955 hardcode_libdir_separator=':'
8956 link_all_deplibs=yes
8957 export_dynamic_flag_spec='${wl}-Bexport'
8958 runpath_var='LD_RUN_PATH'
8960 if test "$GCC" = yes; then
8961 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8962 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8963 else
8964 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8965 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8969 uts4*)
8970 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8971 hardcode_libdir_flag_spec='-L$libdir'
8972 hardcode_shlibpath_var=no
8976 ld_shlibs=no
8978 esac
8981 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8982 echo "${ECHO_T}$ld_shlibs" >&6; }
8983 test "$ld_shlibs" = no && can_build_shared=no
8986 # Do we need to explicitly link libc?
8988 case "x$archive_cmds_need_lc" in
8989 x|xyes)
8990 # Assume -lc should be added
8991 archive_cmds_need_lc=yes
8993 if test "$enable_shared" = yes && test "$GCC" = yes; then
8994 case $archive_cmds in
8995 *'~'*)
8996 # FIXME: we may have to deal with multi-command sequences.
8998 '$CC '*)
8999 # Test whether the compiler implicitly links with -lc since on some
9000 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9001 # to ld, don't add -lc before -lgcc.
9002 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9003 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9004 $rm conftest*
9005 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9008 (eval $ac_compile) 2>&5
9009 ac_status=$?
9010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011 (exit $ac_status); } 2>conftest.err; then
9012 soname=conftest
9013 lib=conftest
9014 libobjs=conftest.$ac_objext
9015 deplibs=
9016 wl=$lt_prog_compiler_wl
9017 pic_flag=$lt_prog_compiler_pic
9018 compiler_flags=-v
9019 linker_flags=-v
9020 verstring=
9021 output_objdir=.
9022 libname=conftest
9023 lt_save_allow_undefined_flag=$allow_undefined_flag
9024 allow_undefined_flag=
9025 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9026 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9027 ac_status=$?
9028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029 (exit $ac_status); }
9030 then
9031 archive_cmds_need_lc=no
9032 else
9033 archive_cmds_need_lc=yes
9035 allow_undefined_flag=$lt_save_allow_undefined_flag
9036 else
9037 cat conftest.err 1>&5
9039 $rm conftest*
9040 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9041 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9043 esac
9046 esac
9048 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9049 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9050 library_names_spec=
9051 libname_spec='lib$name'
9052 soname_spec=
9053 shrext_cmds=".so"
9054 postinstall_cmds=
9055 postuninstall_cmds=
9056 finish_cmds=
9057 finish_eval=
9058 shlibpath_var=
9059 shlibpath_overrides_runpath=unknown
9060 version_type=none
9061 dynamic_linker="$host_os ld.so"
9062 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9064 if test "$GCC" = yes; then
9065 case $host_os in
9066 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9067 *) lt_awk_arg="/^libraries:/" ;;
9068 esac
9069 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9070 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9071 # if the path contains ";" then we assume it to be the separator
9072 # otherwise default to the standard path separator (i.e. ":") - it is
9073 # assumed that no part of a normal pathname contains ";" but that should
9074 # okay in the real world where ";" in dirpaths is itself problematic.
9075 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9076 else
9077 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9079 # Ok, now we have the path, separated by spaces, we can step through it
9080 # and add multilib dir if necessary.
9081 lt_tmp_lt_search_path_spec=
9082 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9083 for lt_sys_path in $lt_search_path_spec; do
9084 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9085 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9086 else
9087 test -d "$lt_sys_path" && \
9088 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9090 done
9091 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9092 BEGIN {RS=" "; FS="/|\n";} {
9093 lt_foo="";
9094 lt_count=0;
9095 for (lt_i = NF; lt_i > 0; lt_i--) {
9096 if ($lt_i != "" && $lt_i != ".") {
9097 if ($lt_i == "..") {
9098 lt_count++;
9099 } else {
9100 if (lt_count == 0) {
9101 lt_foo="/" $lt_i lt_foo;
9102 } else {
9103 lt_count--;
9108 if (lt_foo != "") { lt_freq[lt_foo]++; }
9109 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9111 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9112 else
9113 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9115 need_lib_prefix=unknown
9116 hardcode_into_libs=no
9118 # when you set need_version to no, make sure it does not cause -set_version
9119 # flags to be left without arguments
9120 need_version=unknown
9122 case $host_os in
9123 aix3*)
9124 version_type=linux
9125 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9126 shlibpath_var=LIBPATH
9128 # AIX 3 has no versioning support, so we append a major version to the name.
9129 soname_spec='${libname}${release}${shared_ext}$major'
9132 aix[4-9]*)
9133 version_type=linux
9134 need_lib_prefix=no
9135 need_version=no
9136 hardcode_into_libs=yes
9137 if test "$host_cpu" = ia64; then
9138 # AIX 5 supports IA64
9139 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9140 shlibpath_var=LD_LIBRARY_PATH
9141 else
9142 # With GCC up to 2.95.x, collect2 would create an import file
9143 # for dependence libraries. The import file would start with
9144 # the line `#! .'. This would cause the generated library to
9145 # depend on `.', always an invalid library. This was fixed in
9146 # development snapshots of GCC prior to 3.0.
9147 case $host_os in
9148 aix4 | aix4.[01] | aix4.[01].*)
9149 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9150 echo ' yes '
9151 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9153 else
9154 can_build_shared=no
9157 esac
9158 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9159 # soname into executable. Probably we can add versioning support to
9160 # collect2, so additional links can be useful in future.
9161 if test "$aix_use_runtimelinking" = yes; then
9162 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9163 # instead of lib<name>.a to let people know that these are not
9164 # typical AIX shared libraries.
9165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9166 else
9167 # We preserve .a as extension for shared libraries through AIX4.2
9168 # and later when we are not doing run time linking.
9169 library_names_spec='${libname}${release}.a $libname.a'
9170 soname_spec='${libname}${release}${shared_ext}$major'
9172 shlibpath_var=LIBPATH
9176 amigaos*)
9177 library_names_spec='$libname.ixlibrary $libname.a'
9178 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9179 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'
9182 beos*)
9183 library_names_spec='${libname}${shared_ext}'
9184 dynamic_linker="$host_os ld.so"
9185 shlibpath_var=LIBRARY_PATH
9188 bsdi[45]*)
9189 version_type=linux
9190 need_version=no
9191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9192 soname_spec='${libname}${release}${shared_ext}$major'
9193 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9194 shlibpath_var=LD_LIBRARY_PATH
9195 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9196 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9197 # the default ld.so.conf also contains /usr/contrib/lib and
9198 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9199 # libtool to hard-code these into programs
9202 cygwin* | mingw* | pw32*)
9203 version_type=windows
9204 shrext_cmds=".dll"
9205 need_version=no
9206 need_lib_prefix=no
9208 case $GCC,$host_os in
9209 yes,cygwin* | yes,mingw* | yes,pw32*)
9210 library_names_spec='$libname.dll.a'
9211 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9212 postinstall_cmds='base_file=`basename \${file}`~
9213 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9214 dldir=$destdir/`dirname \$dlpath`~
9215 test -d \$dldir || mkdir -p \$dldir~
9216 $install_prog $dir/$dlname \$dldir/$dlname~
9217 chmod a+x \$dldir/$dlname'
9218 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9219 dlpath=$dir/\$dldll~
9220 $rm \$dlpath'
9221 shlibpath_overrides_runpath=yes
9223 case $host_os in
9224 cygwin*)
9225 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9226 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9227 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9229 mingw*)
9230 # MinGW DLLs use traditional 'lib' prefix
9231 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9232 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9233 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9234 # It is most probably a Windows format PATH printed by
9235 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9236 # path with ; separators, and with drive letters. We can handle the
9237 # drive letters (cygwin fileutils understands them), so leave them,
9238 # especially as we might pass files found there to a mingw objdump,
9239 # which wouldn't understand a cygwinified path. Ahh.
9240 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9241 else
9242 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9245 pw32*)
9246 # pw32 DLLs use 'pw' prefix rather than 'lib'
9247 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9249 esac
9253 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9255 esac
9256 dynamic_linker='Win32 ld.exe'
9257 # FIXME: first we should search . and the directory the executable is in
9258 shlibpath_var=PATH
9261 darwin* | rhapsody*)
9262 dynamic_linker="$host_os dyld"
9263 version_type=darwin
9264 need_lib_prefix=no
9265 need_version=no
9266 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9267 soname_spec='${libname}${release}${major}$shared_ext'
9268 shlibpath_overrides_runpath=yes
9269 shlibpath_var=DYLD_LIBRARY_PATH
9270 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9272 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9273 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9276 dgux*)
9277 version_type=linux
9278 need_lib_prefix=no
9279 need_version=no
9280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9281 soname_spec='${libname}${release}${shared_ext}$major'
9282 shlibpath_var=LD_LIBRARY_PATH
9285 freebsd1*)
9286 dynamic_linker=no
9289 freebsd* | dragonfly*)
9290 # DragonFly does not have aout. When/if they implement a new
9291 # versioning mechanism, adjust this.
9292 if test -x /usr/bin/objformat; then
9293 objformat=`/usr/bin/objformat`
9294 else
9295 case $host_os in
9296 freebsd[123]*) objformat=aout ;;
9297 *) objformat=elf ;;
9298 esac
9300 version_type=freebsd-$objformat
9301 case $version_type in
9302 freebsd-elf*)
9303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9304 need_version=no
9305 need_lib_prefix=no
9307 freebsd-*)
9308 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9309 need_version=yes
9311 esac
9312 shlibpath_var=LD_LIBRARY_PATH
9313 case $host_os in
9314 freebsd2*)
9315 shlibpath_overrides_runpath=yes
9317 freebsd3.[01]* | freebsdelf3.[01]*)
9318 shlibpath_overrides_runpath=yes
9319 hardcode_into_libs=yes
9321 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9322 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9323 shlibpath_overrides_runpath=no
9324 hardcode_into_libs=yes
9326 *) # from 4.6 on, and DragonFly
9327 shlibpath_overrides_runpath=yes
9328 hardcode_into_libs=yes
9330 esac
9333 gnu*)
9334 version_type=linux
9335 need_lib_prefix=no
9336 need_version=no
9337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9338 soname_spec='${libname}${release}${shared_ext}$major'
9339 shlibpath_var=LD_LIBRARY_PATH
9340 hardcode_into_libs=yes
9343 hpux9* | hpux10* | hpux11*)
9344 # Give a soname corresponding to the major version so that dld.sl refuses to
9345 # link against other versions.
9346 version_type=sunos
9347 need_lib_prefix=no
9348 need_version=no
9349 case $host_cpu in
9350 ia64*)
9351 shrext_cmds='.so'
9352 hardcode_into_libs=yes
9353 dynamic_linker="$host_os dld.so"
9354 shlibpath_var=LD_LIBRARY_PATH
9355 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9357 soname_spec='${libname}${release}${shared_ext}$major'
9358 if test "X$HPUX_IA64_MODE" = X32; then
9359 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9360 else
9361 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9363 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9365 hppa*64*)
9366 shrext_cmds='.sl'
9367 hardcode_into_libs=yes
9368 dynamic_linker="$host_os dld.sl"
9369 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9370 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9372 soname_spec='${libname}${release}${shared_ext}$major'
9373 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9374 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9377 shrext_cmds='.sl'
9378 dynamic_linker="$host_os dld.sl"
9379 shlibpath_var=SHLIB_PATH
9380 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9382 soname_spec='${libname}${release}${shared_ext}$major'
9384 esac
9385 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9386 postinstall_cmds='chmod 555 $lib'
9389 interix[3-9]*)
9390 version_type=linux
9391 need_lib_prefix=no
9392 need_version=no
9393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9394 soname_spec='${libname}${release}${shared_ext}$major'
9395 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9396 shlibpath_var=LD_LIBRARY_PATH
9397 shlibpath_overrides_runpath=no
9398 hardcode_into_libs=yes
9401 irix5* | irix6* | nonstopux*)
9402 case $host_os in
9403 nonstopux*) version_type=nonstopux ;;
9405 if test "$lt_cv_prog_gnu_ld" = yes; then
9406 version_type=linux
9407 else
9408 version_type=irix
9409 fi ;;
9410 esac
9411 need_lib_prefix=no
9412 need_version=no
9413 soname_spec='${libname}${release}${shared_ext}$major'
9414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9415 case $host_os in
9416 irix5* | nonstopux*)
9417 libsuff= shlibsuff=
9420 case $LD in # libtool.m4 will add one of these switches to LD
9421 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9422 libsuff= shlibsuff= libmagic=32-bit;;
9423 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9424 libsuff=32 shlibsuff=N32 libmagic=N32;;
9425 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9426 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9427 *) libsuff= shlibsuff= libmagic=never-match;;
9428 esac
9430 esac
9431 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9432 shlibpath_overrides_runpath=no
9433 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9434 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9435 hardcode_into_libs=yes
9438 # No shared lib support for Linux oldld, aout, or coff.
9439 linux*oldld* | linux*aout* | linux*coff*)
9440 dynamic_linker=no
9443 # This must be Linux ELF.
9444 linux* | k*bsd*-gnu)
9445 version_type=linux
9446 need_lib_prefix=no
9447 need_version=no
9448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9449 soname_spec='${libname}${release}${shared_ext}$major'
9450 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9451 shlibpath_var=LD_LIBRARY_PATH
9452 shlibpath_overrides_runpath=no
9453 # This implies no fast_install, which is unacceptable.
9454 # Some rework will be needed to allow for fast_install
9455 # before this can be enabled.
9456 hardcode_into_libs=yes
9458 # Append ld.so.conf contents to the search path
9459 if test -f /etc/ld.so.conf; then
9460 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' ' '`
9461 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9464 # We used to test for /lib/ld.so.1 and disable shared libraries on
9465 # powerpc, because MkLinux only supported shared libraries with the
9466 # GNU dynamic linker. Since this was broken with cross compilers,
9467 # most powerpc-linux boxes support dynamic linking these days and
9468 # people can always --disable-shared, the test was removed, and we
9469 # assume the GNU/Linux dynamic linker is in use.
9470 dynamic_linker='GNU/Linux ld.so'
9473 netbsd*)
9474 version_type=sunos
9475 need_lib_prefix=no
9476 need_version=no
9477 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9479 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9480 dynamic_linker='NetBSD (a.out) ld.so'
9481 else
9482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9483 soname_spec='${libname}${release}${shared_ext}$major'
9484 dynamic_linker='NetBSD ld.elf_so'
9486 shlibpath_var=LD_LIBRARY_PATH
9487 shlibpath_overrides_runpath=yes
9488 hardcode_into_libs=yes
9491 newsos6)
9492 version_type=linux
9493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9494 shlibpath_var=LD_LIBRARY_PATH
9495 shlibpath_overrides_runpath=yes
9498 nto-qnx*)
9499 version_type=linux
9500 need_lib_prefix=no
9501 need_version=no
9502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9503 soname_spec='${libname}${release}${shared_ext}$major'
9504 shlibpath_var=LD_LIBRARY_PATH
9505 shlibpath_overrides_runpath=yes
9508 openbsd*)
9509 version_type=sunos
9510 sys_lib_dlsearch_path_spec="/usr/lib"
9511 need_lib_prefix=no
9512 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9513 case $host_os in
9514 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9515 *) need_version=no ;;
9516 esac
9517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9518 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9519 shlibpath_var=LD_LIBRARY_PATH
9520 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9521 case $host_os in
9522 openbsd2.[89] | openbsd2.[89].*)
9523 shlibpath_overrides_runpath=no
9526 shlibpath_overrides_runpath=yes
9528 esac
9529 else
9530 shlibpath_overrides_runpath=yes
9534 os2*)
9535 libname_spec='$name'
9536 shrext_cmds=".dll"
9537 need_lib_prefix=no
9538 library_names_spec='$libname${shared_ext} $libname.a'
9539 dynamic_linker='OS/2 ld.exe'
9540 shlibpath_var=LIBPATH
9543 osf3* | osf4* | osf5*)
9544 version_type=osf
9545 need_lib_prefix=no
9546 need_version=no
9547 soname_spec='${libname}${release}${shared_ext}$major'
9548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9549 shlibpath_var=LD_LIBRARY_PATH
9550 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9551 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9554 rdos*)
9555 dynamic_linker=no
9558 solaris*)
9559 version_type=linux
9560 need_lib_prefix=no
9561 need_version=no
9562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9563 soname_spec='${libname}${release}${shared_ext}$major'
9564 shlibpath_var=LD_LIBRARY_PATH
9565 shlibpath_overrides_runpath=yes
9566 hardcode_into_libs=yes
9567 # ldd complains unless libraries are executable
9568 postinstall_cmds='chmod +x $lib'
9571 sunos4*)
9572 version_type=sunos
9573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9574 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9575 shlibpath_var=LD_LIBRARY_PATH
9576 shlibpath_overrides_runpath=yes
9577 if test "$with_gnu_ld" = yes; then
9578 need_lib_prefix=no
9580 need_version=yes
9583 sysv4 | sysv4.3*)
9584 version_type=linux
9585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9586 soname_spec='${libname}${release}${shared_ext}$major'
9587 shlibpath_var=LD_LIBRARY_PATH
9588 case $host_vendor in
9589 sni)
9590 shlibpath_overrides_runpath=no
9591 need_lib_prefix=no
9592 export_dynamic_flag_spec='${wl}-Blargedynsym'
9593 runpath_var=LD_RUN_PATH
9595 siemens)
9596 need_lib_prefix=no
9598 motorola)
9599 need_lib_prefix=no
9600 need_version=no
9601 shlibpath_overrides_runpath=no
9602 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9604 esac
9607 sysv4*MP*)
9608 if test -d /usr/nec ;then
9609 version_type=linux
9610 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9611 soname_spec='$libname${shared_ext}.$major'
9612 shlibpath_var=LD_LIBRARY_PATH
9616 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9617 version_type=freebsd-elf
9618 need_lib_prefix=no
9619 need_version=no
9620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9621 soname_spec='${libname}${release}${shared_ext}$major'
9622 shlibpath_var=LD_LIBRARY_PATH
9623 hardcode_into_libs=yes
9624 if test "$with_gnu_ld" = yes; then
9625 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9626 shlibpath_overrides_runpath=no
9627 else
9628 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9629 shlibpath_overrides_runpath=yes
9630 case $host_os in
9631 sco3.2v5*)
9632 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9634 esac
9636 sys_lib_dlsearch_path_spec='/usr/lib'
9639 uts4*)
9640 version_type=linux
9641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9642 soname_spec='${libname}${release}${shared_ext}$major'
9643 shlibpath_var=LD_LIBRARY_PATH
9647 dynamic_linker=no
9649 esac
9650 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9651 echo "${ECHO_T}$dynamic_linker" >&6; }
9652 test "$dynamic_linker" = no && can_build_shared=no
9654 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9655 echo $ECHO_N "(cached) $ECHO_C" >&6
9656 else
9657 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9660 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9661 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9662 echo $ECHO_N "(cached) $ECHO_C" >&6
9663 else
9664 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9667 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9669 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9670 if test "$GCC" = yes; then
9671 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9674 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9675 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9676 hardcode_action=
9677 if test -n "$hardcode_libdir_flag_spec" || \
9678 test -n "$runpath_var" || \
9679 test "X$hardcode_automatic" = "Xyes" ; then
9681 # We can hardcode non-existant directories.
9682 if test "$hardcode_direct" != no &&
9683 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9684 # have to relink, otherwise we might link with an installed library
9685 # when we should be linking with a yet-to-be-installed one
9686 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9687 test "$hardcode_minus_L" != no; then
9688 # Linking always hardcodes the temporary library directory.
9689 hardcode_action=relink
9690 else
9691 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9692 hardcode_action=immediate
9694 else
9695 # We cannot hardcode anything, or else we can only hardcode existing
9696 # directories.
9697 hardcode_action=unsupported
9699 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9700 echo "${ECHO_T}$hardcode_action" >&6; }
9702 if test "$hardcode_action" = relink; then
9703 # Fast installation is not supported
9704 enable_fast_install=no
9705 elif test "$shlibpath_overrides_runpath" = yes ||
9706 test "$enable_shared" = no; then
9707 # Fast installation is not necessary
9708 enable_fast_install=needless
9711 striplib=
9712 old_striplib=
9713 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9714 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9715 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9716 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9717 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9718 { echo "$as_me:$LINENO: result: yes" >&5
9719 echo "${ECHO_T}yes" >&6; }
9720 else
9721 # FIXME - insert some real tests, host_os isn't really good enough
9722 case $host_os in
9723 darwin*)
9724 if test -n "$STRIP" ; then
9725 striplib="$STRIP -x"
9726 old_striplib="$STRIP -S"
9727 { echo "$as_me:$LINENO: result: yes" >&5
9728 echo "${ECHO_T}yes" >&6; }
9729 else
9730 { echo "$as_me:$LINENO: result: no" >&5
9731 echo "${ECHO_T}no" >&6; }
9735 { echo "$as_me:$LINENO: result: no" >&5
9736 echo "${ECHO_T}no" >&6; }
9738 esac
9741 if test "x$enable_dlopen" != xyes; then
9742 enable_dlopen=unknown
9743 enable_dlopen_self=unknown
9744 enable_dlopen_self_static=unknown
9745 else
9746 lt_cv_dlopen=no
9747 lt_cv_dlopen_libs=
9749 case $host_os in
9750 beos*)
9751 lt_cv_dlopen="load_add_on"
9752 lt_cv_dlopen_libs=
9753 lt_cv_dlopen_self=yes
9756 mingw* | pw32*)
9757 lt_cv_dlopen="LoadLibrary"
9758 lt_cv_dlopen_libs=
9761 cygwin*)
9762 lt_cv_dlopen="dlopen"
9763 lt_cv_dlopen_libs=
9766 darwin*)
9767 # if libdl is installed we need to link against it
9768 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9769 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9770 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9771 echo $ECHO_N "(cached) $ECHO_C" >&6
9772 else
9773 ac_check_lib_save_LIBS=$LIBS
9774 LIBS="-ldl $LIBS"
9775 cat >conftest.$ac_ext <<_ACEOF
9776 /* confdefs.h. */
9777 _ACEOF
9778 cat confdefs.h >>conftest.$ac_ext
9779 cat >>conftest.$ac_ext <<_ACEOF
9780 /* end confdefs.h. */
9782 /* Override any GCC internal prototype to avoid an error.
9783 Use char because int might match the return type of a GCC
9784 builtin and then its argument prototype would still apply. */
9785 #ifdef __cplusplus
9786 extern "C"
9787 #endif
9788 char dlopen ();
9790 main ()
9792 return dlopen ();
9794 return 0;
9796 _ACEOF
9797 rm -f conftest.$ac_objext conftest$ac_exeext
9798 if { (ac_try="$ac_link"
9799 case "(($ac_try" in
9800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9801 *) ac_try_echo=$ac_try;;
9802 esac
9803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9804 (eval "$ac_link") 2>conftest.er1
9805 ac_status=$?
9806 grep -v '^ *+' conftest.er1 >conftest.err
9807 rm -f conftest.er1
9808 cat conftest.err >&5
9809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810 (exit $ac_status); } && {
9811 test -z "$ac_c_werror_flag" ||
9812 test ! -s conftest.err
9813 } && test -s conftest$ac_exeext &&
9814 $as_test_x conftest$ac_exeext; then
9815 ac_cv_lib_dl_dlopen=yes
9816 else
9817 echo "$as_me: failed program was:" >&5
9818 sed 's/^/| /' conftest.$ac_ext >&5
9820 ac_cv_lib_dl_dlopen=no
9823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9824 conftest$ac_exeext conftest.$ac_ext
9825 LIBS=$ac_check_lib_save_LIBS
9827 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9828 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9829 if test $ac_cv_lib_dl_dlopen = yes; then
9830 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9831 else
9833 lt_cv_dlopen="dyld"
9834 lt_cv_dlopen_libs=
9835 lt_cv_dlopen_self=yes
9842 { echo "$as_me:$LINENO: checking for shl_load" >&5
9843 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9844 if test "${ac_cv_func_shl_load+set}" = set; then
9845 echo $ECHO_N "(cached) $ECHO_C" >&6
9846 else
9847 cat >conftest.$ac_ext <<_ACEOF
9848 /* confdefs.h. */
9849 _ACEOF
9850 cat confdefs.h >>conftest.$ac_ext
9851 cat >>conftest.$ac_ext <<_ACEOF
9852 /* end confdefs.h. */
9853 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9854 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9855 #define shl_load innocuous_shl_load
9857 /* System header to define __stub macros and hopefully few prototypes,
9858 which can conflict with char shl_load (); below.
9859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9860 <limits.h> exists even on freestanding compilers. */
9862 #ifdef __STDC__
9863 # include <limits.h>
9864 #else
9865 # include <assert.h>
9866 #endif
9868 #undef shl_load
9870 /* Override any GCC internal prototype to avoid an error.
9871 Use char because int might match the return type of a GCC
9872 builtin and then its argument prototype would still apply. */
9873 #ifdef __cplusplus
9874 extern "C"
9875 #endif
9876 char shl_load ();
9877 /* The GNU C library defines this for functions which it implements
9878 to always fail with ENOSYS. Some functions are actually named
9879 something starting with __ and the normal name is an alias. */
9880 #if defined __stub_shl_load || defined __stub___shl_load
9881 choke me
9882 #endif
9885 main ()
9887 return shl_load ();
9889 return 0;
9891 _ACEOF
9892 rm -f conftest.$ac_objext conftest$ac_exeext
9893 if { (ac_try="$ac_link"
9894 case "(($ac_try" in
9895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9896 *) ac_try_echo=$ac_try;;
9897 esac
9898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9899 (eval "$ac_link") 2>conftest.er1
9900 ac_status=$?
9901 grep -v '^ *+' conftest.er1 >conftest.err
9902 rm -f conftest.er1
9903 cat conftest.err >&5
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); } && {
9906 test -z "$ac_c_werror_flag" ||
9907 test ! -s conftest.err
9908 } && test -s conftest$ac_exeext &&
9909 $as_test_x conftest$ac_exeext; then
9910 ac_cv_func_shl_load=yes
9911 else
9912 echo "$as_me: failed program was:" >&5
9913 sed 's/^/| /' conftest.$ac_ext >&5
9915 ac_cv_func_shl_load=no
9918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9919 conftest$ac_exeext conftest.$ac_ext
9921 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9922 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9923 if test $ac_cv_func_shl_load = yes; then
9924 lt_cv_dlopen="shl_load"
9925 else
9926 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9927 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9928 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9929 echo $ECHO_N "(cached) $ECHO_C" >&6
9930 else
9931 ac_check_lib_save_LIBS=$LIBS
9932 LIBS="-ldld $LIBS"
9933 cat >conftest.$ac_ext <<_ACEOF
9934 /* confdefs.h. */
9935 _ACEOF
9936 cat confdefs.h >>conftest.$ac_ext
9937 cat >>conftest.$ac_ext <<_ACEOF
9938 /* end confdefs.h. */
9940 /* Override any GCC internal prototype to avoid an error.
9941 Use char because int might match the return type of a GCC
9942 builtin and then its argument prototype would still apply. */
9943 #ifdef __cplusplus
9944 extern "C"
9945 #endif
9946 char shl_load ();
9948 main ()
9950 return shl_load ();
9952 return 0;
9954 _ACEOF
9955 rm -f conftest.$ac_objext conftest$ac_exeext
9956 if { (ac_try="$ac_link"
9957 case "(($ac_try" in
9958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9959 *) ac_try_echo=$ac_try;;
9960 esac
9961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9962 (eval "$ac_link") 2>conftest.er1
9963 ac_status=$?
9964 grep -v '^ *+' conftest.er1 >conftest.err
9965 rm -f conftest.er1
9966 cat conftest.err >&5
9967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968 (exit $ac_status); } && {
9969 test -z "$ac_c_werror_flag" ||
9970 test ! -s conftest.err
9971 } && test -s conftest$ac_exeext &&
9972 $as_test_x conftest$ac_exeext; then
9973 ac_cv_lib_dld_shl_load=yes
9974 else
9975 echo "$as_me: failed program was:" >&5
9976 sed 's/^/| /' conftest.$ac_ext >&5
9978 ac_cv_lib_dld_shl_load=no
9981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9982 conftest$ac_exeext conftest.$ac_ext
9983 LIBS=$ac_check_lib_save_LIBS
9985 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9986 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9987 if test $ac_cv_lib_dld_shl_load = yes; then
9988 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9989 else
9990 { echo "$as_me:$LINENO: checking for dlopen" >&5
9991 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9992 if test "${ac_cv_func_dlopen+set}" = set; then
9993 echo $ECHO_N "(cached) $ECHO_C" >&6
9994 else
9995 cat >conftest.$ac_ext <<_ACEOF
9996 /* confdefs.h. */
9997 _ACEOF
9998 cat confdefs.h >>conftest.$ac_ext
9999 cat >>conftest.$ac_ext <<_ACEOF
10000 /* end confdefs.h. */
10001 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10002 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10003 #define dlopen innocuous_dlopen
10005 /* System header to define __stub macros and hopefully few prototypes,
10006 which can conflict with char dlopen (); below.
10007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10008 <limits.h> exists even on freestanding compilers. */
10010 #ifdef __STDC__
10011 # include <limits.h>
10012 #else
10013 # include <assert.h>
10014 #endif
10016 #undef dlopen
10018 /* Override any GCC internal prototype to avoid an error.
10019 Use char because int might match the return type of a GCC
10020 builtin and then its argument prototype would still apply. */
10021 #ifdef __cplusplus
10022 extern "C"
10023 #endif
10024 char dlopen ();
10025 /* The GNU C library defines this for functions which it implements
10026 to always fail with ENOSYS. Some functions are actually named
10027 something starting with __ and the normal name is an alias. */
10028 #if defined __stub_dlopen || defined __stub___dlopen
10029 choke me
10030 #endif
10033 main ()
10035 return dlopen ();
10037 return 0;
10039 _ACEOF
10040 rm -f conftest.$ac_objext conftest$ac_exeext
10041 if { (ac_try="$ac_link"
10042 case "(($ac_try" in
10043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10044 *) ac_try_echo=$ac_try;;
10045 esac
10046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10047 (eval "$ac_link") 2>conftest.er1
10048 ac_status=$?
10049 grep -v '^ *+' conftest.er1 >conftest.err
10050 rm -f conftest.er1
10051 cat conftest.err >&5
10052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053 (exit $ac_status); } && {
10054 test -z "$ac_c_werror_flag" ||
10055 test ! -s conftest.err
10056 } && test -s conftest$ac_exeext &&
10057 $as_test_x conftest$ac_exeext; then
10058 ac_cv_func_dlopen=yes
10059 else
10060 echo "$as_me: failed program was:" >&5
10061 sed 's/^/| /' conftest.$ac_ext >&5
10063 ac_cv_func_dlopen=no
10066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10067 conftest$ac_exeext conftest.$ac_ext
10069 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10070 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10071 if test $ac_cv_func_dlopen = yes; then
10072 lt_cv_dlopen="dlopen"
10073 else
10074 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10075 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10076 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10077 echo $ECHO_N "(cached) $ECHO_C" >&6
10078 else
10079 ac_check_lib_save_LIBS=$LIBS
10080 LIBS="-ldl $LIBS"
10081 cat >conftest.$ac_ext <<_ACEOF
10082 /* confdefs.h. */
10083 _ACEOF
10084 cat confdefs.h >>conftest.$ac_ext
10085 cat >>conftest.$ac_ext <<_ACEOF
10086 /* end confdefs.h. */
10088 /* Override any GCC internal prototype to avoid an error.
10089 Use char because int might match the return type of a GCC
10090 builtin and then its argument prototype would still apply. */
10091 #ifdef __cplusplus
10092 extern "C"
10093 #endif
10094 char dlopen ();
10096 main ()
10098 return dlopen ();
10100 return 0;
10102 _ACEOF
10103 rm -f conftest.$ac_objext conftest$ac_exeext
10104 if { (ac_try="$ac_link"
10105 case "(($ac_try" in
10106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10107 *) ac_try_echo=$ac_try;;
10108 esac
10109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10110 (eval "$ac_link") 2>conftest.er1
10111 ac_status=$?
10112 grep -v '^ *+' conftest.er1 >conftest.err
10113 rm -f conftest.er1
10114 cat conftest.err >&5
10115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116 (exit $ac_status); } && {
10117 test -z "$ac_c_werror_flag" ||
10118 test ! -s conftest.err
10119 } && test -s conftest$ac_exeext &&
10120 $as_test_x conftest$ac_exeext; then
10121 ac_cv_lib_dl_dlopen=yes
10122 else
10123 echo "$as_me: failed program was:" >&5
10124 sed 's/^/| /' conftest.$ac_ext >&5
10126 ac_cv_lib_dl_dlopen=no
10129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10130 conftest$ac_exeext conftest.$ac_ext
10131 LIBS=$ac_check_lib_save_LIBS
10133 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10134 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10135 if test $ac_cv_lib_dl_dlopen = yes; then
10136 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10137 else
10138 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10139 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10140 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10141 echo $ECHO_N "(cached) $ECHO_C" >&6
10142 else
10143 ac_check_lib_save_LIBS=$LIBS
10144 LIBS="-lsvld $LIBS"
10145 cat >conftest.$ac_ext <<_ACEOF
10146 /* confdefs.h. */
10147 _ACEOF
10148 cat confdefs.h >>conftest.$ac_ext
10149 cat >>conftest.$ac_ext <<_ACEOF
10150 /* end confdefs.h. */
10152 /* Override any GCC internal prototype to avoid an error.
10153 Use char because int might match the return type of a GCC
10154 builtin and then its argument prototype would still apply. */
10155 #ifdef __cplusplus
10156 extern "C"
10157 #endif
10158 char dlopen ();
10160 main ()
10162 return dlopen ();
10164 return 0;
10166 _ACEOF
10167 rm -f conftest.$ac_objext conftest$ac_exeext
10168 if { (ac_try="$ac_link"
10169 case "(($ac_try" in
10170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10171 *) ac_try_echo=$ac_try;;
10172 esac
10173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10174 (eval "$ac_link") 2>conftest.er1
10175 ac_status=$?
10176 grep -v '^ *+' conftest.er1 >conftest.err
10177 rm -f conftest.er1
10178 cat conftest.err >&5
10179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180 (exit $ac_status); } && {
10181 test -z "$ac_c_werror_flag" ||
10182 test ! -s conftest.err
10183 } && test -s conftest$ac_exeext &&
10184 $as_test_x conftest$ac_exeext; then
10185 ac_cv_lib_svld_dlopen=yes
10186 else
10187 echo "$as_me: failed program was:" >&5
10188 sed 's/^/| /' conftest.$ac_ext >&5
10190 ac_cv_lib_svld_dlopen=no
10193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10194 conftest$ac_exeext conftest.$ac_ext
10195 LIBS=$ac_check_lib_save_LIBS
10197 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10198 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10199 if test $ac_cv_lib_svld_dlopen = yes; then
10200 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10201 else
10202 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10203 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10204 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10205 echo $ECHO_N "(cached) $ECHO_C" >&6
10206 else
10207 ac_check_lib_save_LIBS=$LIBS
10208 LIBS="-ldld $LIBS"
10209 cat >conftest.$ac_ext <<_ACEOF
10210 /* confdefs.h. */
10211 _ACEOF
10212 cat confdefs.h >>conftest.$ac_ext
10213 cat >>conftest.$ac_ext <<_ACEOF
10214 /* end confdefs.h. */
10216 /* Override any GCC internal prototype to avoid an error.
10217 Use char because int might match the return type of a GCC
10218 builtin and then its argument prototype would still apply. */
10219 #ifdef __cplusplus
10220 extern "C"
10221 #endif
10222 char dld_link ();
10224 main ()
10226 return dld_link ();
10228 return 0;
10230 _ACEOF
10231 rm -f conftest.$ac_objext conftest$ac_exeext
10232 if { (ac_try="$ac_link"
10233 case "(($ac_try" in
10234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10235 *) ac_try_echo=$ac_try;;
10236 esac
10237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10238 (eval "$ac_link") 2>conftest.er1
10239 ac_status=$?
10240 grep -v '^ *+' conftest.er1 >conftest.err
10241 rm -f conftest.er1
10242 cat conftest.err >&5
10243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244 (exit $ac_status); } && {
10245 test -z "$ac_c_werror_flag" ||
10246 test ! -s conftest.err
10247 } && test -s conftest$ac_exeext &&
10248 $as_test_x conftest$ac_exeext; then
10249 ac_cv_lib_dld_dld_link=yes
10250 else
10251 echo "$as_me: failed program was:" >&5
10252 sed 's/^/| /' conftest.$ac_ext >&5
10254 ac_cv_lib_dld_dld_link=no
10257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10258 conftest$ac_exeext conftest.$ac_ext
10259 LIBS=$ac_check_lib_save_LIBS
10261 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10262 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10263 if test $ac_cv_lib_dld_dld_link = yes; then
10264 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10283 esac
10285 if test "x$lt_cv_dlopen" != xno; then
10286 enable_dlopen=yes
10287 else
10288 enable_dlopen=no
10291 case $lt_cv_dlopen in
10292 dlopen)
10293 save_CPPFLAGS="$CPPFLAGS"
10294 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10296 save_LDFLAGS="$LDFLAGS"
10297 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10299 save_LIBS="$LIBS"
10300 LIBS="$lt_cv_dlopen_libs $LIBS"
10302 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10303 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10304 if test "${lt_cv_dlopen_self+set}" = set; then
10305 echo $ECHO_N "(cached) $ECHO_C" >&6
10306 else
10307 if test "$cross_compiling" = yes; then :
10308 lt_cv_dlopen_self=cross
10309 else
10310 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10311 lt_status=$lt_dlunknown
10312 cat > conftest.$ac_ext <<EOF
10313 #line 10313 "configure"
10314 #include "confdefs.h"
10316 #if HAVE_DLFCN_H
10317 #include <dlfcn.h>
10318 #endif
10320 #include <stdio.h>
10322 #ifdef RTLD_GLOBAL
10323 # define LT_DLGLOBAL RTLD_GLOBAL
10324 #else
10325 # ifdef DL_GLOBAL
10326 # define LT_DLGLOBAL DL_GLOBAL
10327 # else
10328 # define LT_DLGLOBAL 0
10329 # endif
10330 #endif
10332 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10333 find out it does not work in some platform. */
10334 #ifndef LT_DLLAZY_OR_NOW
10335 # ifdef RTLD_LAZY
10336 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10337 # else
10338 # ifdef DL_LAZY
10339 # define LT_DLLAZY_OR_NOW DL_LAZY
10340 # else
10341 # ifdef RTLD_NOW
10342 # define LT_DLLAZY_OR_NOW RTLD_NOW
10343 # else
10344 # ifdef DL_NOW
10345 # define LT_DLLAZY_OR_NOW DL_NOW
10346 # else
10347 # define LT_DLLAZY_OR_NOW 0
10348 # endif
10349 # endif
10350 # endif
10351 # endif
10352 #endif
10354 #ifdef __cplusplus
10355 extern "C" void exit (int);
10356 #endif
10358 void fnord() { int i=42;}
10359 int main ()
10361 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10362 int status = $lt_dlunknown;
10364 if (self)
10366 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10367 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10368 /* dlclose (self); */
10370 else
10371 puts (dlerror ());
10373 exit (status);
10376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10377 (eval $ac_link) 2>&5
10378 ac_status=$?
10379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10381 (./conftest; exit; ) >&5 2>/dev/null
10382 lt_status=$?
10383 case x$lt_status in
10384 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10385 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10386 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10387 esac
10388 else :
10389 # compilation failed
10390 lt_cv_dlopen_self=no
10393 rm -fr conftest*
10397 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10398 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10400 if test "x$lt_cv_dlopen_self" = xyes; then
10401 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10402 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10403 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10404 if test "${lt_cv_dlopen_self_static+set}" = set; then
10405 echo $ECHO_N "(cached) $ECHO_C" >&6
10406 else
10407 if test "$cross_compiling" = yes; then :
10408 lt_cv_dlopen_self_static=cross
10409 else
10410 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10411 lt_status=$lt_dlunknown
10412 cat > conftest.$ac_ext <<EOF
10413 #line 10413 "configure"
10414 #include "confdefs.h"
10416 #if HAVE_DLFCN_H
10417 #include <dlfcn.h>
10418 #endif
10420 #include <stdio.h>
10422 #ifdef RTLD_GLOBAL
10423 # define LT_DLGLOBAL RTLD_GLOBAL
10424 #else
10425 # ifdef DL_GLOBAL
10426 # define LT_DLGLOBAL DL_GLOBAL
10427 # else
10428 # define LT_DLGLOBAL 0
10429 # endif
10430 #endif
10432 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10433 find out it does not work in some platform. */
10434 #ifndef LT_DLLAZY_OR_NOW
10435 # ifdef RTLD_LAZY
10436 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10437 # else
10438 # ifdef DL_LAZY
10439 # define LT_DLLAZY_OR_NOW DL_LAZY
10440 # else
10441 # ifdef RTLD_NOW
10442 # define LT_DLLAZY_OR_NOW RTLD_NOW
10443 # else
10444 # ifdef DL_NOW
10445 # define LT_DLLAZY_OR_NOW DL_NOW
10446 # else
10447 # define LT_DLLAZY_OR_NOW 0
10448 # endif
10449 # endif
10450 # endif
10451 # endif
10452 #endif
10454 #ifdef __cplusplus
10455 extern "C" void exit (int);
10456 #endif
10458 void fnord() { int i=42;}
10459 int main ()
10461 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10462 int status = $lt_dlunknown;
10464 if (self)
10466 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10467 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10468 /* dlclose (self); */
10470 else
10471 puts (dlerror ());
10473 exit (status);
10476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10477 (eval $ac_link) 2>&5
10478 ac_status=$?
10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10481 (./conftest; exit; ) >&5 2>/dev/null
10482 lt_status=$?
10483 case x$lt_status in
10484 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10485 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10486 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10487 esac
10488 else :
10489 # compilation failed
10490 lt_cv_dlopen_self_static=no
10493 rm -fr conftest*
10497 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10498 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10501 CPPFLAGS="$save_CPPFLAGS"
10502 LDFLAGS="$save_LDFLAGS"
10503 LIBS="$save_LIBS"
10505 esac
10507 case $lt_cv_dlopen_self in
10508 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10509 *) enable_dlopen_self=unknown ;;
10510 esac
10512 case $lt_cv_dlopen_self_static in
10513 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10514 *) enable_dlopen_self_static=unknown ;;
10515 esac
10519 # Report which library types will actually be built
10520 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10521 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10522 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10523 echo "${ECHO_T}$can_build_shared" >&6; }
10525 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10526 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10527 test "$can_build_shared" = "no" && enable_shared=no
10529 # On AIX, shared libraries and static libraries use the same namespace, and
10530 # are all built from PIC.
10531 case $host_os in
10532 aix3*)
10533 test "$enable_shared" = yes && enable_static=no
10534 if test -n "$RANLIB"; then
10535 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10536 postinstall_cmds='$RANLIB $lib'
10540 aix[4-9]*)
10541 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10542 test "$enable_shared" = yes && enable_static=no
10545 esac
10546 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10547 echo "${ECHO_T}$enable_shared" >&6; }
10549 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10550 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10551 # Make sure either enable_shared or enable_static is yes.
10552 test "$enable_shared" = yes || enable_static=yes
10553 { echo "$as_me:$LINENO: result: $enable_static" >&5
10554 echo "${ECHO_T}$enable_static" >&6; }
10556 # The else clause should only fire when bootstrapping the
10557 # libtool distribution, otherwise you forgot to ship ltmain.sh
10558 # with your package, and you will get complaints that there are
10559 # no rules to generate ltmain.sh.
10560 if test -f "$ltmain"; then
10561 # See if we are running on zsh, and set the options which allow our commands through
10562 # without removal of \ escapes.
10563 if test -n "${ZSH_VERSION+set}" ; then
10564 setopt NO_GLOB_SUBST
10566 # Now quote all the things that may contain metacharacters while being
10567 # careful not to overquote the AC_SUBSTed values. We take copies of the
10568 # variables and quote the copies for generation of the libtool script.
10569 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10570 SED SHELL STRIP \
10571 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10572 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10573 deplibs_check_method reload_flag reload_cmds need_locks \
10574 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10575 lt_cv_sys_global_symbol_to_c_name_address \
10576 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10577 old_postinstall_cmds old_postuninstall_cmds \
10578 compiler \
10579 CC \
10580 LD \
10581 lt_prog_compiler_wl \
10582 lt_prog_compiler_pic \
10583 lt_prog_compiler_static \
10584 lt_prog_compiler_no_builtin_flag \
10585 export_dynamic_flag_spec \
10586 thread_safe_flag_spec \
10587 whole_archive_flag_spec \
10588 enable_shared_with_static_runtimes \
10589 old_archive_cmds \
10590 old_archive_from_new_cmds \
10591 predep_objects \
10592 postdep_objects \
10593 predeps \
10594 postdeps \
10595 compiler_lib_search_path \
10596 compiler_lib_search_dirs \
10597 archive_cmds \
10598 archive_expsym_cmds \
10599 postinstall_cmds \
10600 postuninstall_cmds \
10601 old_archive_from_expsyms_cmds \
10602 allow_undefined_flag \
10603 no_undefined_flag \
10604 export_symbols_cmds \
10605 hardcode_libdir_flag_spec \
10606 hardcode_libdir_flag_spec_ld \
10607 hardcode_libdir_separator \
10608 hardcode_automatic \
10609 module_cmds \
10610 module_expsym_cmds \
10611 lt_cv_prog_compiler_c_o \
10612 fix_srcfile_path \
10613 exclude_expsyms \
10614 include_expsyms; do
10616 case $var in
10617 old_archive_cmds | \
10618 old_archive_from_new_cmds | \
10619 archive_cmds | \
10620 archive_expsym_cmds | \
10621 module_cmds | \
10622 module_expsym_cmds | \
10623 old_archive_from_expsyms_cmds | \
10624 export_symbols_cmds | \
10625 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10626 postinstall_cmds | postuninstall_cmds | \
10627 old_postinstall_cmds | old_postuninstall_cmds | \
10628 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10629 # Double-quote double-evaled strings.
10630 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10633 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10635 esac
10636 done
10638 case $lt_echo in
10639 *'\$0 --fallback-echo"')
10640 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10642 esac
10644 cfgfile="${ofile}T"
10645 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10646 $rm -f "$cfgfile"
10647 { echo "$as_me:$LINENO: creating $ofile" >&5
10648 echo "$as_me: creating $ofile" >&6;}
10650 cat <<__EOF__ >> "$cfgfile"
10651 #! $SHELL
10653 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10654 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10655 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10657 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10658 # Free Software Foundation, Inc.
10660 # This file is part of GNU Libtool:
10661 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10663 # This program is free software; you can redistribute it and/or modify
10664 # it under the terms of the GNU General Public License as published by
10665 # the Free Software Foundation; either version 2 of the License, or
10666 # (at your option) any later version.
10668 # This program is distributed in the hope that it will be useful, but
10669 # WITHOUT ANY WARRANTY; without even the implied warranty of
10670 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10671 # General Public License for more details.
10673 # You should have received a copy of the GNU General Public License
10674 # along with this program; if not, write to the Free Software
10675 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10677 # As a special exception to the GNU General Public License, if you
10678 # distribute this file as part of a program that contains a
10679 # configuration script generated by Autoconf, you may include it under
10680 # the same distribution terms that you use for the rest of that program.
10682 # A sed program that does not truncate output.
10683 SED=$lt_SED
10685 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10686 Xsed="$SED -e 1s/^X//"
10688 # The HP-UX ksh and POSIX shell print the target directory to stdout
10689 # if CDPATH is set.
10690 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10692 # The names of the tagged configurations supported by this script.
10693 available_tags=
10695 # ### BEGIN LIBTOOL CONFIG
10697 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10699 # Shell to use when invoking shell scripts.
10700 SHELL=$lt_SHELL
10702 # Whether or not to build shared libraries.
10703 build_libtool_libs=$enable_shared
10705 # Whether or not to build static libraries.
10706 build_old_libs=$enable_static
10708 # Whether or not to add -lc for building shared libraries.
10709 build_libtool_need_lc=$archive_cmds_need_lc
10711 # Whether or not to disallow shared libs when runtime libs are static
10712 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10714 # Whether or not to optimize for fast installation.
10715 fast_install=$enable_fast_install
10717 # The host system.
10718 host_alias=$host_alias
10719 host=$host
10720 host_os=$host_os
10722 # The build system.
10723 build_alias=$build_alias
10724 build=$build
10725 build_os=$build_os
10727 # An echo program that does not interpret backslashes.
10728 echo=$lt_echo
10730 # The archiver.
10731 AR=$lt_AR
10732 AR_FLAGS=$lt_AR_FLAGS
10734 # A C compiler.
10735 LTCC=$lt_LTCC
10737 # LTCC compiler flags.
10738 LTCFLAGS=$lt_LTCFLAGS
10740 # A language-specific compiler.
10741 CC=$lt_compiler
10743 # Is the compiler the GNU C compiler?
10744 with_gcc=$GCC
10746 # An ERE matcher.
10747 EGREP=$lt_EGREP
10749 # The linker used to build libraries.
10750 LD=$lt_LD
10752 # Whether we need hard or soft links.
10753 LN_S=$lt_LN_S
10755 # A BSD-compatible nm program.
10756 NM=$lt_NM
10758 # A symbol stripping program
10759 STRIP=$lt_STRIP
10761 # Used to examine libraries when file_magic_cmd begins "file"
10762 MAGIC_CMD=$MAGIC_CMD
10764 # Used on cygwin: DLL creation program.
10765 DLLTOOL="$DLLTOOL"
10767 # Used on cygwin: object dumper.
10768 OBJDUMP="$OBJDUMP"
10770 # Used on cygwin: assembler.
10771 AS="$AS"
10773 # The name of the directory that contains temporary libtool files.
10774 objdir=$objdir
10776 # How to create reloadable object files.
10777 reload_flag=$lt_reload_flag
10778 reload_cmds=$lt_reload_cmds
10780 # How to pass a linker flag through the compiler.
10781 wl=$lt_lt_prog_compiler_wl
10783 # Object file suffix (normally "o").
10784 objext="$ac_objext"
10786 # Old archive suffix (normally "a").
10787 libext="$libext"
10789 # Shared library suffix (normally ".so").
10790 shrext_cmds='$shrext_cmds'
10792 # Executable file suffix (normally "").
10793 exeext="$exeext"
10795 # Additional compiler flags for building library objects.
10796 pic_flag=$lt_lt_prog_compiler_pic
10797 pic_mode=$pic_mode
10799 # What is the maximum length of a command?
10800 max_cmd_len=$lt_cv_sys_max_cmd_len
10802 # Does compiler simultaneously support -c and -o options?
10803 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10805 # Must we lock files when doing compilation?
10806 need_locks=$lt_need_locks
10808 # Do we need the lib prefix for modules?
10809 need_lib_prefix=$need_lib_prefix
10811 # Do we need a version for libraries?
10812 need_version=$need_version
10814 # Whether dlopen is supported.
10815 dlopen_support=$enable_dlopen
10817 # Whether dlopen of programs is supported.
10818 dlopen_self=$enable_dlopen_self
10820 # Whether dlopen of statically linked programs is supported.
10821 dlopen_self_static=$enable_dlopen_self_static
10823 # Compiler flag to prevent dynamic linking.
10824 link_static_flag=$lt_lt_prog_compiler_static
10826 # Compiler flag to turn off builtin functions.
10827 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10829 # Compiler flag to allow reflexive dlopens.
10830 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10832 # Compiler flag to generate shared objects directly from archives.
10833 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10835 # Compiler flag to generate thread-safe objects.
10836 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10838 # Library versioning type.
10839 version_type=$version_type
10841 # Format of library name prefix.
10842 libname_spec=$lt_libname_spec
10844 # List of archive names. First name is the real one, the rest are links.
10845 # The last name is the one that the linker finds with -lNAME.
10846 library_names_spec=$lt_library_names_spec
10848 # The coded name of the library, if different from the real name.
10849 soname_spec=$lt_soname_spec
10851 # Commands used to build and install an old-style archive.
10852 RANLIB=$lt_RANLIB
10853 old_archive_cmds=$lt_old_archive_cmds
10854 old_postinstall_cmds=$lt_old_postinstall_cmds
10855 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10857 # Create an old-style archive from a shared archive.
10858 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10860 # Create a temporary old-style archive to link instead of a shared archive.
10861 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10863 # Commands used to build and install a shared archive.
10864 archive_cmds=$lt_archive_cmds
10865 archive_expsym_cmds=$lt_archive_expsym_cmds
10866 postinstall_cmds=$lt_postinstall_cmds
10867 postuninstall_cmds=$lt_postuninstall_cmds
10869 # Commands used to build a loadable module (assumed same as above if empty)
10870 module_cmds=$lt_module_cmds
10871 module_expsym_cmds=$lt_module_expsym_cmds
10873 # Commands to strip libraries.
10874 old_striplib=$lt_old_striplib
10875 striplib=$lt_striplib
10877 # Dependencies to place before the objects being linked to create a
10878 # shared library.
10879 predep_objects=$lt_predep_objects
10881 # Dependencies to place after the objects being linked to create a
10882 # shared library.
10883 postdep_objects=$lt_postdep_objects
10885 # Dependencies to place before the objects being linked to create a
10886 # shared library.
10887 predeps=$lt_predeps
10889 # Dependencies to place after the objects being linked to create a
10890 # shared library.
10891 postdeps=$lt_postdeps
10893 # The directories searched by this compiler when creating a shared
10894 # library
10895 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10897 # The library search path used internally by the compiler when linking
10898 # a shared library.
10899 compiler_lib_search_path=$lt_compiler_lib_search_path
10901 # Method to check whether dependent libraries are shared objects.
10902 deplibs_check_method=$lt_deplibs_check_method
10904 # Command to use when deplibs_check_method == file_magic.
10905 file_magic_cmd=$lt_file_magic_cmd
10907 # Flag that allows shared libraries with undefined symbols to be built.
10908 allow_undefined_flag=$lt_allow_undefined_flag
10910 # Flag that forces no undefined symbols.
10911 no_undefined_flag=$lt_no_undefined_flag
10913 # Commands used to finish a libtool library installation in a directory.
10914 finish_cmds=$lt_finish_cmds
10916 # Same as above, but a single script fragment to be evaled but not shown.
10917 finish_eval=$lt_finish_eval
10919 # Take the output of nm and produce a listing of raw symbols and C names.
10920 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10922 # Transform the output of nm in a proper C declaration
10923 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10925 # Transform the output of nm in a C name address pair
10926 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10928 # This is the shared library runtime path variable.
10929 runpath_var=$runpath_var
10931 # This is the shared library path variable.
10932 shlibpath_var=$shlibpath_var
10934 # Is shlibpath searched before the hard-coded library search path?
10935 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10937 # How to hardcode a shared library path into an executable.
10938 hardcode_action=$hardcode_action
10940 # Whether we should hardcode library paths into libraries.
10941 hardcode_into_libs=$hardcode_into_libs
10943 # Flag to hardcode \$libdir into a binary during linking.
10944 # This must work even if \$libdir does not exist.
10945 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10947 # If ld is used when linking, flag to hardcode \$libdir into
10948 # a binary during linking. This must work even if \$libdir does
10949 # not exist.
10950 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10952 # Whether we need a single -rpath flag with a separated argument.
10953 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10955 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10956 # resulting binary.
10957 hardcode_direct=$hardcode_direct
10959 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10960 # resulting binary.
10961 hardcode_minus_L=$hardcode_minus_L
10963 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10964 # the resulting binary.
10965 hardcode_shlibpath_var=$hardcode_shlibpath_var
10967 # Set to yes if building a shared library automatically hardcodes DIR into the library
10968 # and all subsequent libraries and executables linked against it.
10969 hardcode_automatic=$hardcode_automatic
10971 # Variables whose values should be saved in libtool wrapper scripts and
10972 # restored at relink time.
10973 variables_saved_for_relink="$variables_saved_for_relink"
10975 # Whether libtool must link a program against all its dependency libraries.
10976 link_all_deplibs=$link_all_deplibs
10978 # Compile-time system search path for libraries
10979 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10981 # Run-time system search path for libraries
10982 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10984 # Fix the shell variable \$srcfile for the compiler.
10985 fix_srcfile_path=$lt_fix_srcfile_path
10987 # Set to yes if exported symbols are required.
10988 always_export_symbols=$always_export_symbols
10990 # The commands to list exported symbols.
10991 export_symbols_cmds=$lt_export_symbols_cmds
10993 # The commands to extract the exported symbol list from a shared archive.
10994 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10996 # Symbols that should not be listed in the preloaded symbols.
10997 exclude_expsyms=$lt_exclude_expsyms
10999 # Symbols that must always be exported.
11000 include_expsyms=$lt_include_expsyms
11002 # ### END LIBTOOL CONFIG
11004 __EOF__
11007 case $host_os in
11008 aix3*)
11009 cat <<\EOF >> "$cfgfile"
11011 # AIX sometimes has problems with the GCC collect2 program. For some
11012 # reason, if we set the COLLECT_NAMES environment variable, the problems
11013 # vanish in a puff of smoke.
11014 if test "X${COLLECT_NAMES+set}" != Xset; then
11015 COLLECT_NAMES=
11016 export COLLECT_NAMES
11020 esac
11022 # We use sed instead of cat because bash on DJGPP gets confused if
11023 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11024 # text mode, it properly converts lines to CR/LF. This bash problem
11025 # is reportedly fixed, but why not run on old versions too?
11026 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11028 mv -f "$cfgfile" "$ofile" || \
11029 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11030 chmod +x "$ofile"
11032 else
11033 # If there is no Makefile yet, we rely on a make rule to execute
11034 # `config.status --recheck' to rerun these tests and create the
11035 # libtool script then.
11036 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11037 if test -f "$ltmain_in"; then
11038 test -f Makefile && make "$ltmain"
11043 ac_ext=c
11044 ac_cpp='$CPP $CPPFLAGS'
11045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11049 CC="$lt_save_CC"
11052 # Check whether --with-tags was given.
11053 if test "${with_tags+set}" = set; then
11054 withval=$with_tags; tagnames="$withval"
11058 if test -f "$ltmain" && test -n "$tagnames"; then
11059 if test ! -f "${ofile}"; then
11060 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11061 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11064 if test -z "$LTCC"; then
11065 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11066 if test -z "$LTCC"; then
11067 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11068 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11069 else
11070 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11071 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11074 if test -z "$LTCFLAGS"; then
11075 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11078 # Extract list of available tagged configurations in $ofile.
11079 # Note that this assumes the entire list is on one line.
11080 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11082 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11083 for tagname in $tagnames; do
11084 IFS="$lt_save_ifs"
11085 # Check whether tagname contains only valid characters
11086 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11087 "") ;;
11088 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11089 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11090 { (exit 1); exit 1; }; }
11092 esac
11094 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11095 then
11096 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11097 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11098 { (exit 1); exit 1; }; }
11101 # Update the list of available tags.
11102 if test -n "$tagname"; then
11103 echo appending configuration tag \"$tagname\" to $ofile
11105 case $tagname in
11106 CXX)
11107 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11108 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11109 (test "X$CXX" != "Xg++"))) ; then
11110 ac_ext=cpp
11111 ac_cpp='$CXXCPP $CPPFLAGS'
11112 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11113 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11114 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11119 archive_cmds_need_lc_CXX=no
11120 allow_undefined_flag_CXX=
11121 always_export_symbols_CXX=no
11122 archive_expsym_cmds_CXX=
11123 export_dynamic_flag_spec_CXX=
11124 hardcode_direct_CXX=no
11125 hardcode_libdir_flag_spec_CXX=
11126 hardcode_libdir_flag_spec_ld_CXX=
11127 hardcode_libdir_separator_CXX=
11128 hardcode_minus_L_CXX=no
11129 hardcode_shlibpath_var_CXX=unsupported
11130 hardcode_automatic_CXX=no
11131 module_cmds_CXX=
11132 module_expsym_cmds_CXX=
11133 link_all_deplibs_CXX=unknown
11134 old_archive_cmds_CXX=$old_archive_cmds
11135 no_undefined_flag_CXX=
11136 whole_archive_flag_spec_CXX=
11137 enable_shared_with_static_runtimes_CXX=no
11139 # Dependencies to place before and after the object being linked:
11140 predep_objects_CXX=
11141 postdep_objects_CXX=
11142 predeps_CXX=
11143 postdeps_CXX=
11144 compiler_lib_search_path_CXX=
11145 compiler_lib_search_dirs_CXX=
11147 # Source file extension for C++ test sources.
11148 ac_ext=cpp
11150 # Object file extension for compiled C++ test sources.
11151 objext=o
11152 objext_CXX=$objext
11154 # Code to be used in simple compile tests
11155 lt_simple_compile_test_code="int some_variable = 0;"
11157 # Code to be used in simple link tests
11158 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11160 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11162 # If no C compiler was specified, use CC.
11163 LTCC=${LTCC-"$CC"}
11165 # If no C compiler flags were specified, use CFLAGS.
11166 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11168 # Allow CC to be a program name with arguments.
11169 compiler=$CC
11172 # save warnings/boilerplate of simple test code
11173 ac_outfile=conftest.$ac_objext
11174 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11175 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11176 _lt_compiler_boilerplate=`cat conftest.err`
11177 $rm conftest*
11179 ac_outfile=conftest.$ac_objext
11180 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11181 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11182 _lt_linker_boilerplate=`cat conftest.err`
11183 $rm -r conftest*
11186 # Allow CC to be a program name with arguments.
11187 lt_save_CC=$CC
11188 lt_save_LD=$LD
11189 lt_save_GCC=$GCC
11190 GCC=$GXX
11191 lt_save_with_gnu_ld=$with_gnu_ld
11192 lt_save_path_LD=$lt_cv_path_LD
11193 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11194 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11195 else
11196 $as_unset lt_cv_prog_gnu_ld
11198 if test -n "${lt_cv_path_LDCXX+set}"; then
11199 lt_cv_path_LD=$lt_cv_path_LDCXX
11200 else
11201 $as_unset lt_cv_path_LD
11203 test -z "${LDCXX+set}" || LD=$LDCXX
11204 CC=${CXX-"c++"}
11205 compiler=$CC
11206 compiler_CXX=$CC
11207 for cc_temp in $compiler""; do
11208 case $cc_temp in
11209 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11210 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11211 \-*) ;;
11212 *) break;;
11213 esac
11214 done
11215 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11218 # We don't want -fno-exception wen compiling C++ code, so set the
11219 # no_builtin_flag separately
11220 if test "$GXX" = yes; then
11221 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11222 else
11223 lt_prog_compiler_no_builtin_flag_CXX=
11226 if test "$GXX" = yes; then
11227 # Set up default GNU C++ configuration
11230 # Check whether --with-gnu-ld was given.
11231 if test "${with_gnu_ld+set}" = set; then
11232 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11233 else
11234 with_gnu_ld=no
11237 ac_prog=ld
11238 if test "$GCC" = yes; then
11239 # Check if gcc -print-prog-name=ld gives a path.
11240 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11241 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11242 case $host in
11243 *-*-mingw*)
11244 # gcc leaves a trailing carriage return which upsets mingw
11245 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11247 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11248 esac
11249 case $ac_prog in
11250 # Accept absolute paths.
11251 [\\/]* | ?:[\\/]*)
11252 re_direlt='/[^/][^/]*/\.\./'
11253 # Canonicalize the pathname of ld
11254 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11255 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11256 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11257 done
11258 test -z "$LD" && LD="$ac_prog"
11261 # If it fails, then pretend we aren't using GCC.
11262 ac_prog=ld
11265 # If it is relative, then search for the first ld in PATH.
11266 with_gnu_ld=unknown
11268 esac
11269 elif test "$with_gnu_ld" = yes; then
11270 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11271 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11272 else
11273 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11274 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11276 if test "${lt_cv_path_LD+set}" = set; then
11277 echo $ECHO_N "(cached) $ECHO_C" >&6
11278 else
11279 if test -z "$LD"; then
11280 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11281 for ac_dir in $PATH; do
11282 IFS="$lt_save_ifs"
11283 test -z "$ac_dir" && ac_dir=.
11284 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11285 lt_cv_path_LD="$ac_dir/$ac_prog"
11286 # Check to see if the program is GNU ld. I'd rather use --version,
11287 # but apparently some variants of GNU ld only accept -v.
11288 # Break only if it was the GNU/non-GNU ld that we prefer.
11289 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11290 *GNU* | *'with BFD'*)
11291 test "$with_gnu_ld" != no && break
11294 test "$with_gnu_ld" != yes && break
11296 esac
11298 done
11299 IFS="$lt_save_ifs"
11300 else
11301 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11305 LD="$lt_cv_path_LD"
11306 if test -n "$LD"; then
11307 { echo "$as_me:$LINENO: result: $LD" >&5
11308 echo "${ECHO_T}$LD" >&6; }
11309 else
11310 { echo "$as_me:$LINENO: result: no" >&5
11311 echo "${ECHO_T}no" >&6; }
11313 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11314 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11315 { (exit 1); exit 1; }; }
11316 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11317 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11318 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11319 echo $ECHO_N "(cached) $ECHO_C" >&6
11320 else
11321 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11322 case `$LD -v 2>&1 </dev/null` in
11323 *GNU* | *'with BFD'*)
11324 lt_cv_prog_gnu_ld=yes
11327 lt_cv_prog_gnu_ld=no
11329 esac
11331 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11332 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11333 with_gnu_ld=$lt_cv_prog_gnu_ld
11337 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11338 # archiving commands below assume that GNU ld is being used.
11339 if test "$with_gnu_ld" = yes; then
11340 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11341 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'
11343 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11344 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11346 # If archive_cmds runs LD, not CC, wlarc should be empty
11347 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11348 # investigate it a little bit more. (MM)
11349 wlarc='${wl}'
11351 # ancient GNU ld didn't support --whole-archive et. al.
11352 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11353 grep 'no-whole-archive' > /dev/null; then
11354 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11355 else
11356 whole_archive_flag_spec_CXX=
11358 else
11359 with_gnu_ld=no
11360 wlarc=
11362 # A generic and very simple default shared library creation
11363 # command for GNU C++ for the case where it uses the native
11364 # linker, instead of GNU ld. If possible, this setting should
11365 # overridden to take advantage of the native linker features on
11366 # the platform it is being used on.
11367 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11370 # Commands to make compiler produce verbose output that lists
11371 # what "hidden" libraries, object files and flags are used when
11372 # linking a shared library.
11373 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11375 else
11376 GXX=no
11377 with_gnu_ld=no
11378 wlarc=
11381 # PORTME: fill in a description of your system's C++ link characteristics
11382 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11383 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11384 ld_shlibs_CXX=yes
11385 case $host_os in
11386 aix3*)
11387 # FIXME: insert proper C++ library support
11388 ld_shlibs_CXX=no
11390 aix[4-9]*)
11391 if test "$host_cpu" = ia64; then
11392 # On IA64, the linker does run time linking by default, so we don't
11393 # have to do anything special.
11394 aix_use_runtimelinking=no
11395 exp_sym_flag='-Bexport'
11396 no_entry_flag=""
11397 else
11398 aix_use_runtimelinking=no
11400 # Test if we are trying to use run time linking or normal
11401 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11402 # need to do runtime linking.
11403 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11404 for ld_flag in $LDFLAGS; do
11405 case $ld_flag in
11406 *-brtl*)
11407 aix_use_runtimelinking=yes
11408 break
11410 esac
11411 done
11413 esac
11415 exp_sym_flag='-bexport'
11416 no_entry_flag='-bnoentry'
11419 # When large executables or shared objects are built, AIX ld can
11420 # have problems creating the table of contents. If linking a library
11421 # or program results in "error TOC overflow" add -mminimal-toc to
11422 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11423 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11425 archive_cmds_CXX=''
11426 hardcode_direct_CXX=yes
11427 hardcode_libdir_separator_CXX=':'
11428 link_all_deplibs_CXX=yes
11430 if test "$GXX" = yes; then
11431 case $host_os in aix4.[012]|aix4.[012].*)
11432 # We only want to do this on AIX 4.2 and lower, the check
11433 # below for broken collect2 doesn't work under 4.3+
11434 collect2name=`${CC} -print-prog-name=collect2`
11435 if test -f "$collect2name" && \
11436 strings "$collect2name" | grep resolve_lib_name >/dev/null
11437 then
11438 # We have reworked collect2
11440 else
11441 # We have old collect2
11442 hardcode_direct_CXX=unsupported
11443 # It fails to find uninstalled libraries when the uninstalled
11444 # path is not listed in the libpath. Setting hardcode_minus_L
11445 # to unsupported forces relinking
11446 hardcode_minus_L_CXX=yes
11447 hardcode_libdir_flag_spec_CXX='-L$libdir'
11448 hardcode_libdir_separator_CXX=
11451 esac
11452 shared_flag='-shared'
11453 if test "$aix_use_runtimelinking" = yes; then
11454 shared_flag="$shared_flag "'${wl}-G'
11456 else
11457 # not using gcc
11458 if test "$host_cpu" = ia64; then
11459 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11460 # chokes on -Wl,-G. The following line is correct:
11461 shared_flag='-G'
11462 else
11463 if test "$aix_use_runtimelinking" = yes; then
11464 shared_flag='${wl}-G'
11465 else
11466 shared_flag='${wl}-bM:SRE'
11471 # It seems that -bexpall does not export symbols beginning with
11472 # underscore (_), so it is better to generate a list of symbols to export.
11473 always_export_symbols_CXX=yes
11474 if test "$aix_use_runtimelinking" = yes; then
11475 # Warning - without using the other runtime loading flags (-brtl),
11476 # -berok will link without error, but may produce a broken library.
11477 allow_undefined_flag_CXX='-berok'
11478 # Determine the default libpath from the value encoded in an empty executable.
11479 cat >conftest.$ac_ext <<_ACEOF
11480 /* confdefs.h. */
11481 _ACEOF
11482 cat confdefs.h >>conftest.$ac_ext
11483 cat >>conftest.$ac_ext <<_ACEOF
11484 /* end confdefs.h. */
11487 main ()
11491 return 0;
11493 _ACEOF
11494 rm -f conftest.$ac_objext conftest$ac_exeext
11495 if { (ac_try="$ac_link"
11496 case "(($ac_try" in
11497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11498 *) ac_try_echo=$ac_try;;
11499 esac
11500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11501 (eval "$ac_link") 2>conftest.er1
11502 ac_status=$?
11503 grep -v '^ *+' conftest.er1 >conftest.err
11504 rm -f conftest.er1
11505 cat conftest.err >&5
11506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507 (exit $ac_status); } && {
11508 test -z "$ac_cxx_werror_flag" ||
11509 test ! -s conftest.err
11510 } && test -s conftest$ac_exeext &&
11511 $as_test_x conftest$ac_exeext; then
11513 lt_aix_libpath_sed='
11514 /Import File Strings/,/^$/ {
11515 /^0/ {
11516 s/^0 *\(.*\)$/\1/
11520 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11521 # Check for a 64-bit object if we didn't find anything.
11522 if test -z "$aix_libpath"; then
11523 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11525 else
11526 echo "$as_me: failed program was:" >&5
11527 sed 's/^/| /' conftest.$ac_ext >&5
11532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11533 conftest$ac_exeext conftest.$ac_ext
11534 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11536 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11538 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11539 else
11540 if test "$host_cpu" = ia64; then
11541 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11542 allow_undefined_flag_CXX="-z nodefs"
11543 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"
11544 else
11545 # Determine the default libpath from the value encoded in an empty executable.
11546 cat >conftest.$ac_ext <<_ACEOF
11547 /* confdefs.h. */
11548 _ACEOF
11549 cat confdefs.h >>conftest.$ac_ext
11550 cat >>conftest.$ac_ext <<_ACEOF
11551 /* end confdefs.h. */
11554 main ()
11558 return 0;
11560 _ACEOF
11561 rm -f conftest.$ac_objext conftest$ac_exeext
11562 if { (ac_try="$ac_link"
11563 case "(($ac_try" in
11564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11565 *) ac_try_echo=$ac_try;;
11566 esac
11567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11568 (eval "$ac_link") 2>conftest.er1
11569 ac_status=$?
11570 grep -v '^ *+' conftest.er1 >conftest.err
11571 rm -f conftest.er1
11572 cat conftest.err >&5
11573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574 (exit $ac_status); } && {
11575 test -z "$ac_cxx_werror_flag" ||
11576 test ! -s conftest.err
11577 } && test -s conftest$ac_exeext &&
11578 $as_test_x conftest$ac_exeext; then
11580 lt_aix_libpath_sed='
11581 /Import File Strings/,/^$/ {
11582 /^0/ {
11583 s/^0 *\(.*\)$/\1/
11587 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11588 # Check for a 64-bit object if we didn't find anything.
11589 if test -z "$aix_libpath"; then
11590 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11592 else
11593 echo "$as_me: failed program was:" >&5
11594 sed 's/^/| /' conftest.$ac_ext >&5
11599 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11600 conftest$ac_exeext conftest.$ac_ext
11601 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11603 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11604 # Warning - without using the other run time loading flags,
11605 # -berok will link without error, but may produce a broken library.
11606 no_undefined_flag_CXX=' ${wl}-bernotok'
11607 allow_undefined_flag_CXX=' ${wl}-berok'
11608 # Exported symbols can be pulled into shared objects from archives
11609 whole_archive_flag_spec_CXX='$convenience'
11610 archive_cmds_need_lc_CXX=yes
11611 # This is similar to how AIX traditionally builds its shared libraries.
11612 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'
11617 beos*)
11618 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11619 allow_undefined_flag_CXX=unsupported
11620 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11621 # support --undefined. This deserves some investigation. FIXME
11622 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11623 else
11624 ld_shlibs_CXX=no
11628 chorus*)
11629 case $cc_basename in
11631 # FIXME: insert proper C++ library support
11632 ld_shlibs_CXX=no
11634 esac
11637 cygwin* | mingw* | pw32*)
11638 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11639 # as there is no search path for DLLs.
11640 hardcode_libdir_flag_spec_CXX='-L$libdir'
11641 allow_undefined_flag_CXX=unsupported
11642 always_export_symbols_CXX=no
11643 enable_shared_with_static_runtimes_CXX=yes
11645 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11646 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'
11647 # If the export-symbols file already is a .def file (1st line
11648 # is EXPORTS), use it as is; otherwise, prepend...
11649 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11650 cp $export_symbols $output_objdir/$soname.def;
11651 else
11652 echo EXPORTS > $output_objdir/$soname.def;
11653 cat $export_symbols >> $output_objdir/$soname.def;
11655 $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'
11656 else
11657 ld_shlibs_CXX=no
11660 darwin* | rhapsody*)
11661 archive_cmds_need_lc_CXX=no
11662 hardcode_direct_CXX=no
11663 hardcode_automatic_CXX=yes
11664 hardcode_shlibpath_var_CXX=unsupported
11665 whole_archive_flag_spec_CXX=''
11666 link_all_deplibs_CXX=yes
11667 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11668 if test "$GXX" = yes ; then
11669 output_verbose_link_cmd='echo'
11670 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}"
11671 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11672 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}"
11673 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}"
11674 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11675 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}"
11676 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}"
11678 else
11679 case $cc_basename in
11680 xlc*)
11681 output_verbose_link_cmd='echo'
11682 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11683 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11684 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11685 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11686 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11689 ld_shlibs_CXX=no
11691 esac
11695 dgux*)
11696 case $cc_basename in
11697 ec++*)
11698 # FIXME: insert proper C++ library support
11699 ld_shlibs_CXX=no
11701 ghcx*)
11702 # Green Hills C++ Compiler
11703 # FIXME: insert proper C++ library support
11704 ld_shlibs_CXX=no
11707 # FIXME: insert proper C++ library support
11708 ld_shlibs_CXX=no
11710 esac
11712 freebsd[12]*)
11713 # C++ shared libraries reported to be fairly broken before switch to ELF
11714 ld_shlibs_CXX=no
11716 freebsd-elf*)
11717 archive_cmds_need_lc_CXX=no
11719 freebsd* | dragonfly*)
11720 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11721 # conventions
11722 ld_shlibs_CXX=yes
11724 gnu*)
11726 hpux9*)
11727 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11728 hardcode_libdir_separator_CXX=:
11729 export_dynamic_flag_spec_CXX='${wl}-E'
11730 hardcode_direct_CXX=yes
11731 hardcode_minus_L_CXX=yes # Not in the search PATH,
11732 # but as the default
11733 # location of the library.
11735 case $cc_basename in
11736 CC*)
11737 # FIXME: insert proper C++ library support
11738 ld_shlibs_CXX=no
11740 aCC*)
11741 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'
11742 # Commands to make compiler produce verbose output that lists
11743 # what "hidden" libraries, object files and flags are used when
11744 # linking a shared library.
11746 # There doesn't appear to be a way to prevent this compiler from
11747 # explicitly linking system object files so we need to strip them
11748 # from the output so that they don't get included in the library
11749 # dependencies.
11750 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11753 if test "$GXX" = yes; then
11754 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'
11755 else
11756 # FIXME: insert proper C++ library support
11757 ld_shlibs_CXX=no
11760 esac
11762 hpux10*|hpux11*)
11763 if test $with_gnu_ld = no; then
11764 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11765 hardcode_libdir_separator_CXX=:
11767 case $host_cpu in
11768 hppa*64*|ia64*) ;;
11770 export_dynamic_flag_spec_CXX='${wl}-E'
11772 esac
11774 case $host_cpu in
11775 hppa*64*|ia64*)
11776 hardcode_direct_CXX=no
11777 hardcode_shlibpath_var_CXX=no
11780 hardcode_direct_CXX=yes
11781 hardcode_minus_L_CXX=yes # Not in the search PATH,
11782 # but as the default
11783 # location of the library.
11785 esac
11787 case $cc_basename in
11788 CC*)
11789 # FIXME: insert proper C++ library support
11790 ld_shlibs_CXX=no
11792 aCC*)
11793 case $host_cpu in
11794 hppa*64*)
11795 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11797 ia64*)
11798 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11801 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11803 esac
11804 # Commands to make compiler produce verbose output that lists
11805 # what "hidden" libraries, object files and flags are used when
11806 # linking a shared library.
11808 # There doesn't appear to be a way to prevent this compiler from
11809 # explicitly linking system object files so we need to strip them
11810 # from the output so that they don't get included in the library
11811 # dependencies.
11812 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11815 if test "$GXX" = yes; then
11816 if test $with_gnu_ld = no; then
11817 case $host_cpu in
11818 hppa*64*)
11819 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11821 ia64*)
11822 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11825 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'
11827 esac
11829 else
11830 # FIXME: insert proper C++ library support
11831 ld_shlibs_CXX=no
11834 esac
11836 interix[3-9]*)
11837 hardcode_direct_CXX=no
11838 hardcode_shlibpath_var_CXX=no
11839 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11840 export_dynamic_flag_spec_CXX='${wl}-E'
11841 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11842 # Instead, shared libraries are loaded at an image base (0x10000000 by
11843 # default) and relocated if they conflict, which is a slow very memory
11844 # consuming and fragmenting process. To avoid this, we pick a random,
11845 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11846 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11847 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'
11848 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'
11850 irix5* | irix6*)
11851 case $cc_basename in
11852 CC*)
11853 # SGI C++
11854 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11856 # Archives containing C++ object files must be created using
11857 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11858 # necessary to make sure instantiated templates are included
11859 # in the archive.
11860 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11863 if test "$GXX" = yes; then
11864 if test "$with_gnu_ld" = no; then
11865 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11866 else
11867 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11870 link_all_deplibs_CXX=yes
11872 esac
11873 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11874 hardcode_libdir_separator_CXX=:
11876 linux* | k*bsd*-gnu)
11877 case $cc_basename in
11878 KCC*)
11879 # Kuck and Associates, Inc. (KAI) C++ Compiler
11881 # KCC will only create a shared library if the output file
11882 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11883 # to its proper name (with version) after linking.
11884 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'
11885 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'
11886 # Commands to make compiler produce verbose output that lists
11887 # what "hidden" libraries, object files and flags are used when
11888 # linking a shared library.
11890 # There doesn't appear to be a way to prevent this compiler from
11891 # explicitly linking system object files so we need to strip them
11892 # from the output so that they don't get included in the library
11893 # dependencies.
11894 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11896 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11897 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11899 # Archives containing C++ object files must be created using
11900 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11901 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11903 icpc*)
11904 # Intel C++
11905 with_gnu_ld=yes
11906 # version 8.0 and above of icpc choke on multiply defined symbols
11907 # if we add $predep_objects and $postdep_objects, however 7.1 and
11908 # earlier do not add the objects themselves.
11909 case `$CC -V 2>&1` in
11910 *"Version 7."*)
11911 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11912 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'
11914 *) # Version 8.0 or newer
11915 tmp_idyn=
11916 case $host_cpu in
11917 ia64*) tmp_idyn=' -i_dynamic';;
11918 esac
11919 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11920 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'
11922 esac
11923 archive_cmds_need_lc_CXX=no
11924 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11925 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11926 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11928 pgCC* | pgcpp*)
11929 # Portland Group C++ compiler
11930 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11931 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'
11933 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11934 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11935 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'
11937 cxx*)
11938 # Compaq C++
11939 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11940 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'
11942 runpath_var=LD_RUN_PATH
11943 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11944 hardcode_libdir_separator_CXX=:
11946 # Commands to make compiler produce verbose output that lists
11947 # what "hidden" libraries, object files and flags are used when
11948 # linking a shared library.
11950 # There doesn't appear to be a way to prevent this compiler from
11951 # explicitly linking system object files so we need to strip them
11952 # from the output so that they don't get included in the library
11953 # dependencies.
11954 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11957 case `$CC -V 2>&1 | sed 5q` in
11958 *Sun\ C*)
11959 # Sun C++ 5.9
11960 no_undefined_flag_CXX=' -zdefs'
11961 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11962 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'
11963 hardcode_libdir_flag_spec_CXX='-R$libdir'
11964 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'
11966 # Not sure whether something based on
11967 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11968 # would be better.
11969 output_verbose_link_cmd='echo'
11971 # Archives containing C++ object files must be created using
11972 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11973 # necessary to make sure instantiated templates are included
11974 # in the archive.
11975 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11977 esac
11979 esac
11981 lynxos*)
11982 # FIXME: insert proper C++ library support
11983 ld_shlibs_CXX=no
11985 m88k*)
11986 # FIXME: insert proper C++ library support
11987 ld_shlibs_CXX=no
11989 mvs*)
11990 case $cc_basename in
11991 cxx*)
11992 # FIXME: insert proper C++ library support
11993 ld_shlibs_CXX=no
11996 # FIXME: insert proper C++ library support
11997 ld_shlibs_CXX=no
11999 esac
12001 netbsd*)
12002 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12003 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12004 wlarc=
12005 hardcode_libdir_flag_spec_CXX='-R$libdir'
12006 hardcode_direct_CXX=yes
12007 hardcode_shlibpath_var_CXX=no
12009 # Workaround some broken pre-1.5 toolchains
12010 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12012 openbsd2*)
12013 # C++ shared libraries are fairly broken
12014 ld_shlibs_CXX=no
12016 openbsd*)
12017 if test -f /usr/libexec/ld.so; then
12018 hardcode_direct_CXX=yes
12019 hardcode_shlibpath_var_CXX=no
12020 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12021 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12022 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12023 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12024 export_dynamic_flag_spec_CXX='${wl}-E'
12025 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12027 output_verbose_link_cmd='echo'
12028 else
12029 ld_shlibs_CXX=no
12032 osf3*)
12033 case $cc_basename in
12034 KCC*)
12035 # Kuck and Associates, Inc. (KAI) C++ Compiler
12037 # KCC will only create a shared library if the output file
12038 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12039 # to its proper name (with version) after linking.
12040 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'
12042 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12043 hardcode_libdir_separator_CXX=:
12045 # Archives containing C++ object files must be created using
12046 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12047 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12050 RCC*)
12051 # Rational C++ 2.4.1
12052 # FIXME: insert proper C++ library support
12053 ld_shlibs_CXX=no
12055 cxx*)
12056 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12057 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12059 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12060 hardcode_libdir_separator_CXX=:
12062 # Commands to make compiler produce verbose output that lists
12063 # what "hidden" libraries, object files and flags are used when
12064 # linking a shared library.
12066 # There doesn't appear to be a way to prevent this compiler from
12067 # explicitly linking system object files so we need to strip them
12068 # from the output so that they don't get included in the library
12069 # dependencies.
12070 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12073 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12074 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12075 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12077 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12078 hardcode_libdir_separator_CXX=:
12080 # Commands to make compiler produce verbose output that lists
12081 # what "hidden" libraries, object files and flags are used when
12082 # linking a shared library.
12083 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12085 else
12086 # FIXME: insert proper C++ library support
12087 ld_shlibs_CXX=no
12090 esac
12092 osf4* | osf5*)
12093 case $cc_basename in
12094 KCC*)
12095 # Kuck and Associates, Inc. (KAI) C++ Compiler
12097 # KCC will only create a shared library if the output file
12098 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12099 # to its proper name (with version) after linking.
12100 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'
12102 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12103 hardcode_libdir_separator_CXX=:
12105 # Archives containing C++ object files must be created using
12106 # the KAI C++ compiler.
12107 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12109 RCC*)
12110 # Rational C++ 2.4.1
12111 # FIXME: insert proper C++ library support
12112 ld_shlibs_CXX=no
12114 cxx*)
12115 allow_undefined_flag_CXX=' -expect_unresolved \*'
12116 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12117 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12118 echo "-hidden">> $lib.exp~
12119 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
12120 $rm $lib.exp'
12122 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12123 hardcode_libdir_separator_CXX=:
12125 # Commands to make compiler produce verbose output that lists
12126 # what "hidden" libraries, object files and flags are used when
12127 # linking a shared library.
12129 # There doesn't appear to be a way to prevent this compiler from
12130 # explicitly linking system object files so we need to strip them
12131 # from the output so that they don't get included in the library
12132 # dependencies.
12133 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12136 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12137 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12138 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12140 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12141 hardcode_libdir_separator_CXX=:
12143 # Commands to make compiler produce verbose output that lists
12144 # what "hidden" libraries, object files and flags are used when
12145 # linking a shared library.
12146 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12148 else
12149 # FIXME: insert proper C++ library support
12150 ld_shlibs_CXX=no
12153 esac
12155 psos*)
12156 # FIXME: insert proper C++ library support
12157 ld_shlibs_CXX=no
12159 sunos4*)
12160 case $cc_basename in
12161 CC*)
12162 # Sun C++ 4.x
12163 # FIXME: insert proper C++ library support
12164 ld_shlibs_CXX=no
12166 lcc*)
12167 # Lucid
12168 # FIXME: insert proper C++ library support
12169 ld_shlibs_CXX=no
12172 # FIXME: insert proper C++ library support
12173 ld_shlibs_CXX=no
12175 esac
12177 solaris*)
12178 case $cc_basename in
12179 CC*)
12180 # Sun C++ 4.2, 5.x and Centerline C++
12181 archive_cmds_need_lc_CXX=yes
12182 no_undefined_flag_CXX=' -zdefs'
12183 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12184 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12185 $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'
12187 hardcode_libdir_flag_spec_CXX='-R$libdir'
12188 hardcode_shlibpath_var_CXX=no
12189 case $host_os in
12190 solaris2.[0-5] | solaris2.[0-5].*) ;;
12192 # The compiler driver will combine and reorder linker options,
12193 # but understands `-z linker_flag'.
12194 # Supported since Solaris 2.6 (maybe 2.5.1?)
12195 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12197 esac
12198 link_all_deplibs_CXX=yes
12200 output_verbose_link_cmd='echo'
12202 # Archives containing C++ object files must be created using
12203 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12204 # necessary to make sure instantiated templates are included
12205 # in the archive.
12206 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12208 gcx*)
12209 # Green Hills C++ Compiler
12210 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12212 # The C++ compiler must be used to create the archive.
12213 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12216 # GNU C++ compiler with Solaris linker
12217 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12218 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12219 if $CC --version | grep -v '^2\.7' > /dev/null; then
12220 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12221 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12222 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12224 # Commands to make compiler produce verbose output that lists
12225 # what "hidden" libraries, object files and flags are used when
12226 # linking a shared library.
12227 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12228 else
12229 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12230 # platform.
12231 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12232 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12233 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12235 # Commands to make compiler produce verbose output that lists
12236 # what "hidden" libraries, object files and flags are used when
12237 # linking a shared library.
12238 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12241 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12242 case $host_os in
12243 solaris2.[0-5] | solaris2.[0-5].*) ;;
12245 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12247 esac
12250 esac
12252 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12253 no_undefined_flag_CXX='${wl}-z,text'
12254 archive_cmds_need_lc_CXX=no
12255 hardcode_shlibpath_var_CXX=no
12256 runpath_var='LD_RUN_PATH'
12258 case $cc_basename in
12259 CC*)
12260 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12261 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12264 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12265 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12267 esac
12269 sysv5* | sco3.2v5* | sco5v6*)
12270 # Note: We can NOT use -z defs as we might desire, because we do not
12271 # link with -lc, and that would cause any symbols used from libc to
12272 # always be unresolved, which means just about no library would
12273 # ever link correctly. If we're not using GNU ld we use -z text
12274 # though, which does catch some bad symbols but isn't as heavy-handed
12275 # as -z defs.
12276 # For security reasons, it is highly recommended that you always
12277 # use absolute paths for naming shared libraries, and exclude the
12278 # DT_RUNPATH tag from executables and libraries. But doing so
12279 # requires that you compile everything twice, which is a pain.
12280 # So that behaviour is only enabled if SCOABSPATH is set to a
12281 # non-empty value in the environment. Most likely only useful for
12282 # creating official distributions of packages.
12283 # This is a hack until libtool officially supports absolute path
12284 # names for shared libraries.
12285 no_undefined_flag_CXX='${wl}-z,text'
12286 allow_undefined_flag_CXX='${wl}-z,nodefs'
12287 archive_cmds_need_lc_CXX=no
12288 hardcode_shlibpath_var_CXX=no
12289 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12290 hardcode_libdir_separator_CXX=':'
12291 link_all_deplibs_CXX=yes
12292 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12293 runpath_var='LD_RUN_PATH'
12295 case $cc_basename in
12296 CC*)
12297 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12298 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12301 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12302 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12304 esac
12306 tandem*)
12307 case $cc_basename in
12308 NCC*)
12309 # NonStop-UX NCC 3.20
12310 # FIXME: insert proper C++ library support
12311 ld_shlibs_CXX=no
12314 # FIXME: insert proper C++ library support
12315 ld_shlibs_CXX=no
12317 esac
12319 vxworks*)
12320 # FIXME: insert proper C++ library support
12321 ld_shlibs_CXX=no
12324 # FIXME: insert proper C++ library support
12325 ld_shlibs_CXX=no
12327 esac
12328 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12329 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12330 test "$ld_shlibs_CXX" = no && can_build_shared=no
12332 GCC_CXX="$GXX"
12333 LD_CXX="$LD"
12335 cat > conftest.$ac_ext <<EOF
12336 class Foo
12338 public:
12339 Foo (void) { a = 0; }
12340 private:
12341 int a;
12345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12346 (eval $ac_compile) 2>&5
12347 ac_status=$?
12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 (exit $ac_status); }; then
12350 # Parse the compiler output and extract the necessary
12351 # objects, libraries and library flags.
12353 # Sentinel used to keep track of whether or not we are before
12354 # the conftest object file.
12355 pre_test_object_deps_done=no
12357 # The `*' in the case matches for architectures that use `case' in
12358 # $output_verbose_cmd can trigger glob expansion during the loop
12359 # eval without this substitution.
12360 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12362 for p in `eval $output_verbose_link_cmd`; do
12363 case $p in
12365 -L* | -R* | -l*)
12366 # Some compilers place space between "-{L,R}" and the path.
12367 # Remove the space.
12368 if test $p = "-L" \
12369 || test $p = "-R"; then
12370 prev=$p
12371 continue
12372 else
12373 prev=
12376 if test "$pre_test_object_deps_done" = no; then
12377 case $p in
12378 -L* | -R*)
12379 # Internal compiler library paths should come after those
12380 # provided the user. The postdeps already come after the
12381 # user supplied libs so there is no need to process them.
12382 if test -z "$compiler_lib_search_path_CXX"; then
12383 compiler_lib_search_path_CXX="${prev}${p}"
12384 else
12385 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12388 # The "-l" case would never come before the object being
12389 # linked, so don't bother handling this case.
12390 esac
12391 else
12392 if test -z "$postdeps_CXX"; then
12393 postdeps_CXX="${prev}${p}"
12394 else
12395 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12400 *.$objext)
12401 # This assumes that the test object file only shows up
12402 # once in the compiler output.
12403 if test "$p" = "conftest.$objext"; then
12404 pre_test_object_deps_done=yes
12405 continue
12408 if test "$pre_test_object_deps_done" = no; then
12409 if test -z "$predep_objects_CXX"; then
12410 predep_objects_CXX="$p"
12411 else
12412 predep_objects_CXX="$predep_objects_CXX $p"
12414 else
12415 if test -z "$postdep_objects_CXX"; then
12416 postdep_objects_CXX="$p"
12417 else
12418 postdep_objects_CXX="$postdep_objects_CXX $p"
12423 *) ;; # Ignore the rest.
12425 esac
12426 done
12428 # Clean up.
12429 rm -f a.out a.exe
12430 else
12431 echo "libtool.m4: error: problem compiling CXX test program"
12434 $rm -f confest.$objext
12436 compiler_lib_search_dirs_CXX=
12437 if test -n "$compiler_lib_search_path_CXX"; then
12438 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12441 # PORTME: override above test on systems where it is broken
12442 case $host_os in
12443 interix[3-9]*)
12444 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12445 # hack all around it, let's just trust "g++" to DTRT.
12446 predep_objects_CXX=
12447 postdep_objects_CXX=
12448 postdeps_CXX=
12451 linux*)
12452 case `$CC -V 2>&1 | sed 5q` in
12453 *Sun\ C*)
12454 # Sun C++ 5.9
12456 # The more standards-conforming stlport4 library is
12457 # incompatible with the Cstd library. Avoid specifying
12458 # it if it's in CXXFLAGS. Ignore libCrun as
12459 # -library=stlport4 depends on it.
12460 case " $CXX $CXXFLAGS " in
12461 *" -library=stlport4 "*)
12462 solaris_use_stlport4=yes
12464 esac
12465 if test "$solaris_use_stlport4" != yes; then
12466 postdeps_CXX='-library=Cstd -library=Crun'
12469 esac
12472 solaris*)
12473 case $cc_basename in
12474 CC*)
12475 # The more standards-conforming stlport4 library is
12476 # incompatible with the Cstd library. Avoid specifying
12477 # it if it's in CXXFLAGS. Ignore libCrun as
12478 # -library=stlport4 depends on it.
12479 case " $CXX $CXXFLAGS " in
12480 *" -library=stlport4 "*)
12481 solaris_use_stlport4=yes
12483 esac
12485 # Adding this requires a known-good setup of shared libraries for
12486 # Sun compiler versions before 5.6, else PIC objects from an old
12487 # archive will be linked into the output, leading to subtle bugs.
12488 if test "$solaris_use_stlport4" != yes; then
12489 postdeps_CXX='-library=Cstd -library=Crun'
12492 esac
12494 esac
12496 case " $postdeps_CXX " in
12497 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12498 esac
12500 lt_prog_compiler_wl_CXX=
12501 lt_prog_compiler_pic_CXX=
12502 lt_prog_compiler_static_CXX=
12504 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12505 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12507 # C++ specific cases for pic, static, wl, etc.
12508 if test "$GXX" = yes; then
12509 lt_prog_compiler_wl_CXX='-Wl,'
12510 lt_prog_compiler_static_CXX='-static'
12512 case $host_os in
12513 aix*)
12514 # All AIX code is PIC.
12515 if test "$host_cpu" = ia64; then
12516 # AIX 5 now supports IA64 processor
12517 lt_prog_compiler_static_CXX='-Bstatic'
12520 amigaos*)
12521 # FIXME: we need at least 68020 code to build shared libraries, but
12522 # adding the `-m68020' flag to GCC prevents building anything better,
12523 # like `-m68040'.
12524 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12526 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12527 # PIC is the default for these OSes.
12529 mingw* | cygwin* | os2* | pw32*)
12530 # This hack is so that the source file can tell whether it is being
12531 # built for inclusion in a dll (and should export symbols for example).
12532 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12533 # (--disable-auto-import) libraries
12534 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12536 darwin* | rhapsody*)
12537 # PIC is the default on this platform
12538 # Common symbols not allowed in MH_DYLIB files
12539 lt_prog_compiler_pic_CXX='-fno-common'
12541 *djgpp*)
12542 # DJGPP does not support shared libraries at all
12543 lt_prog_compiler_pic_CXX=
12545 interix[3-9]*)
12546 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12547 # Instead, we relocate shared libraries at runtime.
12549 sysv4*MP*)
12550 if test -d /usr/nec; then
12551 lt_prog_compiler_pic_CXX=-Kconform_pic
12554 hpux*)
12555 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12556 # not for PA HP-UX.
12557 case $host_cpu in
12558 hppa*64*|ia64*)
12561 lt_prog_compiler_pic_CXX='-fPIC'
12563 esac
12566 lt_prog_compiler_pic_CXX='-fPIC'
12568 esac
12569 else
12570 case $host_os in
12571 aix[4-9]*)
12572 # All AIX code is PIC.
12573 if test "$host_cpu" = ia64; then
12574 # AIX 5 now supports IA64 processor
12575 lt_prog_compiler_static_CXX='-Bstatic'
12576 else
12577 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12580 chorus*)
12581 case $cc_basename in
12582 cxch68*)
12583 # Green Hills C++ Compiler
12584 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
12586 esac
12588 darwin*)
12589 # PIC is the default on this platform
12590 # Common symbols not allowed in MH_DYLIB files
12591 case $cc_basename in
12592 xlc*)
12593 lt_prog_compiler_pic_CXX='-qnocommon'
12594 lt_prog_compiler_wl_CXX='-Wl,'
12596 esac
12598 dgux*)
12599 case $cc_basename in
12600 ec++*)
12601 lt_prog_compiler_pic_CXX='-KPIC'
12603 ghcx*)
12604 # Green Hills C++ Compiler
12605 lt_prog_compiler_pic_CXX='-pic'
12609 esac
12611 freebsd* | dragonfly*)
12612 # FreeBSD uses GNU C++
12614 hpux9* | hpux10* | hpux11*)
12615 case $cc_basename in
12616 CC*)
12617 lt_prog_compiler_wl_CXX='-Wl,'
12618 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12619 if test "$host_cpu" != ia64; then
12620 lt_prog_compiler_pic_CXX='+Z'
12623 aCC*)
12624 lt_prog_compiler_wl_CXX='-Wl,'
12625 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12626 case $host_cpu in
12627 hppa*64*|ia64*)
12628 # +Z the default
12631 lt_prog_compiler_pic_CXX='+Z'
12633 esac
12637 esac
12639 interix*)
12640 # This is c89, which is MS Visual C++ (no shared libs)
12641 # Anyone wants to do a port?
12643 irix5* | irix6* | nonstopux*)
12644 case $cc_basename in
12645 CC*)
12646 lt_prog_compiler_wl_CXX='-Wl,'
12647 lt_prog_compiler_static_CXX='-non_shared'
12648 # CC pic flag -KPIC is the default.
12652 esac
12654 linux* | k*bsd*-gnu)
12655 case $cc_basename in
12656 KCC*)
12657 # KAI C++ Compiler
12658 lt_prog_compiler_wl_CXX='--backend -Wl,'
12659 lt_prog_compiler_pic_CXX='-fPIC'
12661 icpc* | ecpc*)
12662 # Intel C++
12663 lt_prog_compiler_wl_CXX='-Wl,'
12664 lt_prog_compiler_pic_CXX='-KPIC'
12665 lt_prog_compiler_static_CXX='-static'
12667 pgCC* | pgcpp*)
12668 # Portland Group C++ compiler.
12669 lt_prog_compiler_wl_CXX='-Wl,'
12670 lt_prog_compiler_pic_CXX='-fpic'
12671 lt_prog_compiler_static_CXX='-Bstatic'
12673 cxx*)
12674 # Compaq C++
12675 # Make sure the PIC flag is empty. It appears that all Alpha
12676 # Linux and Compaq Tru64 Unix objects are PIC.
12677 lt_prog_compiler_pic_CXX=
12678 lt_prog_compiler_static_CXX='-non_shared'
12681 case `$CC -V 2>&1 | sed 5q` in
12682 *Sun\ C*)
12683 # Sun C++ 5.9
12684 lt_prog_compiler_pic_CXX='-KPIC'
12685 lt_prog_compiler_static_CXX='-Bstatic'
12686 lt_prog_compiler_wl_CXX='-Qoption ld '
12688 esac
12690 esac
12692 lynxos*)
12694 m88k*)
12696 mvs*)
12697 case $cc_basename in
12698 cxx*)
12699 lt_prog_compiler_pic_CXX='-W c,exportall'
12703 esac
12705 netbsd*)
12707 osf3* | osf4* | osf5*)
12708 case $cc_basename in
12709 KCC*)
12710 lt_prog_compiler_wl_CXX='--backend -Wl,'
12712 RCC*)
12713 # Rational C++ 2.4.1
12714 lt_prog_compiler_pic_CXX='-pic'
12716 cxx*)
12717 # Digital/Compaq C++
12718 lt_prog_compiler_wl_CXX='-Wl,'
12719 # Make sure the PIC flag is empty. It appears that all Alpha
12720 # Linux and Compaq Tru64 Unix objects are PIC.
12721 lt_prog_compiler_pic_CXX=
12722 lt_prog_compiler_static_CXX='-non_shared'
12726 esac
12728 psos*)
12730 solaris*)
12731 case $cc_basename in
12732 CC*)
12733 # Sun C++ 4.2, 5.x and Centerline C++
12734 lt_prog_compiler_pic_CXX='-KPIC'
12735 lt_prog_compiler_static_CXX='-Bstatic'
12736 lt_prog_compiler_wl_CXX='-Qoption ld '
12738 gcx*)
12739 # Green Hills C++ Compiler
12740 lt_prog_compiler_pic_CXX='-PIC'
12744 esac
12746 sunos4*)
12747 case $cc_basename in
12748 CC*)
12749 # Sun C++ 4.x
12750 lt_prog_compiler_pic_CXX='-pic'
12751 lt_prog_compiler_static_CXX='-Bstatic'
12753 lcc*)
12754 # Lucid
12755 lt_prog_compiler_pic_CXX='-pic'
12759 esac
12761 tandem*)
12762 case $cc_basename in
12763 NCC*)
12764 # NonStop-UX NCC 3.20
12765 lt_prog_compiler_pic_CXX='-KPIC'
12769 esac
12771 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12772 case $cc_basename in
12773 CC*)
12774 lt_prog_compiler_wl_CXX='-Wl,'
12775 lt_prog_compiler_pic_CXX='-KPIC'
12776 lt_prog_compiler_static_CXX='-Bstatic'
12778 esac
12780 vxworks*)
12783 lt_prog_compiler_can_build_shared_CXX=no
12785 esac
12788 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12789 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12792 # Check to make sure the PIC flag actually works.
12794 if test -n "$lt_prog_compiler_pic_CXX"; then
12796 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12797 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12798 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12799 echo $ECHO_N "(cached) $ECHO_C" >&6
12800 else
12801 lt_cv_prog_compiler_pic_works_CXX=no
12802 ac_outfile=conftest.$ac_objext
12803 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12804 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12805 # Insert the option either (1) after the last *FLAGS variable, or
12806 # (2) before a word containing "conftest.", or (3) at the end.
12807 # Note that $ac_compile itself does not contain backslashes and begins
12808 # with a dollar sign (not a hyphen), so the echo should work correctly.
12809 # The option is referenced via a variable to avoid confusing sed.
12810 lt_compile=`echo "$ac_compile" | $SED \
12811 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12812 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12813 -e 's:$: $lt_compiler_flag:'`
12814 (eval echo "\"\$as_me:12814: $lt_compile\"" >&5)
12815 (eval "$lt_compile" 2>conftest.err)
12816 ac_status=$?
12817 cat conftest.err >&5
12818 echo "$as_me:12818: \$? = $ac_status" >&5
12819 if (exit $ac_status) && test -s "$ac_outfile"; then
12820 # The compiler can only warn and ignore the option if not recognized
12821 # So say no if there are warnings other than the usual output.
12822 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12823 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12824 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12825 lt_cv_prog_compiler_pic_works_CXX=yes
12828 $rm conftest*
12831 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12832 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12834 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12835 case $lt_prog_compiler_pic_CXX in
12836 "" | " "*) ;;
12837 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12838 esac
12839 else
12840 lt_prog_compiler_pic_CXX=
12841 lt_prog_compiler_can_build_shared_CXX=no
12845 case $host_os in
12846 # For platforms which do not support PIC, -DPIC is meaningless:
12847 *djgpp*)
12848 lt_prog_compiler_pic_CXX=
12851 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12853 esac
12856 # Check to make sure the static flag actually works.
12858 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12859 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12860 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12861 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12862 echo $ECHO_N "(cached) $ECHO_C" >&6
12863 else
12864 lt_cv_prog_compiler_static_works_CXX=no
12865 save_LDFLAGS="$LDFLAGS"
12866 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12867 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12868 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12869 # The linker can only warn and ignore the option if not recognized
12870 # So say no if there are warnings
12871 if test -s conftest.err; then
12872 # Append any errors to the config.log.
12873 cat conftest.err 1>&5
12874 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12875 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12876 if diff conftest.exp conftest.er2 >/dev/null; then
12877 lt_cv_prog_compiler_static_works_CXX=yes
12879 else
12880 lt_cv_prog_compiler_static_works_CXX=yes
12883 $rm -r conftest*
12884 LDFLAGS="$save_LDFLAGS"
12887 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12888 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12890 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12892 else
12893 lt_prog_compiler_static_CXX=
12897 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12898 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12899 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12900 echo $ECHO_N "(cached) $ECHO_C" >&6
12901 else
12902 lt_cv_prog_compiler_c_o_CXX=no
12903 $rm -r conftest 2>/dev/null
12904 mkdir conftest
12905 cd conftest
12906 mkdir out
12907 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12909 lt_compiler_flag="-o out/conftest2.$ac_objext"
12910 # Insert the option either (1) after the last *FLAGS variable, or
12911 # (2) before a word containing "conftest.", or (3) at the end.
12912 # Note that $ac_compile itself does not contain backslashes and begins
12913 # with a dollar sign (not a hyphen), so the echo should work correctly.
12914 lt_compile=`echo "$ac_compile" | $SED \
12915 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12916 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12917 -e 's:$: $lt_compiler_flag:'`
12918 (eval echo "\"\$as_me:12918: $lt_compile\"" >&5)
12919 (eval "$lt_compile" 2>out/conftest.err)
12920 ac_status=$?
12921 cat out/conftest.err >&5
12922 echo "$as_me:12922: \$? = $ac_status" >&5
12923 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12924 then
12925 # The compiler can only warn and ignore the option if not recognized
12926 # So say no if there are warnings
12927 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12928 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12929 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12930 lt_cv_prog_compiler_c_o_CXX=yes
12933 chmod u+w . 2>&5
12934 $rm conftest*
12935 # SGI C++ compiler will create directory out/ii_files/ for
12936 # template instantiation
12937 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12938 $rm out/* && rmdir out
12939 cd ..
12940 rmdir conftest
12941 $rm conftest*
12944 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12945 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12948 hard_links="nottested"
12949 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12950 # do not overwrite the value of need_locks provided by the user
12951 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12952 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12953 hard_links=yes
12954 $rm conftest*
12955 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12956 touch conftest.a
12957 ln conftest.a conftest.b 2>&5 || hard_links=no
12958 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12959 { echo "$as_me:$LINENO: result: $hard_links" >&5
12960 echo "${ECHO_T}$hard_links" >&6; }
12961 if test "$hard_links" = no; then
12962 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12963 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12964 need_locks=warn
12966 else
12967 need_locks=no
12970 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12971 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12973 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12974 case $host_os in
12975 aix[4-9]*)
12976 # If we're using GNU nm, then we don't want the "-C" option.
12977 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12978 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12979 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'
12980 else
12981 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'
12984 pw32*)
12985 export_symbols_cmds_CXX="$ltdll_cmds"
12987 cygwin* | mingw*)
12988 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'
12991 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12993 esac
12994 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12996 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12997 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12998 test "$ld_shlibs_CXX" = no && can_build_shared=no
13001 # Do we need to explicitly link libc?
13003 case "x$archive_cmds_need_lc_CXX" in
13004 x|xyes)
13005 # Assume -lc should be added
13006 archive_cmds_need_lc_CXX=yes
13008 if test "$enable_shared" = yes && test "$GCC" = yes; then
13009 case $archive_cmds_CXX in
13010 *'~'*)
13011 # FIXME: we may have to deal with multi-command sequences.
13013 '$CC '*)
13014 # Test whether the compiler implicitly links with -lc since on some
13015 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13016 # to ld, don't add -lc before -lgcc.
13017 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13018 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13019 $rm conftest*
13020 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13023 (eval $ac_compile) 2>&5
13024 ac_status=$?
13025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13026 (exit $ac_status); } 2>conftest.err; then
13027 soname=conftest
13028 lib=conftest
13029 libobjs=conftest.$ac_objext
13030 deplibs=
13031 wl=$lt_prog_compiler_wl_CXX
13032 pic_flag=$lt_prog_compiler_pic_CXX
13033 compiler_flags=-v
13034 linker_flags=-v
13035 verstring=
13036 output_objdir=.
13037 libname=conftest
13038 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13039 allow_undefined_flag_CXX=
13040 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13041 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13042 ac_status=$?
13043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044 (exit $ac_status); }
13045 then
13046 archive_cmds_need_lc_CXX=no
13047 else
13048 archive_cmds_need_lc_CXX=yes
13050 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13051 else
13052 cat conftest.err 1>&5
13054 $rm conftest*
13055 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13056 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13058 esac
13061 esac
13063 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13064 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13065 library_names_spec=
13066 libname_spec='lib$name'
13067 soname_spec=
13068 shrext_cmds=".so"
13069 postinstall_cmds=
13070 postuninstall_cmds=
13071 finish_cmds=
13072 finish_eval=
13073 shlibpath_var=
13074 shlibpath_overrides_runpath=unknown
13075 version_type=none
13076 dynamic_linker="$host_os ld.so"
13077 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13079 need_lib_prefix=unknown
13080 hardcode_into_libs=no
13082 # when you set need_version to no, make sure it does not cause -set_version
13083 # flags to be left without arguments
13084 need_version=unknown
13086 case $host_os in
13087 aix3*)
13088 version_type=linux
13089 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13090 shlibpath_var=LIBPATH
13092 # AIX 3 has no versioning support, so we append a major version to the name.
13093 soname_spec='${libname}${release}${shared_ext}$major'
13096 aix[4-9]*)
13097 version_type=linux
13098 need_lib_prefix=no
13099 need_version=no
13100 hardcode_into_libs=yes
13101 if test "$host_cpu" = ia64; then
13102 # AIX 5 supports IA64
13103 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13104 shlibpath_var=LD_LIBRARY_PATH
13105 else
13106 # With GCC up to 2.95.x, collect2 would create an import file
13107 # for dependence libraries. The import file would start with
13108 # the line `#! .'. This would cause the generated library to
13109 # depend on `.', always an invalid library. This was fixed in
13110 # development snapshots of GCC prior to 3.0.
13111 case $host_os in
13112 aix4 | aix4.[01] | aix4.[01].*)
13113 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13114 echo ' yes '
13115 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13117 else
13118 can_build_shared=no
13121 esac
13122 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13123 # soname into executable. Probably we can add versioning support to
13124 # collect2, so additional links can be useful in future.
13125 if test "$aix_use_runtimelinking" = yes; then
13126 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13127 # instead of lib<name>.a to let people know that these are not
13128 # typical AIX shared libraries.
13129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13130 else
13131 # We preserve .a as extension for shared libraries through AIX4.2
13132 # and later when we are not doing run time linking.
13133 library_names_spec='${libname}${release}.a $libname.a'
13134 soname_spec='${libname}${release}${shared_ext}$major'
13136 shlibpath_var=LIBPATH
13140 amigaos*)
13141 library_names_spec='$libname.ixlibrary $libname.a'
13142 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13143 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'
13146 beos*)
13147 library_names_spec='${libname}${shared_ext}'
13148 dynamic_linker="$host_os ld.so"
13149 shlibpath_var=LIBRARY_PATH
13152 bsdi[45]*)
13153 version_type=linux
13154 need_version=no
13155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13156 soname_spec='${libname}${release}${shared_ext}$major'
13157 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13158 shlibpath_var=LD_LIBRARY_PATH
13159 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13160 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13161 # the default ld.so.conf also contains /usr/contrib/lib and
13162 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13163 # libtool to hard-code these into programs
13166 cygwin* | mingw* | pw32*)
13167 version_type=windows
13168 shrext_cmds=".dll"
13169 need_version=no
13170 need_lib_prefix=no
13172 case $GCC,$host_os in
13173 yes,cygwin* | yes,mingw* | yes,pw32*)
13174 library_names_spec='$libname.dll.a'
13175 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13176 postinstall_cmds='base_file=`basename \${file}`~
13177 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13178 dldir=$destdir/`dirname \$dlpath`~
13179 test -d \$dldir || mkdir -p \$dldir~
13180 $install_prog $dir/$dlname \$dldir/$dlname~
13181 chmod a+x \$dldir/$dlname'
13182 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13183 dlpath=$dir/\$dldll~
13184 $rm \$dlpath'
13185 shlibpath_overrides_runpath=yes
13187 case $host_os in
13188 cygwin*)
13189 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13190 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13191 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13193 mingw*)
13194 # MinGW DLLs use traditional 'lib' prefix
13195 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13196 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13197 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13198 # It is most probably a Windows format PATH printed by
13199 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13200 # path with ; separators, and with drive letters. We can handle the
13201 # drive letters (cygwin fileutils understands them), so leave them,
13202 # especially as we might pass files found there to a mingw objdump,
13203 # which wouldn't understand a cygwinified path. Ahh.
13204 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13205 else
13206 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13209 pw32*)
13210 # pw32 DLLs use 'pw' prefix rather than 'lib'
13211 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13213 esac
13217 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13219 esac
13220 dynamic_linker='Win32 ld.exe'
13221 # FIXME: first we should search . and the directory the executable is in
13222 shlibpath_var=PATH
13225 darwin* | rhapsody*)
13226 dynamic_linker="$host_os dyld"
13227 version_type=darwin
13228 need_lib_prefix=no
13229 need_version=no
13230 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13231 soname_spec='${libname}${release}${major}$shared_ext'
13232 shlibpath_overrides_runpath=yes
13233 shlibpath_var=DYLD_LIBRARY_PATH
13234 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13236 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13239 dgux*)
13240 version_type=linux
13241 need_lib_prefix=no
13242 need_version=no
13243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13244 soname_spec='${libname}${release}${shared_ext}$major'
13245 shlibpath_var=LD_LIBRARY_PATH
13248 freebsd1*)
13249 dynamic_linker=no
13252 freebsd* | dragonfly*)
13253 # DragonFly does not have aout. When/if they implement a new
13254 # versioning mechanism, adjust this.
13255 if test -x /usr/bin/objformat; then
13256 objformat=`/usr/bin/objformat`
13257 else
13258 case $host_os in
13259 freebsd[123]*) objformat=aout ;;
13260 *) objformat=elf ;;
13261 esac
13263 version_type=freebsd-$objformat
13264 case $version_type in
13265 freebsd-elf*)
13266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13267 need_version=no
13268 need_lib_prefix=no
13270 freebsd-*)
13271 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13272 need_version=yes
13274 esac
13275 shlibpath_var=LD_LIBRARY_PATH
13276 case $host_os in
13277 freebsd2*)
13278 shlibpath_overrides_runpath=yes
13280 freebsd3.[01]* | freebsdelf3.[01]*)
13281 shlibpath_overrides_runpath=yes
13282 hardcode_into_libs=yes
13284 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13285 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13286 shlibpath_overrides_runpath=no
13287 hardcode_into_libs=yes
13289 *) # from 4.6 on, and DragonFly
13290 shlibpath_overrides_runpath=yes
13291 hardcode_into_libs=yes
13293 esac
13296 gnu*)
13297 version_type=linux
13298 need_lib_prefix=no
13299 need_version=no
13300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13301 soname_spec='${libname}${release}${shared_ext}$major'
13302 shlibpath_var=LD_LIBRARY_PATH
13303 hardcode_into_libs=yes
13306 hpux9* | hpux10* | hpux11*)
13307 # Give a soname corresponding to the major version so that dld.sl refuses to
13308 # link against other versions.
13309 version_type=sunos
13310 need_lib_prefix=no
13311 need_version=no
13312 case $host_cpu in
13313 ia64*)
13314 shrext_cmds='.so'
13315 hardcode_into_libs=yes
13316 dynamic_linker="$host_os dld.so"
13317 shlibpath_var=LD_LIBRARY_PATH
13318 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13320 soname_spec='${libname}${release}${shared_ext}$major'
13321 if test "X$HPUX_IA64_MODE" = X32; then
13322 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13323 else
13324 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13326 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13328 hppa*64*)
13329 shrext_cmds='.sl'
13330 hardcode_into_libs=yes
13331 dynamic_linker="$host_os dld.sl"
13332 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13333 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13335 soname_spec='${libname}${release}${shared_ext}$major'
13336 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13337 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13340 shrext_cmds='.sl'
13341 dynamic_linker="$host_os dld.sl"
13342 shlibpath_var=SHLIB_PATH
13343 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13345 soname_spec='${libname}${release}${shared_ext}$major'
13347 esac
13348 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13349 postinstall_cmds='chmod 555 $lib'
13352 interix[3-9]*)
13353 version_type=linux
13354 need_lib_prefix=no
13355 need_version=no
13356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13357 soname_spec='${libname}${release}${shared_ext}$major'
13358 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13359 shlibpath_var=LD_LIBRARY_PATH
13360 shlibpath_overrides_runpath=no
13361 hardcode_into_libs=yes
13364 irix5* | irix6* | nonstopux*)
13365 case $host_os in
13366 nonstopux*) version_type=nonstopux ;;
13368 if test "$lt_cv_prog_gnu_ld" = yes; then
13369 version_type=linux
13370 else
13371 version_type=irix
13372 fi ;;
13373 esac
13374 need_lib_prefix=no
13375 need_version=no
13376 soname_spec='${libname}${release}${shared_ext}$major'
13377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13378 case $host_os in
13379 irix5* | nonstopux*)
13380 libsuff= shlibsuff=
13383 case $LD in # libtool.m4 will add one of these switches to LD
13384 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13385 libsuff= shlibsuff= libmagic=32-bit;;
13386 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13387 libsuff=32 shlibsuff=N32 libmagic=N32;;
13388 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13389 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13390 *) libsuff= shlibsuff= libmagic=never-match;;
13391 esac
13393 esac
13394 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13395 shlibpath_overrides_runpath=no
13396 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13397 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13398 hardcode_into_libs=yes
13401 # No shared lib support for Linux oldld, aout, or coff.
13402 linux*oldld* | linux*aout* | linux*coff*)
13403 dynamic_linker=no
13406 # This must be Linux ELF.
13407 linux* | k*bsd*-gnu)
13408 version_type=linux
13409 need_lib_prefix=no
13410 need_version=no
13411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13412 soname_spec='${libname}${release}${shared_ext}$major'
13413 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13414 shlibpath_var=LD_LIBRARY_PATH
13415 shlibpath_overrides_runpath=no
13416 # This implies no fast_install, which is unacceptable.
13417 # Some rework will be needed to allow for fast_install
13418 # before this can be enabled.
13419 hardcode_into_libs=yes
13421 # Append ld.so.conf contents to the search path
13422 if test -f /etc/ld.so.conf; then
13423 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' ' '`
13424 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13427 # We used to test for /lib/ld.so.1 and disable shared libraries on
13428 # powerpc, because MkLinux only supported shared libraries with the
13429 # GNU dynamic linker. Since this was broken with cross compilers,
13430 # most powerpc-linux boxes support dynamic linking these days and
13431 # people can always --disable-shared, the test was removed, and we
13432 # assume the GNU/Linux dynamic linker is in use.
13433 dynamic_linker='GNU/Linux ld.so'
13436 netbsd*)
13437 version_type=sunos
13438 need_lib_prefix=no
13439 need_version=no
13440 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13442 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13443 dynamic_linker='NetBSD (a.out) ld.so'
13444 else
13445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13446 soname_spec='${libname}${release}${shared_ext}$major'
13447 dynamic_linker='NetBSD ld.elf_so'
13449 shlibpath_var=LD_LIBRARY_PATH
13450 shlibpath_overrides_runpath=yes
13451 hardcode_into_libs=yes
13454 newsos6)
13455 version_type=linux
13456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13457 shlibpath_var=LD_LIBRARY_PATH
13458 shlibpath_overrides_runpath=yes
13461 nto-qnx*)
13462 version_type=linux
13463 need_lib_prefix=no
13464 need_version=no
13465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13466 soname_spec='${libname}${release}${shared_ext}$major'
13467 shlibpath_var=LD_LIBRARY_PATH
13468 shlibpath_overrides_runpath=yes
13471 openbsd*)
13472 version_type=sunos
13473 sys_lib_dlsearch_path_spec="/usr/lib"
13474 need_lib_prefix=no
13475 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13476 case $host_os in
13477 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13478 *) need_version=no ;;
13479 esac
13480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13481 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13482 shlibpath_var=LD_LIBRARY_PATH
13483 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13484 case $host_os in
13485 openbsd2.[89] | openbsd2.[89].*)
13486 shlibpath_overrides_runpath=no
13489 shlibpath_overrides_runpath=yes
13491 esac
13492 else
13493 shlibpath_overrides_runpath=yes
13497 os2*)
13498 libname_spec='$name'
13499 shrext_cmds=".dll"
13500 need_lib_prefix=no
13501 library_names_spec='$libname${shared_ext} $libname.a'
13502 dynamic_linker='OS/2 ld.exe'
13503 shlibpath_var=LIBPATH
13506 osf3* | osf4* | osf5*)
13507 version_type=osf
13508 need_lib_prefix=no
13509 need_version=no
13510 soname_spec='${libname}${release}${shared_ext}$major'
13511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13512 shlibpath_var=LD_LIBRARY_PATH
13513 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13514 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13517 rdos*)
13518 dynamic_linker=no
13521 solaris*)
13522 version_type=linux
13523 need_lib_prefix=no
13524 need_version=no
13525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13526 soname_spec='${libname}${release}${shared_ext}$major'
13527 shlibpath_var=LD_LIBRARY_PATH
13528 shlibpath_overrides_runpath=yes
13529 hardcode_into_libs=yes
13530 # ldd complains unless libraries are executable
13531 postinstall_cmds='chmod +x $lib'
13534 sunos4*)
13535 version_type=sunos
13536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13537 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13538 shlibpath_var=LD_LIBRARY_PATH
13539 shlibpath_overrides_runpath=yes
13540 if test "$with_gnu_ld" = yes; then
13541 need_lib_prefix=no
13543 need_version=yes
13546 sysv4 | sysv4.3*)
13547 version_type=linux
13548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13549 soname_spec='${libname}${release}${shared_ext}$major'
13550 shlibpath_var=LD_LIBRARY_PATH
13551 case $host_vendor in
13552 sni)
13553 shlibpath_overrides_runpath=no
13554 need_lib_prefix=no
13555 export_dynamic_flag_spec='${wl}-Blargedynsym'
13556 runpath_var=LD_RUN_PATH
13558 siemens)
13559 need_lib_prefix=no
13561 motorola)
13562 need_lib_prefix=no
13563 need_version=no
13564 shlibpath_overrides_runpath=no
13565 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13567 esac
13570 sysv4*MP*)
13571 if test -d /usr/nec ;then
13572 version_type=linux
13573 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13574 soname_spec='$libname${shared_ext}.$major'
13575 shlibpath_var=LD_LIBRARY_PATH
13579 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13580 version_type=freebsd-elf
13581 need_lib_prefix=no
13582 need_version=no
13583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13584 soname_spec='${libname}${release}${shared_ext}$major'
13585 shlibpath_var=LD_LIBRARY_PATH
13586 hardcode_into_libs=yes
13587 if test "$with_gnu_ld" = yes; then
13588 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13589 shlibpath_overrides_runpath=no
13590 else
13591 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13592 shlibpath_overrides_runpath=yes
13593 case $host_os in
13594 sco3.2v5*)
13595 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13597 esac
13599 sys_lib_dlsearch_path_spec='/usr/lib'
13602 uts4*)
13603 version_type=linux
13604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13605 soname_spec='${libname}${release}${shared_ext}$major'
13606 shlibpath_var=LD_LIBRARY_PATH
13610 dynamic_linker=no
13612 esac
13613 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13614 echo "${ECHO_T}$dynamic_linker" >&6; }
13615 test "$dynamic_linker" = no && can_build_shared=no
13617 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13618 echo $ECHO_N "(cached) $ECHO_C" >&6
13619 else
13620 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13623 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13624 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13625 echo $ECHO_N "(cached) $ECHO_C" >&6
13626 else
13627 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13630 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13632 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13633 if test "$GCC" = yes; then
13634 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13637 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13638 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13639 hardcode_action_CXX=
13640 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13641 test -n "$runpath_var_CXX" || \
13642 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13644 # We can hardcode non-existant directories.
13645 if test "$hardcode_direct_CXX" != no &&
13646 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13647 # have to relink, otherwise we might link with an installed library
13648 # when we should be linking with a yet-to-be-installed one
13649 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13650 test "$hardcode_minus_L_CXX" != no; then
13651 # Linking always hardcodes the temporary library directory.
13652 hardcode_action_CXX=relink
13653 else
13654 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13655 hardcode_action_CXX=immediate
13657 else
13658 # We cannot hardcode anything, or else we can only hardcode existing
13659 # directories.
13660 hardcode_action_CXX=unsupported
13662 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13663 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13665 if test "$hardcode_action_CXX" = relink; then
13666 # Fast installation is not supported
13667 enable_fast_install=no
13668 elif test "$shlibpath_overrides_runpath" = yes ||
13669 test "$enable_shared" = no; then
13670 # Fast installation is not necessary
13671 enable_fast_install=needless
13675 # The else clause should only fire when bootstrapping the
13676 # libtool distribution, otherwise you forgot to ship ltmain.sh
13677 # with your package, and you will get complaints that there are
13678 # no rules to generate ltmain.sh.
13679 if test -f "$ltmain"; then
13680 # See if we are running on zsh, and set the options which allow our commands through
13681 # without removal of \ escapes.
13682 if test -n "${ZSH_VERSION+set}" ; then
13683 setopt NO_GLOB_SUBST
13685 # Now quote all the things that may contain metacharacters while being
13686 # careful not to overquote the AC_SUBSTed values. We take copies of the
13687 # variables and quote the copies for generation of the libtool script.
13688 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13689 SED SHELL STRIP \
13690 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13691 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13692 deplibs_check_method reload_flag reload_cmds need_locks \
13693 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13694 lt_cv_sys_global_symbol_to_c_name_address \
13695 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13696 old_postinstall_cmds old_postuninstall_cmds \
13697 compiler_CXX \
13698 CC_CXX \
13699 LD_CXX \
13700 lt_prog_compiler_wl_CXX \
13701 lt_prog_compiler_pic_CXX \
13702 lt_prog_compiler_static_CXX \
13703 lt_prog_compiler_no_builtin_flag_CXX \
13704 export_dynamic_flag_spec_CXX \
13705 thread_safe_flag_spec_CXX \
13706 whole_archive_flag_spec_CXX \
13707 enable_shared_with_static_runtimes_CXX \
13708 old_archive_cmds_CXX \
13709 old_archive_from_new_cmds_CXX \
13710 predep_objects_CXX \
13711 postdep_objects_CXX \
13712 predeps_CXX \
13713 postdeps_CXX \
13714 compiler_lib_search_path_CXX \
13715 compiler_lib_search_dirs_CXX \
13716 archive_cmds_CXX \
13717 archive_expsym_cmds_CXX \
13718 postinstall_cmds_CXX \
13719 postuninstall_cmds_CXX \
13720 old_archive_from_expsyms_cmds_CXX \
13721 allow_undefined_flag_CXX \
13722 no_undefined_flag_CXX \
13723 export_symbols_cmds_CXX \
13724 hardcode_libdir_flag_spec_CXX \
13725 hardcode_libdir_flag_spec_ld_CXX \
13726 hardcode_libdir_separator_CXX \
13727 hardcode_automatic_CXX \
13728 module_cmds_CXX \
13729 module_expsym_cmds_CXX \
13730 lt_cv_prog_compiler_c_o_CXX \
13731 fix_srcfile_path_CXX \
13732 exclude_expsyms_CXX \
13733 include_expsyms_CXX; do
13735 case $var in
13736 old_archive_cmds_CXX | \
13737 old_archive_from_new_cmds_CXX | \
13738 archive_cmds_CXX | \
13739 archive_expsym_cmds_CXX | \
13740 module_cmds_CXX | \
13741 module_expsym_cmds_CXX | \
13742 old_archive_from_expsyms_cmds_CXX | \
13743 export_symbols_cmds_CXX | \
13744 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13745 postinstall_cmds | postuninstall_cmds | \
13746 old_postinstall_cmds | old_postuninstall_cmds | \
13747 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13748 # Double-quote double-evaled strings.
13749 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13752 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13754 esac
13755 done
13757 case $lt_echo in
13758 *'\$0 --fallback-echo"')
13759 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13761 esac
13763 cfgfile="$ofile"
13765 cat <<__EOF__ >> "$cfgfile"
13766 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13768 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13770 # Shell to use when invoking shell scripts.
13771 SHELL=$lt_SHELL
13773 # Whether or not to build shared libraries.
13774 build_libtool_libs=$enable_shared
13776 # Whether or not to build static libraries.
13777 build_old_libs=$enable_static
13779 # Whether or not to add -lc for building shared libraries.
13780 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13782 # Whether or not to disallow shared libs when runtime libs are static
13783 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13785 # Whether or not to optimize for fast installation.
13786 fast_install=$enable_fast_install
13788 # The host system.
13789 host_alias=$host_alias
13790 host=$host
13791 host_os=$host_os
13793 # The build system.
13794 build_alias=$build_alias
13795 build=$build
13796 build_os=$build_os
13798 # An echo program that does not interpret backslashes.
13799 echo=$lt_echo
13801 # The archiver.
13802 AR=$lt_AR
13803 AR_FLAGS=$lt_AR_FLAGS
13805 # A C compiler.
13806 LTCC=$lt_LTCC
13808 # LTCC compiler flags.
13809 LTCFLAGS=$lt_LTCFLAGS
13811 # A language-specific compiler.
13812 CC=$lt_compiler_CXX
13814 # Is the compiler the GNU C compiler?
13815 with_gcc=$GCC_CXX
13817 # An ERE matcher.
13818 EGREP=$lt_EGREP
13820 # The linker used to build libraries.
13821 LD=$lt_LD_CXX
13823 # Whether we need hard or soft links.
13824 LN_S=$lt_LN_S
13826 # A BSD-compatible nm program.
13827 NM=$lt_NM
13829 # A symbol stripping program
13830 STRIP=$lt_STRIP
13832 # Used to examine libraries when file_magic_cmd begins "file"
13833 MAGIC_CMD=$MAGIC_CMD
13835 # Used on cygwin: DLL creation program.
13836 DLLTOOL="$DLLTOOL"
13838 # Used on cygwin: object dumper.
13839 OBJDUMP="$OBJDUMP"
13841 # Used on cygwin: assembler.
13842 AS="$AS"
13844 # The name of the directory that contains temporary libtool files.
13845 objdir=$objdir
13847 # How to create reloadable object files.
13848 reload_flag=$lt_reload_flag
13849 reload_cmds=$lt_reload_cmds
13851 # How to pass a linker flag through the compiler.
13852 wl=$lt_lt_prog_compiler_wl_CXX
13854 # Object file suffix (normally "o").
13855 objext="$ac_objext"
13857 # Old archive suffix (normally "a").
13858 libext="$libext"
13860 # Shared library suffix (normally ".so").
13861 shrext_cmds='$shrext_cmds'
13863 # Executable file suffix (normally "").
13864 exeext="$exeext"
13866 # Additional compiler flags for building library objects.
13867 pic_flag=$lt_lt_prog_compiler_pic_CXX
13868 pic_mode=$pic_mode
13870 # What is the maximum length of a command?
13871 max_cmd_len=$lt_cv_sys_max_cmd_len
13873 # Does compiler simultaneously support -c and -o options?
13874 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13876 # Must we lock files when doing compilation?
13877 need_locks=$lt_need_locks
13879 # Do we need the lib prefix for modules?
13880 need_lib_prefix=$need_lib_prefix
13882 # Do we need a version for libraries?
13883 need_version=$need_version
13885 # Whether dlopen is supported.
13886 dlopen_support=$enable_dlopen
13888 # Whether dlopen of programs is supported.
13889 dlopen_self=$enable_dlopen_self
13891 # Whether dlopen of statically linked programs is supported.
13892 dlopen_self_static=$enable_dlopen_self_static
13894 # Compiler flag to prevent dynamic linking.
13895 link_static_flag=$lt_lt_prog_compiler_static_CXX
13897 # Compiler flag to turn off builtin functions.
13898 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13900 # Compiler flag to allow reflexive dlopens.
13901 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13903 # Compiler flag to generate shared objects directly from archives.
13904 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13906 # Compiler flag to generate thread-safe objects.
13907 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13909 # Library versioning type.
13910 version_type=$version_type
13912 # Format of library name prefix.
13913 libname_spec=$lt_libname_spec
13915 # List of archive names. First name is the real one, the rest are links.
13916 # The last name is the one that the linker finds with -lNAME.
13917 library_names_spec=$lt_library_names_spec
13919 # The coded name of the library, if different from the real name.
13920 soname_spec=$lt_soname_spec
13922 # Commands used to build and install an old-style archive.
13923 RANLIB=$lt_RANLIB
13924 old_archive_cmds=$lt_old_archive_cmds_CXX
13925 old_postinstall_cmds=$lt_old_postinstall_cmds
13926 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13928 # Create an old-style archive from a shared archive.
13929 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13931 # Create a temporary old-style archive to link instead of a shared archive.
13932 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13934 # Commands used to build and install a shared archive.
13935 archive_cmds=$lt_archive_cmds_CXX
13936 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13937 postinstall_cmds=$lt_postinstall_cmds
13938 postuninstall_cmds=$lt_postuninstall_cmds
13940 # Commands used to build a loadable module (assumed same as above if empty)
13941 module_cmds=$lt_module_cmds_CXX
13942 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13944 # Commands to strip libraries.
13945 old_striplib=$lt_old_striplib
13946 striplib=$lt_striplib
13948 # Dependencies to place before the objects being linked to create a
13949 # shared library.
13950 predep_objects=$lt_predep_objects_CXX
13952 # Dependencies to place after the objects being linked to create a
13953 # shared library.
13954 postdep_objects=$lt_postdep_objects_CXX
13956 # Dependencies to place before the objects being linked to create a
13957 # shared library.
13958 predeps=$lt_predeps_CXX
13960 # Dependencies to place after the objects being linked to create a
13961 # shared library.
13962 postdeps=$lt_postdeps_CXX
13964 # The directories searched by this compiler when creating a shared
13965 # library
13966 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13968 # The library search path used internally by the compiler when linking
13969 # a shared library.
13970 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13972 # Method to check whether dependent libraries are shared objects.
13973 deplibs_check_method=$lt_deplibs_check_method
13975 # Command to use when deplibs_check_method == file_magic.
13976 file_magic_cmd=$lt_file_magic_cmd
13978 # Flag that allows shared libraries with undefined symbols to be built.
13979 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13981 # Flag that forces no undefined symbols.
13982 no_undefined_flag=$lt_no_undefined_flag_CXX
13984 # Commands used to finish a libtool library installation in a directory.
13985 finish_cmds=$lt_finish_cmds
13987 # Same as above, but a single script fragment to be evaled but not shown.
13988 finish_eval=$lt_finish_eval
13990 # Take the output of nm and produce a listing of raw symbols and C names.
13991 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13993 # Transform the output of nm in a proper C declaration
13994 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13996 # Transform the output of nm in a C name address pair
13997 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13999 # This is the shared library runtime path variable.
14000 runpath_var=$runpath_var
14002 # This is the shared library path variable.
14003 shlibpath_var=$shlibpath_var
14005 # Is shlibpath searched before the hard-coded library search path?
14006 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14008 # How to hardcode a shared library path into an executable.
14009 hardcode_action=$hardcode_action_CXX
14011 # Whether we should hardcode library paths into libraries.
14012 hardcode_into_libs=$hardcode_into_libs
14014 # Flag to hardcode \$libdir into a binary during linking.
14015 # This must work even if \$libdir does not exist.
14016 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14018 # If ld is used when linking, flag to hardcode \$libdir into
14019 # a binary during linking. This must work even if \$libdir does
14020 # not exist.
14021 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14023 # Whether we need a single -rpath flag with a separated argument.
14024 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14026 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14027 # resulting binary.
14028 hardcode_direct=$hardcode_direct_CXX
14030 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14031 # resulting binary.
14032 hardcode_minus_L=$hardcode_minus_L_CXX
14034 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14035 # the resulting binary.
14036 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14038 # Set to yes if building a shared library automatically hardcodes DIR into the library
14039 # and all subsequent libraries and executables linked against it.
14040 hardcode_automatic=$hardcode_automatic_CXX
14042 # Variables whose values should be saved in libtool wrapper scripts and
14043 # restored at relink time.
14044 variables_saved_for_relink="$variables_saved_for_relink"
14046 # Whether libtool must link a program against all its dependency libraries.
14047 link_all_deplibs=$link_all_deplibs_CXX
14049 # Compile-time system search path for libraries
14050 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14052 # Run-time system search path for libraries
14053 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14055 # Fix the shell variable \$srcfile for the compiler.
14056 fix_srcfile_path=$lt_fix_srcfile_path
14058 # Set to yes if exported symbols are required.
14059 always_export_symbols=$always_export_symbols_CXX
14061 # The commands to list exported symbols.
14062 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14064 # The commands to extract the exported symbol list from a shared archive.
14065 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14067 # Symbols that should not be listed in the preloaded symbols.
14068 exclude_expsyms=$lt_exclude_expsyms_CXX
14070 # Symbols that must always be exported.
14071 include_expsyms=$lt_include_expsyms_CXX
14073 # ### END LIBTOOL TAG CONFIG: $tagname
14075 __EOF__
14078 else
14079 # If there is no Makefile yet, we rely on a make rule to execute
14080 # `config.status --recheck' to rerun these tests and create the
14081 # libtool script then.
14082 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14083 if test -f "$ltmain_in"; then
14084 test -f Makefile && make "$ltmain"
14089 ac_ext=c
14090 ac_cpp='$CPP $CPPFLAGS'
14091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14095 CC=$lt_save_CC
14096 LDCXX=$LD
14097 LD=$lt_save_LD
14098 GCC=$lt_save_GCC
14099 with_gnu_ldcxx=$with_gnu_ld
14100 with_gnu_ld=$lt_save_with_gnu_ld
14101 lt_cv_path_LDCXX=$lt_cv_path_LD
14102 lt_cv_path_LD=$lt_save_path_LD
14103 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14104 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14106 else
14107 tagname=""
14111 F77)
14112 if test -n "$F77" && test "X$F77" != "Xno"; then
14114 ac_ext=f
14115 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14116 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14117 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14120 archive_cmds_need_lc_F77=no
14121 allow_undefined_flag_F77=
14122 always_export_symbols_F77=no
14123 archive_expsym_cmds_F77=
14124 export_dynamic_flag_spec_F77=
14125 hardcode_direct_F77=no
14126 hardcode_libdir_flag_spec_F77=
14127 hardcode_libdir_flag_spec_ld_F77=
14128 hardcode_libdir_separator_F77=
14129 hardcode_minus_L_F77=no
14130 hardcode_automatic_F77=no
14131 module_cmds_F77=
14132 module_expsym_cmds_F77=
14133 link_all_deplibs_F77=unknown
14134 old_archive_cmds_F77=$old_archive_cmds
14135 no_undefined_flag_F77=
14136 whole_archive_flag_spec_F77=
14137 enable_shared_with_static_runtimes_F77=no
14139 # Source file extension for f77 test sources.
14140 ac_ext=f
14142 # Object file extension for compiled f77 test sources.
14143 objext=o
14144 objext_F77=$objext
14146 # Code to be used in simple compile tests
14147 lt_simple_compile_test_code="\
14148 subroutine t
14149 return
14153 # Code to be used in simple link tests
14154 lt_simple_link_test_code="\
14155 program t
14159 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14161 # If no C compiler was specified, use CC.
14162 LTCC=${LTCC-"$CC"}
14164 # If no C compiler flags were specified, use CFLAGS.
14165 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14167 # Allow CC to be a program name with arguments.
14168 compiler=$CC
14171 # save warnings/boilerplate of simple test code
14172 ac_outfile=conftest.$ac_objext
14173 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14174 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14175 _lt_compiler_boilerplate=`cat conftest.err`
14176 $rm conftest*
14178 ac_outfile=conftest.$ac_objext
14179 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14180 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14181 _lt_linker_boilerplate=`cat conftest.err`
14182 $rm -r conftest*
14185 # Allow CC to be a program name with arguments.
14186 lt_save_CC="$CC"
14187 CC=${F77-"f77"}
14188 compiler=$CC
14189 compiler_F77=$CC
14190 for cc_temp in $compiler""; do
14191 case $cc_temp in
14192 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14193 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14194 \-*) ;;
14195 *) break;;
14196 esac
14197 done
14198 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14201 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14202 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14203 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14204 echo "${ECHO_T}$can_build_shared" >&6; }
14206 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14207 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14208 test "$can_build_shared" = "no" && enable_shared=no
14210 # On AIX, shared libraries and static libraries use the same namespace, and
14211 # are all built from PIC.
14212 case $host_os in
14213 aix3*)
14214 test "$enable_shared" = yes && enable_static=no
14215 if test -n "$RANLIB"; then
14216 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14217 postinstall_cmds='$RANLIB $lib'
14220 aix[4-9]*)
14221 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14222 test "$enable_shared" = yes && enable_static=no
14225 esac
14226 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14227 echo "${ECHO_T}$enable_shared" >&6; }
14229 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14230 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14231 # Make sure either enable_shared or enable_static is yes.
14232 test "$enable_shared" = yes || enable_static=yes
14233 { echo "$as_me:$LINENO: result: $enable_static" >&5
14234 echo "${ECHO_T}$enable_static" >&6; }
14236 GCC_F77="$G77"
14237 LD_F77="$LD"
14239 lt_prog_compiler_wl_F77=
14240 lt_prog_compiler_pic_F77=
14241 lt_prog_compiler_static_F77=
14243 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14244 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14246 if test "$GCC" = yes; then
14247 lt_prog_compiler_wl_F77='-Wl,'
14248 lt_prog_compiler_static_F77='-static'
14250 case $host_os in
14251 aix*)
14252 # All AIX code is PIC.
14253 if test "$host_cpu" = ia64; then
14254 # AIX 5 now supports IA64 processor
14255 lt_prog_compiler_static_F77='-Bstatic'
14259 amigaos*)
14260 # FIXME: we need at least 68020 code to build shared libraries, but
14261 # adding the `-m68020' flag to GCC prevents building anything better,
14262 # like `-m68040'.
14263 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14266 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14267 # PIC is the default for these OSes.
14270 mingw* | cygwin* | pw32* | os2*)
14271 # This hack is so that the source file can tell whether it is being
14272 # built for inclusion in a dll (and should export symbols for example).
14273 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14274 # (--disable-auto-import) libraries
14275 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14278 darwin* | rhapsody*)
14279 # PIC is the default on this platform
14280 # Common symbols not allowed in MH_DYLIB files
14281 lt_prog_compiler_pic_F77='-fno-common'
14284 interix[3-9]*)
14285 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14286 # Instead, we relocate shared libraries at runtime.
14289 msdosdjgpp*)
14290 # Just because we use GCC doesn't mean we suddenly get shared libraries
14291 # on systems that don't support them.
14292 lt_prog_compiler_can_build_shared_F77=no
14293 enable_shared=no
14296 sysv4*MP*)
14297 if test -d /usr/nec; then
14298 lt_prog_compiler_pic_F77=-Kconform_pic
14302 hpux*)
14303 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14304 # not for PA HP-UX.
14305 case $host_cpu in
14306 hppa*64*|ia64*)
14307 # +Z the default
14310 lt_prog_compiler_pic_F77='-fPIC'
14312 esac
14316 lt_prog_compiler_pic_F77='-fPIC'
14318 esac
14319 else
14320 # PORTME Check for flag to pass linker flags through the system compiler.
14321 case $host_os in
14322 aix*)
14323 lt_prog_compiler_wl_F77='-Wl,'
14324 if test "$host_cpu" = ia64; then
14325 # AIX 5 now supports IA64 processor
14326 lt_prog_compiler_static_F77='-Bstatic'
14327 else
14328 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14331 darwin*)
14332 # PIC is the default on this platform
14333 # Common symbols not allowed in MH_DYLIB files
14334 case $cc_basename in
14335 xlc*)
14336 lt_prog_compiler_pic_F77='-qnocommon'
14337 lt_prog_compiler_wl_F77='-Wl,'
14339 esac
14342 mingw* | cygwin* | pw32* | os2*)
14343 # This hack is so that the source file can tell whether it is being
14344 # built for inclusion in a dll (and should export symbols for example).
14345 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14348 hpux9* | hpux10* | hpux11*)
14349 lt_prog_compiler_wl_F77='-Wl,'
14350 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14351 # not for PA HP-UX.
14352 case $host_cpu in
14353 hppa*64*|ia64*)
14354 # +Z the default
14357 lt_prog_compiler_pic_F77='+Z'
14359 esac
14360 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14361 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14364 irix5* | irix6* | nonstopux*)
14365 lt_prog_compiler_wl_F77='-Wl,'
14366 # PIC (with -KPIC) is the default.
14367 lt_prog_compiler_static_F77='-non_shared'
14370 newsos6)
14371 lt_prog_compiler_pic_F77='-KPIC'
14372 lt_prog_compiler_static_F77='-Bstatic'
14375 linux* | k*bsd*-gnu)
14376 case $cc_basename in
14377 icc* | ecc*)
14378 lt_prog_compiler_wl_F77='-Wl,'
14379 lt_prog_compiler_pic_F77='-KPIC'
14380 lt_prog_compiler_static_F77='-static'
14382 pgcc* | pgf77* | pgf90* | pgf95*)
14383 # Portland Group compilers (*not* the Pentium gcc compiler,
14384 # which looks to be a dead project)
14385 lt_prog_compiler_wl_F77='-Wl,'
14386 lt_prog_compiler_pic_F77='-fpic'
14387 lt_prog_compiler_static_F77='-Bstatic'
14389 ccc*)
14390 lt_prog_compiler_wl_F77='-Wl,'
14391 # All Alpha code is PIC.
14392 lt_prog_compiler_static_F77='-non_shared'
14395 case `$CC -V 2>&1 | sed 5q` in
14396 *Sun\ C*)
14397 # Sun C 5.9
14398 lt_prog_compiler_pic_F77='-KPIC'
14399 lt_prog_compiler_static_F77='-Bstatic'
14400 lt_prog_compiler_wl_F77='-Wl,'
14402 *Sun\ F*)
14403 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14404 lt_prog_compiler_pic_F77='-KPIC'
14405 lt_prog_compiler_static_F77='-Bstatic'
14406 lt_prog_compiler_wl_F77=''
14408 esac
14410 esac
14413 osf3* | osf4* | osf5*)
14414 lt_prog_compiler_wl_F77='-Wl,'
14415 # All OSF/1 code is PIC.
14416 lt_prog_compiler_static_F77='-non_shared'
14419 rdos*)
14420 lt_prog_compiler_static_F77='-non_shared'
14423 solaris*)
14424 lt_prog_compiler_pic_F77='-KPIC'
14425 lt_prog_compiler_static_F77='-Bstatic'
14426 case $cc_basename in
14427 f77* | f90* | f95*)
14428 lt_prog_compiler_wl_F77='-Qoption ld ';;
14430 lt_prog_compiler_wl_F77='-Wl,';;
14431 esac
14434 sunos4*)
14435 lt_prog_compiler_wl_F77='-Qoption ld '
14436 lt_prog_compiler_pic_F77='-PIC'
14437 lt_prog_compiler_static_F77='-Bstatic'
14440 sysv4 | sysv4.2uw2* | sysv4.3*)
14441 lt_prog_compiler_wl_F77='-Wl,'
14442 lt_prog_compiler_pic_F77='-KPIC'
14443 lt_prog_compiler_static_F77='-Bstatic'
14446 sysv4*MP*)
14447 if test -d /usr/nec ;then
14448 lt_prog_compiler_pic_F77='-Kconform_pic'
14449 lt_prog_compiler_static_F77='-Bstatic'
14453 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14454 lt_prog_compiler_wl_F77='-Wl,'
14455 lt_prog_compiler_pic_F77='-KPIC'
14456 lt_prog_compiler_static_F77='-Bstatic'
14459 unicos*)
14460 lt_prog_compiler_wl_F77='-Wl,'
14461 lt_prog_compiler_can_build_shared_F77=no
14464 uts4*)
14465 lt_prog_compiler_pic_F77='-pic'
14466 lt_prog_compiler_static_F77='-Bstatic'
14470 lt_prog_compiler_can_build_shared_F77=no
14472 esac
14475 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14476 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14479 # Check to make sure the PIC flag actually works.
14481 if test -n "$lt_prog_compiler_pic_F77"; then
14483 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14484 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14485 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14486 echo $ECHO_N "(cached) $ECHO_C" >&6
14487 else
14488 lt_cv_prog_compiler_pic_works_F77=no
14489 ac_outfile=conftest.$ac_objext
14490 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14491 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14492 # Insert the option either (1) after the last *FLAGS variable, or
14493 # (2) before a word containing "conftest.", or (3) at the end.
14494 # Note that $ac_compile itself does not contain backslashes and begins
14495 # with a dollar sign (not a hyphen), so the echo should work correctly.
14496 # The option is referenced via a variable to avoid confusing sed.
14497 lt_compile=`echo "$ac_compile" | $SED \
14498 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14499 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14500 -e 's:$: $lt_compiler_flag:'`
14501 (eval echo "\"\$as_me:14501: $lt_compile\"" >&5)
14502 (eval "$lt_compile" 2>conftest.err)
14503 ac_status=$?
14504 cat conftest.err >&5
14505 echo "$as_me:14505: \$? = $ac_status" >&5
14506 if (exit $ac_status) && test -s "$ac_outfile"; then
14507 # The compiler can only warn and ignore the option if not recognized
14508 # So say no if there are warnings other than the usual output.
14509 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14510 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14511 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14512 lt_cv_prog_compiler_pic_works_F77=yes
14515 $rm conftest*
14518 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14519 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14521 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14522 case $lt_prog_compiler_pic_F77 in
14523 "" | " "*) ;;
14524 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14525 esac
14526 else
14527 lt_prog_compiler_pic_F77=
14528 lt_prog_compiler_can_build_shared_F77=no
14532 case $host_os in
14533 # For platforms which do not support PIC, -DPIC is meaningless:
14534 *djgpp*)
14535 lt_prog_compiler_pic_F77=
14538 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14540 esac
14543 # Check to make sure the static flag actually works.
14545 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14546 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14547 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14548 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14549 echo $ECHO_N "(cached) $ECHO_C" >&6
14550 else
14551 lt_cv_prog_compiler_static_works_F77=no
14552 save_LDFLAGS="$LDFLAGS"
14553 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14554 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14555 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14556 # The linker can only warn and ignore the option if not recognized
14557 # So say no if there are warnings
14558 if test -s conftest.err; then
14559 # Append any errors to the config.log.
14560 cat conftest.err 1>&5
14561 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14562 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14563 if diff conftest.exp conftest.er2 >/dev/null; then
14564 lt_cv_prog_compiler_static_works_F77=yes
14566 else
14567 lt_cv_prog_compiler_static_works_F77=yes
14570 $rm -r conftest*
14571 LDFLAGS="$save_LDFLAGS"
14574 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14575 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14577 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14579 else
14580 lt_prog_compiler_static_F77=
14584 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14585 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14586 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14587 echo $ECHO_N "(cached) $ECHO_C" >&6
14588 else
14589 lt_cv_prog_compiler_c_o_F77=no
14590 $rm -r conftest 2>/dev/null
14591 mkdir conftest
14592 cd conftest
14593 mkdir out
14594 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14596 lt_compiler_flag="-o out/conftest2.$ac_objext"
14597 # Insert the option either (1) after the last *FLAGS variable, or
14598 # (2) before a word containing "conftest.", or (3) at the end.
14599 # Note that $ac_compile itself does not contain backslashes and begins
14600 # with a dollar sign (not a hyphen), so the echo should work correctly.
14601 lt_compile=`echo "$ac_compile" | $SED \
14602 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14603 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14604 -e 's:$: $lt_compiler_flag:'`
14605 (eval echo "\"\$as_me:14605: $lt_compile\"" >&5)
14606 (eval "$lt_compile" 2>out/conftest.err)
14607 ac_status=$?
14608 cat out/conftest.err >&5
14609 echo "$as_me:14609: \$? = $ac_status" >&5
14610 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14611 then
14612 # The compiler can only warn and ignore the option if not recognized
14613 # So say no if there are warnings
14614 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14615 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14616 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14617 lt_cv_prog_compiler_c_o_F77=yes
14620 chmod u+w . 2>&5
14621 $rm conftest*
14622 # SGI C++ compiler will create directory out/ii_files/ for
14623 # template instantiation
14624 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14625 $rm out/* && rmdir out
14626 cd ..
14627 rmdir conftest
14628 $rm conftest*
14631 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14632 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14635 hard_links="nottested"
14636 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14637 # do not overwrite the value of need_locks provided by the user
14638 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14639 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14640 hard_links=yes
14641 $rm conftest*
14642 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14643 touch conftest.a
14644 ln conftest.a conftest.b 2>&5 || hard_links=no
14645 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14646 { echo "$as_me:$LINENO: result: $hard_links" >&5
14647 echo "${ECHO_T}$hard_links" >&6; }
14648 if test "$hard_links" = no; then
14649 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14650 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14651 need_locks=warn
14653 else
14654 need_locks=no
14657 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14658 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14660 runpath_var=
14661 allow_undefined_flag_F77=
14662 enable_shared_with_static_runtimes_F77=no
14663 archive_cmds_F77=
14664 archive_expsym_cmds_F77=
14665 old_archive_From_new_cmds_F77=
14666 old_archive_from_expsyms_cmds_F77=
14667 export_dynamic_flag_spec_F77=
14668 whole_archive_flag_spec_F77=
14669 thread_safe_flag_spec_F77=
14670 hardcode_libdir_flag_spec_F77=
14671 hardcode_libdir_flag_spec_ld_F77=
14672 hardcode_libdir_separator_F77=
14673 hardcode_direct_F77=no
14674 hardcode_minus_L_F77=no
14675 hardcode_shlibpath_var_F77=unsupported
14676 link_all_deplibs_F77=unknown
14677 hardcode_automatic_F77=no
14678 module_cmds_F77=
14679 module_expsym_cmds_F77=
14680 always_export_symbols_F77=no
14681 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14682 # include_expsyms should be a list of space-separated symbols to be *always*
14683 # included in the symbol list
14684 include_expsyms_F77=
14685 # exclude_expsyms can be an extended regexp of symbols to exclude
14686 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14687 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14688 # as well as any symbol that contains `d'.
14689 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14690 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14691 # platforms (ab)use it in PIC code, but their linkers get confused if
14692 # the symbol is explicitly referenced. Since portable code cannot
14693 # rely on this symbol name, it's probably fine to never include it in
14694 # preloaded symbol tables.
14695 # Exclude shared library initialization/finalization symbols.
14696 extract_expsyms_cmds=
14697 # Just being paranoid about ensuring that cc_basename is set.
14698 for cc_temp in $compiler""; do
14699 case $cc_temp in
14700 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14701 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14702 \-*) ;;
14703 *) break;;
14704 esac
14705 done
14706 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14708 case $host_os in
14709 cygwin* | mingw* | pw32*)
14710 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14711 # When not using gcc, we currently assume that we are using
14712 # Microsoft Visual C++.
14713 if test "$GCC" != yes; then
14714 with_gnu_ld=no
14717 interix*)
14718 # we just hope/assume this is gcc and not c89 (= MSVC++)
14719 with_gnu_ld=yes
14721 openbsd*)
14722 with_gnu_ld=no
14724 esac
14726 ld_shlibs_F77=yes
14727 if test "$with_gnu_ld" = yes; then
14728 # If archive_cmds runs LD, not CC, wlarc should be empty
14729 wlarc='${wl}'
14731 # Set some defaults for GNU ld with shared library support. These
14732 # are reset later if shared libraries are not supported. Putting them
14733 # here allows them to be overridden if necessary.
14734 runpath_var=LD_RUN_PATH
14735 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14736 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14737 # ancient GNU ld didn't support --whole-archive et. al.
14738 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14739 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14740 else
14741 whole_archive_flag_spec_F77=
14743 supports_anon_versioning=no
14744 case `$LD -v 2>/dev/null` in
14745 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14746 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14747 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14748 *\ 2.11.*) ;; # other 2.11 versions
14749 *) supports_anon_versioning=yes ;;
14750 esac
14752 # See if GNU ld supports shared libraries.
14753 case $host_os in
14754 aix[3-9]*)
14755 # On AIX/PPC, the GNU linker is very broken
14756 if test "$host_cpu" != ia64; then
14757 ld_shlibs_F77=no
14758 cat <<EOF 1>&2
14760 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14761 *** to be unable to reliably create shared libraries on AIX.
14762 *** Therefore, libtool is disabling shared libraries support. If you
14763 *** really care for shared libraries, you may want to modify your PATH
14764 *** so that a non-GNU linker is found, and then restart.
14770 amigaos*)
14771 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14772 hardcode_libdir_flag_spec_F77='-L$libdir'
14773 hardcode_minus_L_F77=yes
14775 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14776 # that the semantics of dynamic libraries on AmigaOS, at least up
14777 # to version 4, is to share data among multiple programs linked
14778 # with the same dynamic library. Since this doesn't match the
14779 # behavior of shared libraries on other platforms, we can't use
14780 # them.
14781 ld_shlibs_F77=no
14784 beos*)
14785 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14786 allow_undefined_flag_F77=unsupported
14787 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14788 # support --undefined. This deserves some investigation. FIXME
14789 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14790 else
14791 ld_shlibs_F77=no
14795 cygwin* | mingw* | pw32*)
14796 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14797 # as there is no search path for DLLs.
14798 hardcode_libdir_flag_spec_F77='-L$libdir'
14799 allow_undefined_flag_F77=unsupported
14800 always_export_symbols_F77=no
14801 enable_shared_with_static_runtimes_F77=yes
14802 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14804 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14805 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14806 # If the export-symbols file already is a .def file (1st line
14807 # is EXPORTS), use it as is; otherwise, prepend...
14808 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14809 cp $export_symbols $output_objdir/$soname.def;
14810 else
14811 echo EXPORTS > $output_objdir/$soname.def;
14812 cat $export_symbols >> $output_objdir/$soname.def;
14814 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14815 else
14816 ld_shlibs_F77=no
14820 interix[3-9]*)
14821 hardcode_direct_F77=no
14822 hardcode_shlibpath_var_F77=no
14823 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14824 export_dynamic_flag_spec_F77='${wl}-E'
14825 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14826 # Instead, shared libraries are loaded at an image base (0x10000000 by
14827 # default) and relocated if they conflict, which is a slow very memory
14828 # consuming and fragmenting process. To avoid this, we pick a random,
14829 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14830 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14831 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14832 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14835 gnu* | linux* | k*bsd*-gnu)
14836 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14837 tmp_addflag=
14838 case $cc_basename,$host_cpu in
14839 pgcc*) # Portland Group C compiler
14840 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14841 tmp_addflag=' $pic_flag'
14843 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14844 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14845 tmp_addflag=' $pic_flag -Mnomain' ;;
14846 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14847 tmp_addflag=' -i_dynamic' ;;
14848 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14849 tmp_addflag=' -i_dynamic -nofor_main' ;;
14850 ifc* | ifort*) # Intel Fortran compiler
14851 tmp_addflag=' -nofor_main' ;;
14852 esac
14853 case `$CC -V 2>&1 | sed 5q` in
14854 *Sun\ C*) # Sun C 5.9
14855 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14856 tmp_sharedflag='-G' ;;
14857 *Sun\ F*) # Sun Fortran 8.3
14858 tmp_sharedflag='-G' ;;
14860 tmp_sharedflag='-shared' ;;
14861 esac
14862 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14864 if test $supports_anon_versioning = yes; then
14865 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14866 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14867 $echo "local: *; };" >> $output_objdir/$libname.ver~
14868 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14870 else
14871 ld_shlibs_F77=no
14875 netbsd*)
14876 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14877 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14878 wlarc=
14879 else
14880 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14881 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14885 solaris*)
14886 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14887 ld_shlibs_F77=no
14888 cat <<EOF 1>&2
14890 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14891 *** create shared libraries on Solaris systems. Therefore, libtool
14892 *** is disabling shared libraries support. We urge you to upgrade GNU
14893 *** binutils to release 2.9.1 or newer. Another option is to modify
14894 *** your PATH or compiler configuration so that the native linker is
14895 *** used, and then restart.
14898 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14899 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14900 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14901 else
14902 ld_shlibs_F77=no
14906 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14907 case `$LD -v 2>&1` in
14908 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14909 ld_shlibs_F77=no
14910 cat <<_LT_EOF 1>&2
14912 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14913 *** reliably create shared libraries on SCO systems. Therefore, libtool
14914 *** is disabling shared libraries support. We urge you to upgrade GNU
14915 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14916 *** your PATH or compiler configuration so that the native linker is
14917 *** used, and then restart.
14919 _LT_EOF
14922 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14923 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14924 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14925 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14926 else
14927 ld_shlibs_F77=no
14930 esac
14933 sunos4*)
14934 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14935 wlarc=
14936 hardcode_direct_F77=yes
14937 hardcode_shlibpath_var_F77=no
14941 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14942 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14943 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14944 else
14945 ld_shlibs_F77=no
14948 esac
14950 if test "$ld_shlibs_F77" = no; then
14951 runpath_var=
14952 hardcode_libdir_flag_spec_F77=
14953 export_dynamic_flag_spec_F77=
14954 whole_archive_flag_spec_F77=
14956 else
14957 # PORTME fill in a description of your system's linker (not GNU ld)
14958 case $host_os in
14959 aix3*)
14960 allow_undefined_flag_F77=unsupported
14961 always_export_symbols_F77=yes
14962 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14963 # Note: this linker hardcodes the directories in LIBPATH if there
14964 # are no directories specified by -L.
14965 hardcode_minus_L_F77=yes
14966 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14967 # Neither direct hardcoding nor static linking is supported with a
14968 # broken collect2.
14969 hardcode_direct_F77=unsupported
14973 aix[4-9]*)
14974 if test "$host_cpu" = ia64; then
14975 # On IA64, the linker does run time linking by default, so we don't
14976 # have to do anything special.
14977 aix_use_runtimelinking=no
14978 exp_sym_flag='-Bexport'
14979 no_entry_flag=""
14980 else
14981 # If we're using GNU nm, then we don't want the "-C" option.
14982 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14983 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14984 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14985 else
14986 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14988 aix_use_runtimelinking=no
14990 # Test if we are trying to use run time linking or normal
14991 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14992 # need to do runtime linking.
14993 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14994 for ld_flag in $LDFLAGS; do
14995 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14996 aix_use_runtimelinking=yes
14997 break
14999 done
15001 esac
15003 exp_sym_flag='-bexport'
15004 no_entry_flag='-bnoentry'
15007 # When large executables or shared objects are built, AIX ld can
15008 # have problems creating the table of contents. If linking a library
15009 # or program results in "error TOC overflow" add -mminimal-toc to
15010 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15011 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15013 archive_cmds_F77=''
15014 hardcode_direct_F77=yes
15015 hardcode_libdir_separator_F77=':'
15016 link_all_deplibs_F77=yes
15018 if test "$GCC" = yes; then
15019 case $host_os in aix4.[012]|aix4.[012].*)
15020 # We only want to do this on AIX 4.2 and lower, the check
15021 # below for broken collect2 doesn't work under 4.3+
15022 collect2name=`${CC} -print-prog-name=collect2`
15023 if test -f "$collect2name" && \
15024 strings "$collect2name" | grep resolve_lib_name >/dev/null
15025 then
15026 # We have reworked collect2
15028 else
15029 # We have old collect2
15030 hardcode_direct_F77=unsupported
15031 # It fails to find uninstalled libraries when the uninstalled
15032 # path is not listed in the libpath. Setting hardcode_minus_L
15033 # to unsupported forces relinking
15034 hardcode_minus_L_F77=yes
15035 hardcode_libdir_flag_spec_F77='-L$libdir'
15036 hardcode_libdir_separator_F77=
15039 esac
15040 shared_flag='-shared'
15041 if test "$aix_use_runtimelinking" = yes; then
15042 shared_flag="$shared_flag "'${wl}-G'
15044 else
15045 # not using gcc
15046 if test "$host_cpu" = ia64; then
15047 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15048 # chokes on -Wl,-G. The following line is correct:
15049 shared_flag='-G'
15050 else
15051 if test "$aix_use_runtimelinking" = yes; then
15052 shared_flag='${wl}-G'
15053 else
15054 shared_flag='${wl}-bM:SRE'
15059 # It seems that -bexpall does not export symbols beginning with
15060 # underscore (_), so it is better to generate a list of symbols to export.
15061 always_export_symbols_F77=yes
15062 if test "$aix_use_runtimelinking" = yes; then
15063 # Warning - without using the other runtime loading flags (-brtl),
15064 # -berok will link without error, but may produce a broken library.
15065 allow_undefined_flag_F77='-berok'
15066 # Determine the default libpath from the value encoded in an empty executable.
15067 cat >conftest.$ac_ext <<_ACEOF
15068 program main
15071 _ACEOF
15072 rm -f conftest.$ac_objext conftest$ac_exeext
15073 if { (ac_try="$ac_link"
15074 case "(($ac_try" in
15075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15076 *) ac_try_echo=$ac_try;;
15077 esac
15078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15079 (eval "$ac_link") 2>conftest.er1
15080 ac_status=$?
15081 grep -v '^ *+' conftest.er1 >conftest.err
15082 rm -f conftest.er1
15083 cat conftest.err >&5
15084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085 (exit $ac_status); } && {
15086 test -z "$ac_f77_werror_flag" ||
15087 test ! -s conftest.err
15088 } && test -s conftest$ac_exeext &&
15089 $as_test_x conftest$ac_exeext; then
15091 lt_aix_libpath_sed='
15092 /Import File Strings/,/^$/ {
15093 /^0/ {
15094 s/^0 *\(.*\)$/\1/
15098 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15099 # Check for a 64-bit object if we didn't find anything.
15100 if test -z "$aix_libpath"; then
15101 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15103 else
15104 echo "$as_me: failed program was:" >&5
15105 sed 's/^/| /' conftest.$ac_ext >&5
15110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15111 conftest$ac_exeext conftest.$ac_ext
15112 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15114 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15115 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15116 else
15117 if test "$host_cpu" = ia64; then
15118 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15119 allow_undefined_flag_F77="-z nodefs"
15120 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
15121 else
15122 # Determine the default libpath from the value encoded in an empty executable.
15123 cat >conftest.$ac_ext <<_ACEOF
15124 program main
15127 _ACEOF
15128 rm -f conftest.$ac_objext conftest$ac_exeext
15129 if { (ac_try="$ac_link"
15130 case "(($ac_try" in
15131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15132 *) ac_try_echo=$ac_try;;
15133 esac
15134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15135 (eval "$ac_link") 2>conftest.er1
15136 ac_status=$?
15137 grep -v '^ *+' conftest.er1 >conftest.err
15138 rm -f conftest.er1
15139 cat conftest.err >&5
15140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15141 (exit $ac_status); } && {
15142 test -z "$ac_f77_werror_flag" ||
15143 test ! -s conftest.err
15144 } && test -s conftest$ac_exeext &&
15145 $as_test_x conftest$ac_exeext; then
15147 lt_aix_libpath_sed='
15148 /Import File Strings/,/^$/ {
15149 /^0/ {
15150 s/^0 *\(.*\)$/\1/
15154 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15155 # Check for a 64-bit object if we didn't find anything.
15156 if test -z "$aix_libpath"; then
15157 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15159 else
15160 echo "$as_me: failed program was:" >&5
15161 sed 's/^/| /' conftest.$ac_ext >&5
15166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15167 conftest$ac_exeext conftest.$ac_ext
15168 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15170 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15171 # Warning - without using the other run time loading flags,
15172 # -berok will link without error, but may produce a broken library.
15173 no_undefined_flag_F77=' ${wl}-bernotok'
15174 allow_undefined_flag_F77=' ${wl}-berok'
15175 # Exported symbols can be pulled into shared objects from archives
15176 whole_archive_flag_spec_F77='$convenience'
15177 archive_cmds_need_lc_F77=yes
15178 # This is similar to how AIX traditionally builds its shared libraries.
15179 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15184 amigaos*)
15185 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15186 hardcode_libdir_flag_spec_F77='-L$libdir'
15187 hardcode_minus_L_F77=yes
15188 # see comment about different semantics on the GNU ld section
15189 ld_shlibs_F77=no
15192 bsdi[45]*)
15193 export_dynamic_flag_spec_F77=-rdynamic
15196 cygwin* | mingw* | pw32*)
15197 # When not using gcc, we currently assume that we are using
15198 # Microsoft Visual C++.
15199 # hardcode_libdir_flag_spec is actually meaningless, as there is
15200 # no search path for DLLs.
15201 hardcode_libdir_flag_spec_F77=' '
15202 allow_undefined_flag_F77=unsupported
15203 # Tell ltmain to make .lib files, not .a files.
15204 libext=lib
15205 # Tell ltmain to make .dll files, not .so files.
15206 shrext_cmds=".dll"
15207 # FIXME: Setting linknames here is a bad hack.
15208 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15209 # The linker will automatically build a .lib file if we build a DLL.
15210 old_archive_From_new_cmds_F77='true'
15211 # FIXME: Should let the user specify the lib program.
15212 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15213 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15214 enable_shared_with_static_runtimes_F77=yes
15217 darwin* | rhapsody*)
15218 case $host_os in
15219 rhapsody* | darwin1.[012])
15220 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15222 *) # Darwin 1.3 on
15223 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15224 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15225 else
15226 case ${MACOSX_DEPLOYMENT_TARGET} in
15227 10.[012])
15228 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15230 10.*)
15231 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15233 esac
15236 esac
15237 archive_cmds_need_lc_F77=no
15238 hardcode_direct_F77=no
15239 hardcode_automatic_F77=yes
15240 hardcode_shlibpath_var_F77=unsupported
15241 whole_archive_flag_spec_F77=''
15242 link_all_deplibs_F77=yes
15243 if test "$GCC" = yes ; then
15244 output_verbose_link_cmd='echo'
15245 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15246 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15247 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15248 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15249 else
15250 case $cc_basename in
15251 xlc*)
15252 output_verbose_link_cmd='echo'
15253 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15254 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15255 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15256 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15257 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15260 ld_shlibs_F77=no
15262 esac
15266 dgux*)
15267 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15268 hardcode_libdir_flag_spec_F77='-L$libdir'
15269 hardcode_shlibpath_var_F77=no
15272 freebsd1*)
15273 ld_shlibs_F77=no
15276 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15277 # support. Future versions do this automatically, but an explicit c++rt0.o
15278 # does not break anything, and helps significantly (at the cost of a little
15279 # extra space).
15280 freebsd2.2*)
15281 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15282 hardcode_libdir_flag_spec_F77='-R$libdir'
15283 hardcode_direct_F77=yes
15284 hardcode_shlibpath_var_F77=no
15287 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15288 freebsd2*)
15289 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15290 hardcode_direct_F77=yes
15291 hardcode_minus_L_F77=yes
15292 hardcode_shlibpath_var_F77=no
15295 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15296 freebsd* | dragonfly*)
15297 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15298 hardcode_libdir_flag_spec_F77='-R$libdir'
15299 hardcode_direct_F77=yes
15300 hardcode_shlibpath_var_F77=no
15303 hpux9*)
15304 if test "$GCC" = yes; then
15305 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15306 else
15307 archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15309 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15310 hardcode_libdir_separator_F77=:
15311 hardcode_direct_F77=yes
15313 # hardcode_minus_L: Not really in the search PATH,
15314 # but as the default location of the library.
15315 hardcode_minus_L_F77=yes
15316 export_dynamic_flag_spec_F77='${wl}-E'
15319 hpux10*)
15320 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15321 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15322 else
15323 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15325 if test "$with_gnu_ld" = no; then
15326 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15327 hardcode_libdir_separator_F77=:
15329 hardcode_direct_F77=yes
15330 export_dynamic_flag_spec_F77='${wl}-E'
15332 # hardcode_minus_L: Not really in the search PATH,
15333 # but as the default location of the library.
15334 hardcode_minus_L_F77=yes
15338 hpux11*)
15339 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15340 case $host_cpu in
15341 hppa*64*)
15342 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15344 ia64*)
15345 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15348 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15350 esac
15351 else
15352 case $host_cpu in
15353 hppa*64*)
15354 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15356 ia64*)
15357 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15360 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15362 esac
15364 if test "$with_gnu_ld" = no; then
15365 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15366 hardcode_libdir_separator_F77=:
15368 case $host_cpu in
15369 hppa*64*|ia64*)
15370 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15371 hardcode_direct_F77=no
15372 hardcode_shlibpath_var_F77=no
15375 hardcode_direct_F77=yes
15376 export_dynamic_flag_spec_F77='${wl}-E'
15378 # hardcode_minus_L: Not really in the search PATH,
15379 # but as the default location of the library.
15380 hardcode_minus_L_F77=yes
15382 esac
15386 irix5* | irix6* | nonstopux*)
15387 if test "$GCC" = yes; then
15388 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15389 else
15390 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15391 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15393 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15394 hardcode_libdir_separator_F77=:
15395 link_all_deplibs_F77=yes
15398 netbsd*)
15399 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15400 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15401 else
15402 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15404 hardcode_libdir_flag_spec_F77='-R$libdir'
15405 hardcode_direct_F77=yes
15406 hardcode_shlibpath_var_F77=no
15409 newsos6)
15410 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15411 hardcode_direct_F77=yes
15412 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15413 hardcode_libdir_separator_F77=:
15414 hardcode_shlibpath_var_F77=no
15417 openbsd*)
15418 if test -f /usr/libexec/ld.so; then
15419 hardcode_direct_F77=yes
15420 hardcode_shlibpath_var_F77=no
15421 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15422 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15423 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15424 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15425 export_dynamic_flag_spec_F77='${wl}-E'
15426 else
15427 case $host_os in
15428 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15429 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15430 hardcode_libdir_flag_spec_F77='-R$libdir'
15433 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15434 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15436 esac
15438 else
15439 ld_shlibs_F77=no
15443 os2*)
15444 hardcode_libdir_flag_spec_F77='-L$libdir'
15445 hardcode_minus_L_F77=yes
15446 allow_undefined_flag_F77=unsupported
15447 archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
15448 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15451 osf3*)
15452 if test "$GCC" = yes; then
15453 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15454 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15455 else
15456 allow_undefined_flag_F77=' -expect_unresolved \*'
15457 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15459 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15460 hardcode_libdir_separator_F77=:
15463 osf4* | osf5*) # as osf3* with the addition of -msym flag
15464 if test "$GCC" = yes; then
15465 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15466 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15467 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15468 else
15469 allow_undefined_flag_F77=' -expect_unresolved \*'
15470 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15471 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15472 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15474 # Both c and cxx compiler support -rpath directly
15475 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15477 hardcode_libdir_separator_F77=:
15480 solaris*)
15481 no_undefined_flag_F77=' -z text'
15482 if test "$GCC" = yes; then
15483 wlarc='${wl}'
15484 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15485 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15486 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15487 else
15488 wlarc=''
15489 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15490 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15491 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15493 hardcode_libdir_flag_spec_F77='-R$libdir'
15494 hardcode_shlibpath_var_F77=no
15495 case $host_os in
15496 solaris2.[0-5] | solaris2.[0-5].*) ;;
15498 # The compiler driver will combine and reorder linker options,
15499 # but understands `-z linker_flag'. GCC discards it without `$wl',
15500 # but is careful enough not to reorder.
15501 # Supported since Solaris 2.6 (maybe 2.5.1?)
15502 if test "$GCC" = yes; then
15503 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15504 else
15505 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15508 esac
15509 link_all_deplibs_F77=yes
15512 sunos4*)
15513 if test "x$host_vendor" = xsequent; then
15514 # Use $CC to link under sequent, because it throws in some extra .o
15515 # files that make .init and .fini sections work.
15516 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15517 else
15518 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15520 hardcode_libdir_flag_spec_F77='-L$libdir'
15521 hardcode_direct_F77=yes
15522 hardcode_minus_L_F77=yes
15523 hardcode_shlibpath_var_F77=no
15526 sysv4)
15527 case $host_vendor in
15528 sni)
15529 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15530 hardcode_direct_F77=yes # is this really true???
15532 siemens)
15533 ## LD is ld it makes a PLAMLIB
15534 ## CC just makes a GrossModule.
15535 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15536 reload_cmds_F77='$CC -r -o $output$reload_objs'
15537 hardcode_direct_F77=no
15539 motorola)
15540 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15541 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15543 esac
15544 runpath_var='LD_RUN_PATH'
15545 hardcode_shlibpath_var_F77=no
15548 sysv4.3*)
15549 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15550 hardcode_shlibpath_var_F77=no
15551 export_dynamic_flag_spec_F77='-Bexport'
15554 sysv4*MP*)
15555 if test -d /usr/nec; then
15556 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15557 hardcode_shlibpath_var_F77=no
15558 runpath_var=LD_RUN_PATH
15559 hardcode_runpath_var=yes
15560 ld_shlibs_F77=yes
15564 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15565 no_undefined_flag_F77='${wl}-z,text'
15566 archive_cmds_need_lc_F77=no
15567 hardcode_shlibpath_var_F77=no
15568 runpath_var='LD_RUN_PATH'
15570 if test "$GCC" = yes; then
15571 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15572 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15573 else
15574 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15575 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15579 sysv5* | sco3.2v5* | sco5v6*)
15580 # Note: We can NOT use -z defs as we might desire, because we do not
15581 # link with -lc, and that would cause any symbols used from libc to
15582 # always be unresolved, which means just about no library would
15583 # ever link correctly. If we're not using GNU ld we use -z text
15584 # though, which does catch some bad symbols but isn't as heavy-handed
15585 # as -z defs.
15586 no_undefined_flag_F77='${wl}-z,text'
15587 allow_undefined_flag_F77='${wl}-z,nodefs'
15588 archive_cmds_need_lc_F77=no
15589 hardcode_shlibpath_var_F77=no
15590 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15591 hardcode_libdir_separator_F77=':'
15592 link_all_deplibs_F77=yes
15593 export_dynamic_flag_spec_F77='${wl}-Bexport'
15594 runpath_var='LD_RUN_PATH'
15596 if test "$GCC" = yes; then
15597 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15598 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15599 else
15600 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15601 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15605 uts4*)
15606 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15607 hardcode_libdir_flag_spec_F77='-L$libdir'
15608 hardcode_shlibpath_var_F77=no
15612 ld_shlibs_F77=no
15614 esac
15617 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15618 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15619 test "$ld_shlibs_F77" = no && can_build_shared=no
15622 # Do we need to explicitly link libc?
15624 case "x$archive_cmds_need_lc_F77" in
15625 x|xyes)
15626 # Assume -lc should be added
15627 archive_cmds_need_lc_F77=yes
15629 if test "$enable_shared" = yes && test "$GCC" = yes; then
15630 case $archive_cmds_F77 in
15631 *'~'*)
15632 # FIXME: we may have to deal with multi-command sequences.
15634 '$CC '*)
15635 # Test whether the compiler implicitly links with -lc since on some
15636 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15637 # to ld, don't add -lc before -lgcc.
15638 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15639 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15640 $rm conftest*
15641 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15644 (eval $ac_compile) 2>&5
15645 ac_status=$?
15646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15647 (exit $ac_status); } 2>conftest.err; then
15648 soname=conftest
15649 lib=conftest
15650 libobjs=conftest.$ac_objext
15651 deplibs=
15652 wl=$lt_prog_compiler_wl_F77
15653 pic_flag=$lt_prog_compiler_pic_F77
15654 compiler_flags=-v
15655 linker_flags=-v
15656 verstring=
15657 output_objdir=.
15658 libname=conftest
15659 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15660 allow_undefined_flag_F77=
15661 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15662 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15663 ac_status=$?
15664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15665 (exit $ac_status); }
15666 then
15667 archive_cmds_need_lc_F77=no
15668 else
15669 archive_cmds_need_lc_F77=yes
15671 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15672 else
15673 cat conftest.err 1>&5
15675 $rm conftest*
15676 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15677 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15679 esac
15682 esac
15684 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15685 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15686 library_names_spec=
15687 libname_spec='lib$name'
15688 soname_spec=
15689 shrext_cmds=".so"
15690 postinstall_cmds=
15691 postuninstall_cmds=
15692 finish_cmds=
15693 finish_eval=
15694 shlibpath_var=
15695 shlibpath_overrides_runpath=unknown
15696 version_type=none
15697 dynamic_linker="$host_os ld.so"
15698 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15700 need_lib_prefix=unknown
15701 hardcode_into_libs=no
15703 # when you set need_version to no, make sure it does not cause -set_version
15704 # flags to be left without arguments
15705 need_version=unknown
15707 case $host_os in
15708 aix3*)
15709 version_type=linux
15710 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15711 shlibpath_var=LIBPATH
15713 # AIX 3 has no versioning support, so we append a major version to the name.
15714 soname_spec='${libname}${release}${shared_ext}$major'
15717 aix[4-9]*)
15718 version_type=linux
15719 need_lib_prefix=no
15720 need_version=no
15721 hardcode_into_libs=yes
15722 if test "$host_cpu" = ia64; then
15723 # AIX 5 supports IA64
15724 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15725 shlibpath_var=LD_LIBRARY_PATH
15726 else
15727 # With GCC up to 2.95.x, collect2 would create an import file
15728 # for dependence libraries. The import file would start with
15729 # the line `#! .'. This would cause the generated library to
15730 # depend on `.', always an invalid library. This was fixed in
15731 # development snapshots of GCC prior to 3.0.
15732 case $host_os in
15733 aix4 | aix4.[01] | aix4.[01].*)
15734 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15735 echo ' yes '
15736 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15738 else
15739 can_build_shared=no
15742 esac
15743 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15744 # soname into executable. Probably we can add versioning support to
15745 # collect2, so additional links can be useful in future.
15746 if test "$aix_use_runtimelinking" = yes; then
15747 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15748 # instead of lib<name>.a to let people know that these are not
15749 # typical AIX shared libraries.
15750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15751 else
15752 # We preserve .a as extension for shared libraries through AIX4.2
15753 # and later when we are not doing run time linking.
15754 library_names_spec='${libname}${release}.a $libname.a'
15755 soname_spec='${libname}${release}${shared_ext}$major'
15757 shlibpath_var=LIBPATH
15761 amigaos*)
15762 library_names_spec='$libname.ixlibrary $libname.a'
15763 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15764 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'
15767 beos*)
15768 library_names_spec='${libname}${shared_ext}'
15769 dynamic_linker="$host_os ld.so"
15770 shlibpath_var=LIBRARY_PATH
15773 bsdi[45]*)
15774 version_type=linux
15775 need_version=no
15776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15777 soname_spec='${libname}${release}${shared_ext}$major'
15778 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15779 shlibpath_var=LD_LIBRARY_PATH
15780 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15781 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15782 # the default ld.so.conf also contains /usr/contrib/lib and
15783 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15784 # libtool to hard-code these into programs
15787 cygwin* | mingw* | pw32*)
15788 version_type=windows
15789 shrext_cmds=".dll"
15790 need_version=no
15791 need_lib_prefix=no
15793 case $GCC,$host_os in
15794 yes,cygwin* | yes,mingw* | yes,pw32*)
15795 library_names_spec='$libname.dll.a'
15796 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15797 postinstall_cmds='base_file=`basename \${file}`~
15798 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15799 dldir=$destdir/`dirname \$dlpath`~
15800 test -d \$dldir || mkdir -p \$dldir~
15801 $install_prog $dir/$dlname \$dldir/$dlname~
15802 chmod a+x \$dldir/$dlname'
15803 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15804 dlpath=$dir/\$dldll~
15805 $rm \$dlpath'
15806 shlibpath_overrides_runpath=yes
15808 case $host_os in
15809 cygwin*)
15810 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15811 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15812 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15814 mingw*)
15815 # MinGW DLLs use traditional 'lib' prefix
15816 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15817 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15818 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15819 # It is most probably a Windows format PATH printed by
15820 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15821 # path with ; separators, and with drive letters. We can handle the
15822 # drive letters (cygwin fileutils understands them), so leave them,
15823 # especially as we might pass files found there to a mingw objdump,
15824 # which wouldn't understand a cygwinified path. Ahh.
15825 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15826 else
15827 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15830 pw32*)
15831 # pw32 DLLs use 'pw' prefix rather than 'lib'
15832 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15834 esac
15838 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15840 esac
15841 dynamic_linker='Win32 ld.exe'
15842 # FIXME: first we should search . and the directory the executable is in
15843 shlibpath_var=PATH
15846 darwin* | rhapsody*)
15847 dynamic_linker="$host_os dyld"
15848 version_type=darwin
15849 need_lib_prefix=no
15850 need_version=no
15851 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15852 soname_spec='${libname}${release}${major}$shared_ext'
15853 shlibpath_overrides_runpath=yes
15854 shlibpath_var=DYLD_LIBRARY_PATH
15855 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15857 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15860 dgux*)
15861 version_type=linux
15862 need_lib_prefix=no
15863 need_version=no
15864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15865 soname_spec='${libname}${release}${shared_ext}$major'
15866 shlibpath_var=LD_LIBRARY_PATH
15869 freebsd1*)
15870 dynamic_linker=no
15873 freebsd* | dragonfly*)
15874 # DragonFly does not have aout. When/if they implement a new
15875 # versioning mechanism, adjust this.
15876 if test -x /usr/bin/objformat; then
15877 objformat=`/usr/bin/objformat`
15878 else
15879 case $host_os in
15880 freebsd[123]*) objformat=aout ;;
15881 *) objformat=elf ;;
15882 esac
15884 version_type=freebsd-$objformat
15885 case $version_type in
15886 freebsd-elf*)
15887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15888 need_version=no
15889 need_lib_prefix=no
15891 freebsd-*)
15892 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15893 need_version=yes
15895 esac
15896 shlibpath_var=LD_LIBRARY_PATH
15897 case $host_os in
15898 freebsd2*)
15899 shlibpath_overrides_runpath=yes
15901 freebsd3.[01]* | freebsdelf3.[01]*)
15902 shlibpath_overrides_runpath=yes
15903 hardcode_into_libs=yes
15905 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15906 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15907 shlibpath_overrides_runpath=no
15908 hardcode_into_libs=yes
15910 *) # from 4.6 on, and DragonFly
15911 shlibpath_overrides_runpath=yes
15912 hardcode_into_libs=yes
15914 esac
15917 gnu*)
15918 version_type=linux
15919 need_lib_prefix=no
15920 need_version=no
15921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15922 soname_spec='${libname}${release}${shared_ext}$major'
15923 shlibpath_var=LD_LIBRARY_PATH
15924 hardcode_into_libs=yes
15927 hpux9* | hpux10* | hpux11*)
15928 # Give a soname corresponding to the major version so that dld.sl refuses to
15929 # link against other versions.
15930 version_type=sunos
15931 need_lib_prefix=no
15932 need_version=no
15933 case $host_cpu in
15934 ia64*)
15935 shrext_cmds='.so'
15936 hardcode_into_libs=yes
15937 dynamic_linker="$host_os dld.so"
15938 shlibpath_var=LD_LIBRARY_PATH
15939 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15941 soname_spec='${libname}${release}${shared_ext}$major'
15942 if test "X$HPUX_IA64_MODE" = X32; then
15943 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15944 else
15945 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15947 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15949 hppa*64*)
15950 shrext_cmds='.sl'
15951 hardcode_into_libs=yes
15952 dynamic_linker="$host_os dld.sl"
15953 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15954 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15956 soname_spec='${libname}${release}${shared_ext}$major'
15957 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15958 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15961 shrext_cmds='.sl'
15962 dynamic_linker="$host_os dld.sl"
15963 shlibpath_var=SHLIB_PATH
15964 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15966 soname_spec='${libname}${release}${shared_ext}$major'
15968 esac
15969 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15970 postinstall_cmds='chmod 555 $lib'
15973 interix[3-9]*)
15974 version_type=linux
15975 need_lib_prefix=no
15976 need_version=no
15977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15978 soname_spec='${libname}${release}${shared_ext}$major'
15979 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15980 shlibpath_var=LD_LIBRARY_PATH
15981 shlibpath_overrides_runpath=no
15982 hardcode_into_libs=yes
15985 irix5* | irix6* | nonstopux*)
15986 case $host_os in
15987 nonstopux*) version_type=nonstopux ;;
15989 if test "$lt_cv_prog_gnu_ld" = yes; then
15990 version_type=linux
15991 else
15992 version_type=irix
15993 fi ;;
15994 esac
15995 need_lib_prefix=no
15996 need_version=no
15997 soname_spec='${libname}${release}${shared_ext}$major'
15998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15999 case $host_os in
16000 irix5* | nonstopux*)
16001 libsuff= shlibsuff=
16004 case $LD in # libtool.m4 will add one of these switches to LD
16005 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16006 libsuff= shlibsuff= libmagic=32-bit;;
16007 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16008 libsuff=32 shlibsuff=N32 libmagic=N32;;
16009 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16010 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16011 *) libsuff= shlibsuff= libmagic=never-match;;
16012 esac
16014 esac
16015 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16016 shlibpath_overrides_runpath=no
16017 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16018 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16019 hardcode_into_libs=yes
16022 # No shared lib support for Linux oldld, aout, or coff.
16023 linux*oldld* | linux*aout* | linux*coff*)
16024 dynamic_linker=no
16027 # This must be Linux ELF.
16028 linux* | k*bsd*-gnu)
16029 version_type=linux
16030 need_lib_prefix=no
16031 need_version=no
16032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16033 soname_spec='${libname}${release}${shared_ext}$major'
16034 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16035 shlibpath_var=LD_LIBRARY_PATH
16036 shlibpath_overrides_runpath=no
16037 # This implies no fast_install, which is unacceptable.
16038 # Some rework will be needed to allow for fast_install
16039 # before this can be enabled.
16040 hardcode_into_libs=yes
16042 # Append ld.so.conf contents to the search path
16043 if test -f /etc/ld.so.conf; then
16044 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' ' '`
16045 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16048 # We used to test for /lib/ld.so.1 and disable shared libraries on
16049 # powerpc, because MkLinux only supported shared libraries with the
16050 # GNU dynamic linker. Since this was broken with cross compilers,
16051 # most powerpc-linux boxes support dynamic linking these days and
16052 # people can always --disable-shared, the test was removed, and we
16053 # assume the GNU/Linux dynamic linker is in use.
16054 dynamic_linker='GNU/Linux ld.so'
16057 netbsd*)
16058 version_type=sunos
16059 need_lib_prefix=no
16060 need_version=no
16061 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16063 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16064 dynamic_linker='NetBSD (a.out) ld.so'
16065 else
16066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16067 soname_spec='${libname}${release}${shared_ext}$major'
16068 dynamic_linker='NetBSD ld.elf_so'
16070 shlibpath_var=LD_LIBRARY_PATH
16071 shlibpath_overrides_runpath=yes
16072 hardcode_into_libs=yes
16075 newsos6)
16076 version_type=linux
16077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16078 shlibpath_var=LD_LIBRARY_PATH
16079 shlibpath_overrides_runpath=yes
16082 nto-qnx*)
16083 version_type=linux
16084 need_lib_prefix=no
16085 need_version=no
16086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16087 soname_spec='${libname}${release}${shared_ext}$major'
16088 shlibpath_var=LD_LIBRARY_PATH
16089 shlibpath_overrides_runpath=yes
16092 openbsd*)
16093 version_type=sunos
16094 sys_lib_dlsearch_path_spec="/usr/lib"
16095 need_lib_prefix=no
16096 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16097 case $host_os in
16098 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16099 *) need_version=no ;;
16100 esac
16101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16102 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16103 shlibpath_var=LD_LIBRARY_PATH
16104 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16105 case $host_os in
16106 openbsd2.[89] | openbsd2.[89].*)
16107 shlibpath_overrides_runpath=no
16110 shlibpath_overrides_runpath=yes
16112 esac
16113 else
16114 shlibpath_overrides_runpath=yes
16118 os2*)
16119 libname_spec='$name'
16120 shrext_cmds=".dll"
16121 need_lib_prefix=no
16122 library_names_spec='$libname${shared_ext} $libname.a'
16123 dynamic_linker='OS/2 ld.exe'
16124 shlibpath_var=LIBPATH
16127 osf3* | osf4* | osf5*)
16128 version_type=osf
16129 need_lib_prefix=no
16130 need_version=no
16131 soname_spec='${libname}${release}${shared_ext}$major'
16132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16133 shlibpath_var=LD_LIBRARY_PATH
16134 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16135 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16138 rdos*)
16139 dynamic_linker=no
16142 solaris*)
16143 version_type=linux
16144 need_lib_prefix=no
16145 need_version=no
16146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16147 soname_spec='${libname}${release}${shared_ext}$major'
16148 shlibpath_var=LD_LIBRARY_PATH
16149 shlibpath_overrides_runpath=yes
16150 hardcode_into_libs=yes
16151 # ldd complains unless libraries are executable
16152 postinstall_cmds='chmod +x $lib'
16155 sunos4*)
16156 version_type=sunos
16157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16158 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16159 shlibpath_var=LD_LIBRARY_PATH
16160 shlibpath_overrides_runpath=yes
16161 if test "$with_gnu_ld" = yes; then
16162 need_lib_prefix=no
16164 need_version=yes
16167 sysv4 | sysv4.3*)
16168 version_type=linux
16169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16170 soname_spec='${libname}${release}${shared_ext}$major'
16171 shlibpath_var=LD_LIBRARY_PATH
16172 case $host_vendor in
16173 sni)
16174 shlibpath_overrides_runpath=no
16175 need_lib_prefix=no
16176 export_dynamic_flag_spec='${wl}-Blargedynsym'
16177 runpath_var=LD_RUN_PATH
16179 siemens)
16180 need_lib_prefix=no
16182 motorola)
16183 need_lib_prefix=no
16184 need_version=no
16185 shlibpath_overrides_runpath=no
16186 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16188 esac
16191 sysv4*MP*)
16192 if test -d /usr/nec ;then
16193 version_type=linux
16194 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16195 soname_spec='$libname${shared_ext}.$major'
16196 shlibpath_var=LD_LIBRARY_PATH
16200 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16201 version_type=freebsd-elf
16202 need_lib_prefix=no
16203 need_version=no
16204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16205 soname_spec='${libname}${release}${shared_ext}$major'
16206 shlibpath_var=LD_LIBRARY_PATH
16207 hardcode_into_libs=yes
16208 if test "$with_gnu_ld" = yes; then
16209 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16210 shlibpath_overrides_runpath=no
16211 else
16212 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16213 shlibpath_overrides_runpath=yes
16214 case $host_os in
16215 sco3.2v5*)
16216 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16218 esac
16220 sys_lib_dlsearch_path_spec='/usr/lib'
16223 uts4*)
16224 version_type=linux
16225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16226 soname_spec='${libname}${release}${shared_ext}$major'
16227 shlibpath_var=LD_LIBRARY_PATH
16231 dynamic_linker=no
16233 esac
16234 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16235 echo "${ECHO_T}$dynamic_linker" >&6; }
16236 test "$dynamic_linker" = no && can_build_shared=no
16238 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16239 echo $ECHO_N "(cached) $ECHO_C" >&6
16240 else
16241 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16244 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16245 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16246 echo $ECHO_N "(cached) $ECHO_C" >&6
16247 else
16248 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16251 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16253 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16254 if test "$GCC" = yes; then
16255 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16258 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16259 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16260 hardcode_action_F77=
16261 if test -n "$hardcode_libdir_flag_spec_F77" || \
16262 test -n "$runpath_var_F77" || \
16263 test "X$hardcode_automatic_F77" = "Xyes" ; then
16265 # We can hardcode non-existant directories.
16266 if test "$hardcode_direct_F77" != no &&
16267 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16268 # have to relink, otherwise we might link with an installed library
16269 # when we should be linking with a yet-to-be-installed one
16270 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16271 test "$hardcode_minus_L_F77" != no; then
16272 # Linking always hardcodes the temporary library directory.
16273 hardcode_action_F77=relink
16274 else
16275 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16276 hardcode_action_F77=immediate
16278 else
16279 # We cannot hardcode anything, or else we can only hardcode existing
16280 # directories.
16281 hardcode_action_F77=unsupported
16283 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16284 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16286 if test "$hardcode_action_F77" = relink; then
16287 # Fast installation is not supported
16288 enable_fast_install=no
16289 elif test "$shlibpath_overrides_runpath" = yes ||
16290 test "$enable_shared" = no; then
16291 # Fast installation is not necessary
16292 enable_fast_install=needless
16296 # The else clause should only fire when bootstrapping the
16297 # libtool distribution, otherwise you forgot to ship ltmain.sh
16298 # with your package, and you will get complaints that there are
16299 # no rules to generate ltmain.sh.
16300 if test -f "$ltmain"; then
16301 # See if we are running on zsh, and set the options which allow our commands through
16302 # without removal of \ escapes.
16303 if test -n "${ZSH_VERSION+set}" ; then
16304 setopt NO_GLOB_SUBST
16306 # Now quote all the things that may contain metacharacters while being
16307 # careful not to overquote the AC_SUBSTed values. We take copies of the
16308 # variables and quote the copies for generation of the libtool script.
16309 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16310 SED SHELL STRIP \
16311 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16312 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16313 deplibs_check_method reload_flag reload_cmds need_locks \
16314 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16315 lt_cv_sys_global_symbol_to_c_name_address \
16316 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16317 old_postinstall_cmds old_postuninstall_cmds \
16318 compiler_F77 \
16319 CC_F77 \
16320 LD_F77 \
16321 lt_prog_compiler_wl_F77 \
16322 lt_prog_compiler_pic_F77 \
16323 lt_prog_compiler_static_F77 \
16324 lt_prog_compiler_no_builtin_flag_F77 \
16325 export_dynamic_flag_spec_F77 \
16326 thread_safe_flag_spec_F77 \
16327 whole_archive_flag_spec_F77 \
16328 enable_shared_with_static_runtimes_F77 \
16329 old_archive_cmds_F77 \
16330 old_archive_from_new_cmds_F77 \
16331 predep_objects_F77 \
16332 postdep_objects_F77 \
16333 predeps_F77 \
16334 postdeps_F77 \
16335 compiler_lib_search_path_F77 \
16336 compiler_lib_search_dirs_F77 \
16337 archive_cmds_F77 \
16338 archive_expsym_cmds_F77 \
16339 postinstall_cmds_F77 \
16340 postuninstall_cmds_F77 \
16341 old_archive_from_expsyms_cmds_F77 \
16342 allow_undefined_flag_F77 \
16343 no_undefined_flag_F77 \
16344 export_symbols_cmds_F77 \
16345 hardcode_libdir_flag_spec_F77 \
16346 hardcode_libdir_flag_spec_ld_F77 \
16347 hardcode_libdir_separator_F77 \
16348 hardcode_automatic_F77 \
16349 module_cmds_F77 \
16350 module_expsym_cmds_F77 \
16351 lt_cv_prog_compiler_c_o_F77 \
16352 fix_srcfile_path_F77 \
16353 exclude_expsyms_F77 \
16354 include_expsyms_F77; do
16356 case $var in
16357 old_archive_cmds_F77 | \
16358 old_archive_from_new_cmds_F77 | \
16359 archive_cmds_F77 | \
16360 archive_expsym_cmds_F77 | \
16361 module_cmds_F77 | \
16362 module_expsym_cmds_F77 | \
16363 old_archive_from_expsyms_cmds_F77 | \
16364 export_symbols_cmds_F77 | \
16365 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16366 postinstall_cmds | postuninstall_cmds | \
16367 old_postinstall_cmds | old_postuninstall_cmds | \
16368 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16369 # Double-quote double-evaled strings.
16370 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16373 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16375 esac
16376 done
16378 case $lt_echo in
16379 *'\$0 --fallback-echo"')
16380 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16382 esac
16384 cfgfile="$ofile"
16386 cat <<__EOF__ >> "$cfgfile"
16387 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16389 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16391 # Shell to use when invoking shell scripts.
16392 SHELL=$lt_SHELL
16394 # Whether or not to build shared libraries.
16395 build_libtool_libs=$enable_shared
16397 # Whether or not to build static libraries.
16398 build_old_libs=$enable_static
16400 # Whether or not to add -lc for building shared libraries.
16401 build_libtool_need_lc=$archive_cmds_need_lc_F77
16403 # Whether or not to disallow shared libs when runtime libs are static
16404 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16406 # Whether or not to optimize for fast installation.
16407 fast_install=$enable_fast_install
16409 # The host system.
16410 host_alias=$host_alias
16411 host=$host
16412 host_os=$host_os
16414 # The build system.
16415 build_alias=$build_alias
16416 build=$build
16417 build_os=$build_os
16419 # An echo program that does not interpret backslashes.
16420 echo=$lt_echo
16422 # The archiver.
16423 AR=$lt_AR
16424 AR_FLAGS=$lt_AR_FLAGS
16426 # A C compiler.
16427 LTCC=$lt_LTCC
16429 # LTCC compiler flags.
16430 LTCFLAGS=$lt_LTCFLAGS
16432 # A language-specific compiler.
16433 CC=$lt_compiler_F77
16435 # Is the compiler the GNU C compiler?
16436 with_gcc=$GCC_F77
16438 # An ERE matcher.
16439 EGREP=$lt_EGREP
16441 # The linker used to build libraries.
16442 LD=$lt_LD_F77
16444 # Whether we need hard or soft links.
16445 LN_S=$lt_LN_S
16447 # A BSD-compatible nm program.
16448 NM=$lt_NM
16450 # A symbol stripping program
16451 STRIP=$lt_STRIP
16453 # Used to examine libraries when file_magic_cmd begins "file"
16454 MAGIC_CMD=$MAGIC_CMD
16456 # Used on cygwin: DLL creation program.
16457 DLLTOOL="$DLLTOOL"
16459 # Used on cygwin: object dumper.
16460 OBJDUMP="$OBJDUMP"
16462 # Used on cygwin: assembler.
16463 AS="$AS"
16465 # The name of the directory that contains temporary libtool files.
16466 objdir=$objdir
16468 # How to create reloadable object files.
16469 reload_flag=$lt_reload_flag
16470 reload_cmds=$lt_reload_cmds
16472 # How to pass a linker flag through the compiler.
16473 wl=$lt_lt_prog_compiler_wl_F77
16475 # Object file suffix (normally "o").
16476 objext="$ac_objext"
16478 # Old archive suffix (normally "a").
16479 libext="$libext"
16481 # Shared library suffix (normally ".so").
16482 shrext_cmds='$shrext_cmds'
16484 # Executable file suffix (normally "").
16485 exeext="$exeext"
16487 # Additional compiler flags for building library objects.
16488 pic_flag=$lt_lt_prog_compiler_pic_F77
16489 pic_mode=$pic_mode
16491 # What is the maximum length of a command?
16492 max_cmd_len=$lt_cv_sys_max_cmd_len
16494 # Does compiler simultaneously support -c and -o options?
16495 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16497 # Must we lock files when doing compilation?
16498 need_locks=$lt_need_locks
16500 # Do we need the lib prefix for modules?
16501 need_lib_prefix=$need_lib_prefix
16503 # Do we need a version for libraries?
16504 need_version=$need_version
16506 # Whether dlopen is supported.
16507 dlopen_support=$enable_dlopen
16509 # Whether dlopen of programs is supported.
16510 dlopen_self=$enable_dlopen_self
16512 # Whether dlopen of statically linked programs is supported.
16513 dlopen_self_static=$enable_dlopen_self_static
16515 # Compiler flag to prevent dynamic linking.
16516 link_static_flag=$lt_lt_prog_compiler_static_F77
16518 # Compiler flag to turn off builtin functions.
16519 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16521 # Compiler flag to allow reflexive dlopens.
16522 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16524 # Compiler flag to generate shared objects directly from archives.
16525 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16527 # Compiler flag to generate thread-safe objects.
16528 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16530 # Library versioning type.
16531 version_type=$version_type
16533 # Format of library name prefix.
16534 libname_spec=$lt_libname_spec
16536 # List of archive names. First name is the real one, the rest are links.
16537 # The last name is the one that the linker finds with -lNAME.
16538 library_names_spec=$lt_library_names_spec
16540 # The coded name of the library, if different from the real name.
16541 soname_spec=$lt_soname_spec
16543 # Commands used to build and install an old-style archive.
16544 RANLIB=$lt_RANLIB
16545 old_archive_cmds=$lt_old_archive_cmds_F77
16546 old_postinstall_cmds=$lt_old_postinstall_cmds
16547 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16549 # Create an old-style archive from a shared archive.
16550 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16552 # Create a temporary old-style archive to link instead of a shared archive.
16553 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16555 # Commands used to build and install a shared archive.
16556 archive_cmds=$lt_archive_cmds_F77
16557 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16558 postinstall_cmds=$lt_postinstall_cmds
16559 postuninstall_cmds=$lt_postuninstall_cmds
16561 # Commands used to build a loadable module (assumed same as above if empty)
16562 module_cmds=$lt_module_cmds_F77
16563 module_expsym_cmds=$lt_module_expsym_cmds_F77
16565 # Commands to strip libraries.
16566 old_striplib=$lt_old_striplib
16567 striplib=$lt_striplib
16569 # Dependencies to place before the objects being linked to create a
16570 # shared library.
16571 predep_objects=$lt_predep_objects_F77
16573 # Dependencies to place after the objects being linked to create a
16574 # shared library.
16575 postdep_objects=$lt_postdep_objects_F77
16577 # Dependencies to place before the objects being linked to create a
16578 # shared library.
16579 predeps=$lt_predeps_F77
16581 # Dependencies to place after the objects being linked to create a
16582 # shared library.
16583 postdeps=$lt_postdeps_F77
16585 # The directories searched by this compiler when creating a shared
16586 # library
16587 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16589 # The library search path used internally by the compiler when linking
16590 # a shared library.
16591 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16593 # Method to check whether dependent libraries are shared objects.
16594 deplibs_check_method=$lt_deplibs_check_method
16596 # Command to use when deplibs_check_method == file_magic.
16597 file_magic_cmd=$lt_file_magic_cmd
16599 # Flag that allows shared libraries with undefined symbols to be built.
16600 allow_undefined_flag=$lt_allow_undefined_flag_F77
16602 # Flag that forces no undefined symbols.
16603 no_undefined_flag=$lt_no_undefined_flag_F77
16605 # Commands used to finish a libtool library installation in a directory.
16606 finish_cmds=$lt_finish_cmds
16608 # Same as above, but a single script fragment to be evaled but not shown.
16609 finish_eval=$lt_finish_eval
16611 # Take the output of nm and produce a listing of raw symbols and C names.
16612 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16614 # Transform the output of nm in a proper C declaration
16615 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16617 # Transform the output of nm in a C name address pair
16618 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16620 # This is the shared library runtime path variable.
16621 runpath_var=$runpath_var
16623 # This is the shared library path variable.
16624 shlibpath_var=$shlibpath_var
16626 # Is shlibpath searched before the hard-coded library search path?
16627 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16629 # How to hardcode a shared library path into an executable.
16630 hardcode_action=$hardcode_action_F77
16632 # Whether we should hardcode library paths into libraries.
16633 hardcode_into_libs=$hardcode_into_libs
16635 # Flag to hardcode \$libdir into a binary during linking.
16636 # This must work even if \$libdir does not exist.
16637 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16639 # If ld is used when linking, flag to hardcode \$libdir into
16640 # a binary during linking. This must work even if \$libdir does
16641 # not exist.
16642 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16644 # Whether we need a single -rpath flag with a separated argument.
16645 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16647 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16648 # resulting binary.
16649 hardcode_direct=$hardcode_direct_F77
16651 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16652 # resulting binary.
16653 hardcode_minus_L=$hardcode_minus_L_F77
16655 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16656 # the resulting binary.
16657 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16659 # Set to yes if building a shared library automatically hardcodes DIR into the library
16660 # and all subsequent libraries and executables linked against it.
16661 hardcode_automatic=$hardcode_automatic_F77
16663 # Variables whose values should be saved in libtool wrapper scripts and
16664 # restored at relink time.
16665 variables_saved_for_relink="$variables_saved_for_relink"
16667 # Whether libtool must link a program against all its dependency libraries.
16668 link_all_deplibs=$link_all_deplibs_F77
16670 # Compile-time system search path for libraries
16671 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16673 # Run-time system search path for libraries
16674 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16676 # Fix the shell variable \$srcfile for the compiler.
16677 fix_srcfile_path=$lt_fix_srcfile_path
16679 # Set to yes if exported symbols are required.
16680 always_export_symbols=$always_export_symbols_F77
16682 # The commands to list exported symbols.
16683 export_symbols_cmds=$lt_export_symbols_cmds_F77
16685 # The commands to extract the exported symbol list from a shared archive.
16686 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16688 # Symbols that should not be listed in the preloaded symbols.
16689 exclude_expsyms=$lt_exclude_expsyms_F77
16691 # Symbols that must always be exported.
16692 include_expsyms=$lt_include_expsyms_F77
16694 # ### END LIBTOOL TAG CONFIG: $tagname
16696 __EOF__
16699 else
16700 # If there is no Makefile yet, we rely on a make rule to execute
16701 # `config.status --recheck' to rerun these tests and create the
16702 # libtool script then.
16703 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16704 if test -f "$ltmain_in"; then
16705 test -f Makefile && make "$ltmain"
16710 ac_ext=c
16711 ac_cpp='$CPP $CPPFLAGS'
16712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16716 CC="$lt_save_CC"
16718 else
16719 tagname=""
16723 GCJ)
16724 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16727 # Source file extension for Java test sources.
16728 ac_ext=java
16730 # Object file extension for compiled Java test sources.
16731 objext=o
16732 objext_GCJ=$objext
16734 # Code to be used in simple compile tests
16735 lt_simple_compile_test_code="class foo {}"
16737 # Code to be used in simple link tests
16738 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16740 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16742 # If no C compiler was specified, use CC.
16743 LTCC=${LTCC-"$CC"}
16745 # If no C compiler flags were specified, use CFLAGS.
16746 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16748 # Allow CC to be a program name with arguments.
16749 compiler=$CC
16752 # save warnings/boilerplate of simple test code
16753 ac_outfile=conftest.$ac_objext
16754 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16755 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16756 _lt_compiler_boilerplate=`cat conftest.err`
16757 $rm conftest*
16759 ac_outfile=conftest.$ac_objext
16760 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16761 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16762 _lt_linker_boilerplate=`cat conftest.err`
16763 $rm -r conftest*
16766 # Allow CC to be a program name with arguments.
16767 lt_save_CC="$CC"
16768 CC=${GCJ-"gcj"}
16769 compiler=$CC
16770 compiler_GCJ=$CC
16771 for cc_temp in $compiler""; do
16772 case $cc_temp in
16773 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16774 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16775 \-*) ;;
16776 *) break;;
16777 esac
16778 done
16779 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16782 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16783 archive_cmds_need_lc_GCJ=no
16785 old_archive_cmds_GCJ=$old_archive_cmds
16788 lt_prog_compiler_no_builtin_flag_GCJ=
16790 if test "$GCC" = yes; then
16791 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16794 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16795 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16796 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16797 echo $ECHO_N "(cached) $ECHO_C" >&6
16798 else
16799 lt_cv_prog_compiler_rtti_exceptions=no
16800 ac_outfile=conftest.$ac_objext
16801 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16802 lt_compiler_flag="-fno-rtti -fno-exceptions"
16803 # Insert the option either (1) after the last *FLAGS variable, or
16804 # (2) before a word containing "conftest.", or (3) at the end.
16805 # Note that $ac_compile itself does not contain backslashes and begins
16806 # with a dollar sign (not a hyphen), so the echo should work correctly.
16807 # The option is referenced via a variable to avoid confusing sed.
16808 lt_compile=`echo "$ac_compile" | $SED \
16809 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16810 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16811 -e 's:$: $lt_compiler_flag:'`
16812 (eval echo "\"\$as_me:16812: $lt_compile\"" >&5)
16813 (eval "$lt_compile" 2>conftest.err)
16814 ac_status=$?
16815 cat conftest.err >&5
16816 echo "$as_me:16816: \$? = $ac_status" >&5
16817 if (exit $ac_status) && test -s "$ac_outfile"; then
16818 # The compiler can only warn and ignore the option if not recognized
16819 # So say no if there are warnings other than the usual output.
16820 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16821 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16822 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16823 lt_cv_prog_compiler_rtti_exceptions=yes
16826 $rm conftest*
16829 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16830 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16832 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16833 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16834 else
16840 lt_prog_compiler_wl_GCJ=
16841 lt_prog_compiler_pic_GCJ=
16842 lt_prog_compiler_static_GCJ=
16844 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16845 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16847 if test "$GCC" = yes; then
16848 lt_prog_compiler_wl_GCJ='-Wl,'
16849 lt_prog_compiler_static_GCJ='-static'
16851 case $host_os in
16852 aix*)
16853 # All AIX code is PIC.
16854 if test "$host_cpu" = ia64; then
16855 # AIX 5 now supports IA64 processor
16856 lt_prog_compiler_static_GCJ='-Bstatic'
16860 amigaos*)
16861 # FIXME: we need at least 68020 code to build shared libraries, but
16862 # adding the `-m68020' flag to GCC prevents building anything better,
16863 # like `-m68040'.
16864 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16867 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16868 # PIC is the default for these OSes.
16871 mingw* | cygwin* | pw32* | os2*)
16872 # This hack is so that the source file can tell whether it is being
16873 # built for inclusion in a dll (and should export symbols for example).
16874 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16875 # (--disable-auto-import) libraries
16879 darwin* | rhapsody*)
16880 # PIC is the default on this platform
16881 # Common symbols not allowed in MH_DYLIB files
16882 lt_prog_compiler_pic_GCJ='-fno-common'
16885 interix[3-9]*)
16886 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16887 # Instead, we relocate shared libraries at runtime.
16890 msdosdjgpp*)
16891 # Just because we use GCC doesn't mean we suddenly get shared libraries
16892 # on systems that don't support them.
16893 lt_prog_compiler_can_build_shared_GCJ=no
16894 enable_shared=no
16897 sysv4*MP*)
16898 if test -d /usr/nec; then
16899 lt_prog_compiler_pic_GCJ=-Kconform_pic
16903 hpux*)
16904 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16905 # not for PA HP-UX.
16906 case $host_cpu in
16907 hppa*64*|ia64*)
16908 # +Z the default
16911 lt_prog_compiler_pic_GCJ='-fPIC'
16913 esac
16917 lt_prog_compiler_pic_GCJ='-fPIC'
16919 esac
16920 else
16921 # PORTME Check for flag to pass linker flags through the system compiler.
16922 case $host_os in
16923 aix*)
16924 lt_prog_compiler_wl_GCJ='-Wl,'
16925 if test "$host_cpu" = ia64; then
16926 # AIX 5 now supports IA64 processor
16927 lt_prog_compiler_static_GCJ='-Bstatic'
16928 else
16929 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16932 darwin*)
16933 # PIC is the default on this platform
16934 # Common symbols not allowed in MH_DYLIB files
16935 case $cc_basename in
16936 xlc*)
16937 lt_prog_compiler_pic_GCJ='-qnocommon'
16938 lt_prog_compiler_wl_GCJ='-Wl,'
16940 esac
16943 mingw* | cygwin* | pw32* | os2*)
16944 # This hack is so that the source file can tell whether it is being
16945 # built for inclusion in a dll (and should export symbols for example).
16949 hpux9* | hpux10* | hpux11*)
16950 lt_prog_compiler_wl_GCJ='-Wl,'
16951 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16952 # not for PA HP-UX.
16953 case $host_cpu in
16954 hppa*64*|ia64*)
16955 # +Z the default
16958 lt_prog_compiler_pic_GCJ='+Z'
16960 esac
16961 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16962 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16965 irix5* | irix6* | nonstopux*)
16966 lt_prog_compiler_wl_GCJ='-Wl,'
16967 # PIC (with -KPIC) is the default.
16968 lt_prog_compiler_static_GCJ='-non_shared'
16971 newsos6)
16972 lt_prog_compiler_pic_GCJ='-KPIC'
16973 lt_prog_compiler_static_GCJ='-Bstatic'
16976 linux* | k*bsd*-gnu)
16977 case $cc_basename in
16978 icc* | ecc*)
16979 lt_prog_compiler_wl_GCJ='-Wl,'
16980 lt_prog_compiler_pic_GCJ='-KPIC'
16981 lt_prog_compiler_static_GCJ='-static'
16983 pgcc* | pgf77* | pgf90* | pgf95*)
16984 # Portland Group compilers (*not* the Pentium gcc compiler,
16985 # which looks to be a dead project)
16986 lt_prog_compiler_wl_GCJ='-Wl,'
16987 lt_prog_compiler_pic_GCJ='-fpic'
16988 lt_prog_compiler_static_GCJ='-Bstatic'
16990 ccc*)
16991 lt_prog_compiler_wl_GCJ='-Wl,'
16992 # All Alpha code is PIC.
16993 lt_prog_compiler_static_GCJ='-non_shared'
16996 case `$CC -V 2>&1 | sed 5q` in
16997 *Sun\ C*)
16998 # Sun C 5.9
16999 lt_prog_compiler_pic_GCJ='-KPIC'
17000 lt_prog_compiler_static_GCJ='-Bstatic'
17001 lt_prog_compiler_wl_GCJ='-Wl,'
17003 *Sun\ F*)
17004 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17005 lt_prog_compiler_pic_GCJ='-KPIC'
17006 lt_prog_compiler_static_GCJ='-Bstatic'
17007 lt_prog_compiler_wl_GCJ=''
17009 esac
17011 esac
17014 osf3* | osf4* | osf5*)
17015 lt_prog_compiler_wl_GCJ='-Wl,'
17016 # All OSF/1 code is PIC.
17017 lt_prog_compiler_static_GCJ='-non_shared'
17020 rdos*)
17021 lt_prog_compiler_static_GCJ='-non_shared'
17024 solaris*)
17025 lt_prog_compiler_pic_GCJ='-KPIC'
17026 lt_prog_compiler_static_GCJ='-Bstatic'
17027 case $cc_basename in
17028 f77* | f90* | f95*)
17029 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17031 lt_prog_compiler_wl_GCJ='-Wl,';;
17032 esac
17035 sunos4*)
17036 lt_prog_compiler_wl_GCJ='-Qoption ld '
17037 lt_prog_compiler_pic_GCJ='-PIC'
17038 lt_prog_compiler_static_GCJ='-Bstatic'
17041 sysv4 | sysv4.2uw2* | sysv4.3*)
17042 lt_prog_compiler_wl_GCJ='-Wl,'
17043 lt_prog_compiler_pic_GCJ='-KPIC'
17044 lt_prog_compiler_static_GCJ='-Bstatic'
17047 sysv4*MP*)
17048 if test -d /usr/nec ;then
17049 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17050 lt_prog_compiler_static_GCJ='-Bstatic'
17054 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17055 lt_prog_compiler_wl_GCJ='-Wl,'
17056 lt_prog_compiler_pic_GCJ='-KPIC'
17057 lt_prog_compiler_static_GCJ='-Bstatic'
17060 unicos*)
17061 lt_prog_compiler_wl_GCJ='-Wl,'
17062 lt_prog_compiler_can_build_shared_GCJ=no
17065 uts4*)
17066 lt_prog_compiler_pic_GCJ='-pic'
17067 lt_prog_compiler_static_GCJ='-Bstatic'
17071 lt_prog_compiler_can_build_shared_GCJ=no
17073 esac
17076 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17077 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17080 # Check to make sure the PIC flag actually works.
17082 if test -n "$lt_prog_compiler_pic_GCJ"; then
17084 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17085 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17086 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17087 echo $ECHO_N "(cached) $ECHO_C" >&6
17088 else
17089 lt_cv_prog_compiler_pic_works_GCJ=no
17090 ac_outfile=conftest.$ac_objext
17091 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17092 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17093 # Insert the option either (1) after the last *FLAGS variable, or
17094 # (2) before a word containing "conftest.", or (3) at the end.
17095 # Note that $ac_compile itself does not contain backslashes and begins
17096 # with a dollar sign (not a hyphen), so the echo should work correctly.
17097 # The option is referenced via a variable to avoid confusing sed.
17098 lt_compile=`echo "$ac_compile" | $SED \
17099 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17100 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17101 -e 's:$: $lt_compiler_flag:'`
17102 (eval echo "\"\$as_me:17102: $lt_compile\"" >&5)
17103 (eval "$lt_compile" 2>conftest.err)
17104 ac_status=$?
17105 cat conftest.err >&5
17106 echo "$as_me:17106: \$? = $ac_status" >&5
17107 if (exit $ac_status) && test -s "$ac_outfile"; then
17108 # The compiler can only warn and ignore the option if not recognized
17109 # So say no if there are warnings other than the usual output.
17110 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17111 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17112 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17113 lt_cv_prog_compiler_pic_works_GCJ=yes
17116 $rm conftest*
17119 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17120 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17122 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17123 case $lt_prog_compiler_pic_GCJ in
17124 "" | " "*) ;;
17125 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17126 esac
17127 else
17128 lt_prog_compiler_pic_GCJ=
17129 lt_prog_compiler_can_build_shared_GCJ=no
17133 case $host_os in
17134 # For platforms which do not support PIC, -DPIC is meaningless:
17135 *djgpp*)
17136 lt_prog_compiler_pic_GCJ=
17139 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17141 esac
17144 # Check to make sure the static flag actually works.
17146 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17147 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17148 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17149 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17150 echo $ECHO_N "(cached) $ECHO_C" >&6
17151 else
17152 lt_cv_prog_compiler_static_works_GCJ=no
17153 save_LDFLAGS="$LDFLAGS"
17154 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17155 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17156 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17157 # The linker can only warn and ignore the option if not recognized
17158 # So say no if there are warnings
17159 if test -s conftest.err; then
17160 # Append any errors to the config.log.
17161 cat conftest.err 1>&5
17162 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17163 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17164 if diff conftest.exp conftest.er2 >/dev/null; then
17165 lt_cv_prog_compiler_static_works_GCJ=yes
17167 else
17168 lt_cv_prog_compiler_static_works_GCJ=yes
17171 $rm -r conftest*
17172 LDFLAGS="$save_LDFLAGS"
17175 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17176 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17178 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17180 else
17181 lt_prog_compiler_static_GCJ=
17185 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17186 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17187 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17188 echo $ECHO_N "(cached) $ECHO_C" >&6
17189 else
17190 lt_cv_prog_compiler_c_o_GCJ=no
17191 $rm -r conftest 2>/dev/null
17192 mkdir conftest
17193 cd conftest
17194 mkdir out
17195 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17197 lt_compiler_flag="-o out/conftest2.$ac_objext"
17198 # Insert the option either (1) after the last *FLAGS variable, or
17199 # (2) before a word containing "conftest.", or (3) at the end.
17200 # Note that $ac_compile itself does not contain backslashes and begins
17201 # with a dollar sign (not a hyphen), so the echo should work correctly.
17202 lt_compile=`echo "$ac_compile" | $SED \
17203 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17204 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17205 -e 's:$: $lt_compiler_flag:'`
17206 (eval echo "\"\$as_me:17206: $lt_compile\"" >&5)
17207 (eval "$lt_compile" 2>out/conftest.err)
17208 ac_status=$?
17209 cat out/conftest.err >&5
17210 echo "$as_me:17210: \$? = $ac_status" >&5
17211 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17212 then
17213 # The compiler can only warn and ignore the option if not recognized
17214 # So say no if there are warnings
17215 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17216 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17217 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17218 lt_cv_prog_compiler_c_o_GCJ=yes
17221 chmod u+w . 2>&5
17222 $rm conftest*
17223 # SGI C++ compiler will create directory out/ii_files/ for
17224 # template instantiation
17225 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17226 $rm out/* && rmdir out
17227 cd ..
17228 rmdir conftest
17229 $rm conftest*
17232 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17233 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17236 hard_links="nottested"
17237 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17238 # do not overwrite the value of need_locks provided by the user
17239 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17240 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17241 hard_links=yes
17242 $rm conftest*
17243 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17244 touch conftest.a
17245 ln conftest.a conftest.b 2>&5 || hard_links=no
17246 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17247 { echo "$as_me:$LINENO: result: $hard_links" >&5
17248 echo "${ECHO_T}$hard_links" >&6; }
17249 if test "$hard_links" = no; then
17250 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17251 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17252 need_locks=warn
17254 else
17255 need_locks=no
17258 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17259 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17261 runpath_var=
17262 allow_undefined_flag_GCJ=
17263 enable_shared_with_static_runtimes_GCJ=no
17264 archive_cmds_GCJ=
17265 archive_expsym_cmds_GCJ=
17266 old_archive_From_new_cmds_GCJ=
17267 old_archive_from_expsyms_cmds_GCJ=
17268 export_dynamic_flag_spec_GCJ=
17269 whole_archive_flag_spec_GCJ=
17270 thread_safe_flag_spec_GCJ=
17271 hardcode_libdir_flag_spec_GCJ=
17272 hardcode_libdir_flag_spec_ld_GCJ=
17273 hardcode_libdir_separator_GCJ=
17274 hardcode_direct_GCJ=no
17275 hardcode_minus_L_GCJ=no
17276 hardcode_shlibpath_var_GCJ=unsupported
17277 link_all_deplibs_GCJ=unknown
17278 hardcode_automatic_GCJ=no
17279 module_cmds_GCJ=
17280 module_expsym_cmds_GCJ=
17281 always_export_symbols_GCJ=no
17282 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17283 # include_expsyms should be a list of space-separated symbols to be *always*
17284 # included in the symbol list
17285 include_expsyms_GCJ=
17286 # exclude_expsyms can be an extended regexp of symbols to exclude
17287 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17288 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17289 # as well as any symbol that contains `d'.
17290 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17291 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17292 # platforms (ab)use it in PIC code, but their linkers get confused if
17293 # the symbol is explicitly referenced. Since portable code cannot
17294 # rely on this symbol name, it's probably fine to never include it in
17295 # preloaded symbol tables.
17296 # Exclude shared library initialization/finalization symbols.
17297 extract_expsyms_cmds=
17298 # Just being paranoid about ensuring that cc_basename is set.
17299 for cc_temp in $compiler""; do
17300 case $cc_temp in
17301 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17302 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17303 \-*) ;;
17304 *) break;;
17305 esac
17306 done
17307 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17309 case $host_os in
17310 cygwin* | mingw* | pw32*)
17311 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17312 # When not using gcc, we currently assume that we are using
17313 # Microsoft Visual C++.
17314 if test "$GCC" != yes; then
17315 with_gnu_ld=no
17318 interix*)
17319 # we just hope/assume this is gcc and not c89 (= MSVC++)
17320 with_gnu_ld=yes
17322 openbsd*)
17323 with_gnu_ld=no
17325 esac
17327 ld_shlibs_GCJ=yes
17328 if test "$with_gnu_ld" = yes; then
17329 # If archive_cmds runs LD, not CC, wlarc should be empty
17330 wlarc='${wl}'
17332 # Set some defaults for GNU ld with shared library support. These
17333 # are reset later if shared libraries are not supported. Putting them
17334 # here allows them to be overridden if necessary.
17335 runpath_var=LD_RUN_PATH
17336 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17337 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17338 # ancient GNU ld didn't support --whole-archive et. al.
17339 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17340 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17341 else
17342 whole_archive_flag_spec_GCJ=
17344 supports_anon_versioning=no
17345 case `$LD -v 2>/dev/null` in
17346 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17347 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17348 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17349 *\ 2.11.*) ;; # other 2.11 versions
17350 *) supports_anon_versioning=yes ;;
17351 esac
17353 # See if GNU ld supports shared libraries.
17354 case $host_os in
17355 aix[3-9]*)
17356 # On AIX/PPC, the GNU linker is very broken
17357 if test "$host_cpu" != ia64; then
17358 ld_shlibs_GCJ=no
17359 cat <<EOF 1>&2
17361 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17362 *** to be unable to reliably create shared libraries on AIX.
17363 *** Therefore, libtool is disabling shared libraries support. If you
17364 *** really care for shared libraries, you may want to modify your PATH
17365 *** so that a non-GNU linker is found, and then restart.
17371 amigaos*)
17372 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17373 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17374 hardcode_minus_L_GCJ=yes
17376 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17377 # that the semantics of dynamic libraries on AmigaOS, at least up
17378 # to version 4, is to share data among multiple programs linked
17379 # with the same dynamic library. Since this doesn't match the
17380 # behavior of shared libraries on other platforms, we can't use
17381 # them.
17382 ld_shlibs_GCJ=no
17385 beos*)
17386 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17387 allow_undefined_flag_GCJ=unsupported
17388 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17389 # support --undefined. This deserves some investigation. FIXME
17390 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17391 else
17392 ld_shlibs_GCJ=no
17396 cygwin* | mingw* | pw32*)
17397 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17398 # as there is no search path for DLLs.
17399 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17400 allow_undefined_flag_GCJ=unsupported
17401 always_export_symbols_GCJ=no
17402 enable_shared_with_static_runtimes_GCJ=yes
17403 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17405 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17406 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17407 # If the export-symbols file already is a .def file (1st line
17408 # is EXPORTS), use it as is; otherwise, prepend...
17409 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17410 cp $export_symbols $output_objdir/$soname.def;
17411 else
17412 echo EXPORTS > $output_objdir/$soname.def;
17413 cat $export_symbols >> $output_objdir/$soname.def;
17415 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17416 else
17417 ld_shlibs_GCJ=no
17421 interix[3-9]*)
17422 hardcode_direct_GCJ=no
17423 hardcode_shlibpath_var_GCJ=no
17424 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17425 export_dynamic_flag_spec_GCJ='${wl}-E'
17426 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17427 # Instead, shared libraries are loaded at an image base (0x10000000 by
17428 # default) and relocated if they conflict, which is a slow very memory
17429 # consuming and fragmenting process. To avoid this, we pick a random,
17430 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17431 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17432 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17433 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17436 gnu* | linux* | k*bsd*-gnu)
17437 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17438 tmp_addflag=
17439 case $cc_basename,$host_cpu in
17440 pgcc*) # Portland Group C compiler
17441 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17442 tmp_addflag=' $pic_flag'
17444 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17445 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17446 tmp_addflag=' $pic_flag -Mnomain' ;;
17447 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17448 tmp_addflag=' -i_dynamic' ;;
17449 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17450 tmp_addflag=' -i_dynamic -nofor_main' ;;
17451 ifc* | ifort*) # Intel Fortran compiler
17452 tmp_addflag=' -nofor_main' ;;
17453 esac
17454 case `$CC -V 2>&1 | sed 5q` in
17455 *Sun\ C*) # Sun C 5.9
17456 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17457 tmp_sharedflag='-G' ;;
17458 *Sun\ F*) # Sun Fortran 8.3
17459 tmp_sharedflag='-G' ;;
17461 tmp_sharedflag='-shared' ;;
17462 esac
17463 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17465 if test $supports_anon_versioning = yes; then
17466 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17467 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17468 $echo "local: *; };" >> $output_objdir/$libname.ver~
17469 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17471 else
17472 ld_shlibs_GCJ=no
17476 netbsd*)
17477 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17478 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17479 wlarc=
17480 else
17481 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17482 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17486 solaris*)
17487 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17488 ld_shlibs_GCJ=no
17489 cat <<EOF 1>&2
17491 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17492 *** create shared libraries on Solaris systems. Therefore, libtool
17493 *** is disabling shared libraries support. We urge you to upgrade GNU
17494 *** binutils to release 2.9.1 or newer. Another option is to modify
17495 *** your PATH or compiler configuration so that the native linker is
17496 *** used, and then restart.
17499 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17500 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17501 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17502 else
17503 ld_shlibs_GCJ=no
17507 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17508 case `$LD -v 2>&1` in
17509 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17510 ld_shlibs_GCJ=no
17511 cat <<_LT_EOF 1>&2
17513 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17514 *** reliably create shared libraries on SCO systems. Therefore, libtool
17515 *** is disabling shared libraries support. We urge you to upgrade GNU
17516 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17517 *** your PATH or compiler configuration so that the native linker is
17518 *** used, and then restart.
17520 _LT_EOF
17523 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17524 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17525 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17526 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17527 else
17528 ld_shlibs_GCJ=no
17531 esac
17534 sunos4*)
17535 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17536 wlarc=
17537 hardcode_direct_GCJ=yes
17538 hardcode_shlibpath_var_GCJ=no
17542 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17543 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17544 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17545 else
17546 ld_shlibs_GCJ=no
17549 esac
17551 if test "$ld_shlibs_GCJ" = no; then
17552 runpath_var=
17553 hardcode_libdir_flag_spec_GCJ=
17554 export_dynamic_flag_spec_GCJ=
17555 whole_archive_flag_spec_GCJ=
17557 else
17558 # PORTME fill in a description of your system's linker (not GNU ld)
17559 case $host_os in
17560 aix3*)
17561 allow_undefined_flag_GCJ=unsupported
17562 always_export_symbols_GCJ=yes
17563 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17564 # Note: this linker hardcodes the directories in LIBPATH if there
17565 # are no directories specified by -L.
17566 hardcode_minus_L_GCJ=yes
17567 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17568 # Neither direct hardcoding nor static linking is supported with a
17569 # broken collect2.
17570 hardcode_direct_GCJ=unsupported
17574 aix[4-9]*)
17575 if test "$host_cpu" = ia64; then
17576 # On IA64, the linker does run time linking by default, so we don't
17577 # have to do anything special.
17578 aix_use_runtimelinking=no
17579 exp_sym_flag='-Bexport'
17580 no_entry_flag=""
17581 else
17582 # If we're using GNU nm, then we don't want the "-C" option.
17583 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17584 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17585 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17586 else
17587 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17589 aix_use_runtimelinking=no
17591 # Test if we are trying to use run time linking or normal
17592 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17593 # need to do runtime linking.
17594 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17595 for ld_flag in $LDFLAGS; do
17596 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17597 aix_use_runtimelinking=yes
17598 break
17600 done
17602 esac
17604 exp_sym_flag='-bexport'
17605 no_entry_flag='-bnoentry'
17608 # When large executables or shared objects are built, AIX ld can
17609 # have problems creating the table of contents. If linking a library
17610 # or program results in "error TOC overflow" add -mminimal-toc to
17611 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17612 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17614 archive_cmds_GCJ=''
17615 hardcode_direct_GCJ=yes
17616 hardcode_libdir_separator_GCJ=':'
17617 link_all_deplibs_GCJ=yes
17619 if test "$GCC" = yes; then
17620 case $host_os in aix4.[012]|aix4.[012].*)
17621 # We only want to do this on AIX 4.2 and lower, the check
17622 # below for broken collect2 doesn't work under 4.3+
17623 collect2name=`${CC} -print-prog-name=collect2`
17624 if test -f "$collect2name" && \
17625 strings "$collect2name" | grep resolve_lib_name >/dev/null
17626 then
17627 # We have reworked collect2
17629 else
17630 # We have old collect2
17631 hardcode_direct_GCJ=unsupported
17632 # It fails to find uninstalled libraries when the uninstalled
17633 # path is not listed in the libpath. Setting hardcode_minus_L
17634 # to unsupported forces relinking
17635 hardcode_minus_L_GCJ=yes
17636 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17637 hardcode_libdir_separator_GCJ=
17640 esac
17641 shared_flag='-shared'
17642 if test "$aix_use_runtimelinking" = yes; then
17643 shared_flag="$shared_flag "'${wl}-G'
17645 else
17646 # not using gcc
17647 if test "$host_cpu" = ia64; then
17648 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17649 # chokes on -Wl,-G. The following line is correct:
17650 shared_flag='-G'
17651 else
17652 if test "$aix_use_runtimelinking" = yes; then
17653 shared_flag='${wl}-G'
17654 else
17655 shared_flag='${wl}-bM:SRE'
17660 # It seems that -bexpall does not export symbols beginning with
17661 # underscore (_), so it is better to generate a list of symbols to export.
17662 always_export_symbols_GCJ=yes
17663 if test "$aix_use_runtimelinking" = yes; then
17664 # Warning - without using the other runtime loading flags (-brtl),
17665 # -berok will link without error, but may produce a broken library.
17666 allow_undefined_flag_GCJ='-berok'
17667 # Determine the default libpath from the value encoded in an empty executable.
17668 cat >conftest.$ac_ext <<_ACEOF
17669 /* confdefs.h. */
17670 _ACEOF
17671 cat confdefs.h >>conftest.$ac_ext
17672 cat >>conftest.$ac_ext <<_ACEOF
17673 /* end confdefs.h. */
17676 main ()
17680 return 0;
17682 _ACEOF
17683 rm -f conftest.$ac_objext conftest$ac_exeext
17684 if { (ac_try="$ac_link"
17685 case "(($ac_try" in
17686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17687 *) ac_try_echo=$ac_try;;
17688 esac
17689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17690 (eval "$ac_link") 2>conftest.er1
17691 ac_status=$?
17692 grep -v '^ *+' conftest.er1 >conftest.err
17693 rm -f conftest.er1
17694 cat conftest.err >&5
17695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696 (exit $ac_status); } && {
17697 test -z "$ac_c_werror_flag" ||
17698 test ! -s conftest.err
17699 } && test -s conftest$ac_exeext &&
17700 $as_test_x conftest$ac_exeext; then
17702 lt_aix_libpath_sed='
17703 /Import File Strings/,/^$/ {
17704 /^0/ {
17705 s/^0 *\(.*\)$/\1/
17709 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17710 # Check for a 64-bit object if we didn't find anything.
17711 if test -z "$aix_libpath"; then
17712 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17714 else
17715 echo "$as_me: failed program was:" >&5
17716 sed 's/^/| /' conftest.$ac_ext >&5
17721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17722 conftest$ac_exeext conftest.$ac_ext
17723 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17725 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17726 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17727 else
17728 if test "$host_cpu" = ia64; then
17729 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17730 allow_undefined_flag_GCJ="-z nodefs"
17731 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
17732 else
17733 # Determine the default libpath from the value encoded in an empty executable.
17734 cat >conftest.$ac_ext <<_ACEOF
17735 /* confdefs.h. */
17736 _ACEOF
17737 cat confdefs.h >>conftest.$ac_ext
17738 cat >>conftest.$ac_ext <<_ACEOF
17739 /* end confdefs.h. */
17742 main ()
17746 return 0;
17748 _ACEOF
17749 rm -f conftest.$ac_objext conftest$ac_exeext
17750 if { (ac_try="$ac_link"
17751 case "(($ac_try" in
17752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17753 *) ac_try_echo=$ac_try;;
17754 esac
17755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17756 (eval "$ac_link") 2>conftest.er1
17757 ac_status=$?
17758 grep -v '^ *+' conftest.er1 >conftest.err
17759 rm -f conftest.er1
17760 cat conftest.err >&5
17761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762 (exit $ac_status); } && {
17763 test -z "$ac_c_werror_flag" ||
17764 test ! -s conftest.err
17765 } && test -s conftest$ac_exeext &&
17766 $as_test_x conftest$ac_exeext; then
17768 lt_aix_libpath_sed='
17769 /Import File Strings/,/^$/ {
17770 /^0/ {
17771 s/^0 *\(.*\)$/\1/
17775 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17776 # Check for a 64-bit object if we didn't find anything.
17777 if test -z "$aix_libpath"; then
17778 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17780 else
17781 echo "$as_me: failed program was:" >&5
17782 sed 's/^/| /' conftest.$ac_ext >&5
17787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17788 conftest$ac_exeext conftest.$ac_ext
17789 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17791 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17792 # Warning - without using the other run time loading flags,
17793 # -berok will link without error, but may produce a broken library.
17794 no_undefined_flag_GCJ=' ${wl}-bernotok'
17795 allow_undefined_flag_GCJ=' ${wl}-berok'
17796 # Exported symbols can be pulled into shared objects from archives
17797 whole_archive_flag_spec_GCJ='$convenience'
17798 archive_cmds_need_lc_GCJ=yes
17799 # This is similar to how AIX traditionally builds its shared libraries.
17800 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17805 amigaos*)
17806 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17807 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17808 hardcode_minus_L_GCJ=yes
17809 # see comment about different semantics on the GNU ld section
17810 ld_shlibs_GCJ=no
17813 bsdi[45]*)
17814 export_dynamic_flag_spec_GCJ=-rdynamic
17817 cygwin* | mingw* | pw32*)
17818 # When not using gcc, we currently assume that we are using
17819 # Microsoft Visual C++.
17820 # hardcode_libdir_flag_spec is actually meaningless, as there is
17821 # no search path for DLLs.
17822 hardcode_libdir_flag_spec_GCJ=' '
17823 allow_undefined_flag_GCJ=unsupported
17824 # Tell ltmain to make .lib files, not .a files.
17825 libext=lib
17826 # Tell ltmain to make .dll files, not .so files.
17827 shrext_cmds=".dll"
17828 # FIXME: Setting linknames here is a bad hack.
17829 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17830 # The linker will automatically build a .lib file if we build a DLL.
17831 old_archive_From_new_cmds_GCJ='true'
17832 # FIXME: Should let the user specify the lib program.
17833 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17834 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17835 enable_shared_with_static_runtimes_GCJ=yes
17838 darwin* | rhapsody*)
17839 case $host_os in
17840 rhapsody* | darwin1.[012])
17841 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17843 *) # Darwin 1.3 on
17844 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17845 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17846 else
17847 case ${MACOSX_DEPLOYMENT_TARGET} in
17848 10.[012])
17849 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17851 10.*)
17852 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17854 esac
17857 esac
17858 archive_cmds_need_lc_GCJ=no
17859 hardcode_direct_GCJ=no
17860 hardcode_automatic_GCJ=yes
17861 hardcode_shlibpath_var_GCJ=unsupported
17862 whole_archive_flag_spec_GCJ=''
17863 link_all_deplibs_GCJ=yes
17864 if test "$GCC" = yes ; then
17865 output_verbose_link_cmd='echo'
17866 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17867 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17868 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17869 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
17870 else
17871 case $cc_basename in
17872 xlc*)
17873 output_verbose_link_cmd='echo'
17874 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17875 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17876 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17877 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17878 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17881 ld_shlibs_GCJ=no
17883 esac
17887 dgux*)
17888 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17889 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17890 hardcode_shlibpath_var_GCJ=no
17893 freebsd1*)
17894 ld_shlibs_GCJ=no
17897 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17898 # support. Future versions do this automatically, but an explicit c++rt0.o
17899 # does not break anything, and helps significantly (at the cost of a little
17900 # extra space).
17901 freebsd2.2*)
17902 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17903 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17904 hardcode_direct_GCJ=yes
17905 hardcode_shlibpath_var_GCJ=no
17908 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17909 freebsd2*)
17910 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17911 hardcode_direct_GCJ=yes
17912 hardcode_minus_L_GCJ=yes
17913 hardcode_shlibpath_var_GCJ=no
17916 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17917 freebsd* | dragonfly*)
17918 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17919 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17920 hardcode_direct_GCJ=yes
17921 hardcode_shlibpath_var_GCJ=no
17924 hpux9*)
17925 if test "$GCC" = yes; then
17926 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17927 else
17928 archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17930 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17931 hardcode_libdir_separator_GCJ=:
17932 hardcode_direct_GCJ=yes
17934 # hardcode_minus_L: Not really in the search PATH,
17935 # but as the default location of the library.
17936 hardcode_minus_L_GCJ=yes
17937 export_dynamic_flag_spec_GCJ='${wl}-E'
17940 hpux10*)
17941 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17942 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17943 else
17944 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17946 if test "$with_gnu_ld" = no; then
17947 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17948 hardcode_libdir_separator_GCJ=:
17950 hardcode_direct_GCJ=yes
17951 export_dynamic_flag_spec_GCJ='${wl}-E'
17953 # hardcode_minus_L: Not really in the search PATH,
17954 # but as the default location of the library.
17955 hardcode_minus_L_GCJ=yes
17959 hpux11*)
17960 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17961 case $host_cpu in
17962 hppa*64*)
17963 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17965 ia64*)
17966 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17969 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17971 esac
17972 else
17973 case $host_cpu in
17974 hppa*64*)
17975 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17977 ia64*)
17978 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17981 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17983 esac
17985 if test "$with_gnu_ld" = no; then
17986 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17987 hardcode_libdir_separator_GCJ=:
17989 case $host_cpu in
17990 hppa*64*|ia64*)
17991 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17992 hardcode_direct_GCJ=no
17993 hardcode_shlibpath_var_GCJ=no
17996 hardcode_direct_GCJ=yes
17997 export_dynamic_flag_spec_GCJ='${wl}-E'
17999 # hardcode_minus_L: Not really in the search PATH,
18000 # but as the default location of the library.
18001 hardcode_minus_L_GCJ=yes
18003 esac
18007 irix5* | irix6* | nonstopux*)
18008 if test "$GCC" = yes; then
18009 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18010 else
18011 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18012 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18014 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18015 hardcode_libdir_separator_GCJ=:
18016 link_all_deplibs_GCJ=yes
18019 netbsd*)
18020 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18021 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18022 else
18023 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18025 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18026 hardcode_direct_GCJ=yes
18027 hardcode_shlibpath_var_GCJ=no
18030 newsos6)
18031 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18032 hardcode_direct_GCJ=yes
18033 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18034 hardcode_libdir_separator_GCJ=:
18035 hardcode_shlibpath_var_GCJ=no
18038 openbsd*)
18039 if test -f /usr/libexec/ld.so; then
18040 hardcode_direct_GCJ=yes
18041 hardcode_shlibpath_var_GCJ=no
18042 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18043 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18044 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18045 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18046 export_dynamic_flag_spec_GCJ='${wl}-E'
18047 else
18048 case $host_os in
18049 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18050 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18051 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18054 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18055 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18057 esac
18059 else
18060 ld_shlibs_GCJ=no
18064 os2*)
18065 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18066 hardcode_minus_L_GCJ=yes
18067 allow_undefined_flag_GCJ=unsupported
18068 archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
18069 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18072 osf3*)
18073 if test "$GCC" = yes; then
18074 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18075 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18076 else
18077 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18078 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18080 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18081 hardcode_libdir_separator_GCJ=:
18084 osf4* | osf5*) # as osf3* with the addition of -msym flag
18085 if test "$GCC" = yes; then
18086 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18087 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18088 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18089 else
18090 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18091 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18092 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
18093 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
18095 # Both c and cxx compiler support -rpath directly
18096 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18098 hardcode_libdir_separator_GCJ=:
18101 solaris*)
18102 no_undefined_flag_GCJ=' -z text'
18103 if test "$GCC" = yes; then
18104 wlarc='${wl}'
18105 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18106 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18107 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18108 else
18109 wlarc=''
18110 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18111 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18112 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18114 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18115 hardcode_shlibpath_var_GCJ=no
18116 case $host_os in
18117 solaris2.[0-5] | solaris2.[0-5].*) ;;
18119 # The compiler driver will combine and reorder linker options,
18120 # but understands `-z linker_flag'. GCC discards it without `$wl',
18121 # but is careful enough not to reorder.
18122 # Supported since Solaris 2.6 (maybe 2.5.1?)
18123 if test "$GCC" = yes; then
18124 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18125 else
18126 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18129 esac
18130 link_all_deplibs_GCJ=yes
18133 sunos4*)
18134 if test "x$host_vendor" = xsequent; then
18135 # Use $CC to link under sequent, because it throws in some extra .o
18136 # files that make .init and .fini sections work.
18137 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18138 else
18139 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18141 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18142 hardcode_direct_GCJ=yes
18143 hardcode_minus_L_GCJ=yes
18144 hardcode_shlibpath_var_GCJ=no
18147 sysv4)
18148 case $host_vendor in
18149 sni)
18150 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18151 hardcode_direct_GCJ=yes # is this really true???
18153 siemens)
18154 ## LD is ld it makes a PLAMLIB
18155 ## CC just makes a GrossModule.
18156 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18157 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18158 hardcode_direct_GCJ=no
18160 motorola)
18161 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18162 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18164 esac
18165 runpath_var='LD_RUN_PATH'
18166 hardcode_shlibpath_var_GCJ=no
18169 sysv4.3*)
18170 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18171 hardcode_shlibpath_var_GCJ=no
18172 export_dynamic_flag_spec_GCJ='-Bexport'
18175 sysv4*MP*)
18176 if test -d /usr/nec; then
18177 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18178 hardcode_shlibpath_var_GCJ=no
18179 runpath_var=LD_RUN_PATH
18180 hardcode_runpath_var=yes
18181 ld_shlibs_GCJ=yes
18185 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18186 no_undefined_flag_GCJ='${wl}-z,text'
18187 archive_cmds_need_lc_GCJ=no
18188 hardcode_shlibpath_var_GCJ=no
18189 runpath_var='LD_RUN_PATH'
18191 if test "$GCC" = yes; then
18192 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18193 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18194 else
18195 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18196 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18200 sysv5* | sco3.2v5* | sco5v6*)
18201 # Note: We can NOT use -z defs as we might desire, because we do not
18202 # link with -lc, and that would cause any symbols used from libc to
18203 # always be unresolved, which means just about no library would
18204 # ever link correctly. If we're not using GNU ld we use -z text
18205 # though, which does catch some bad symbols but isn't as heavy-handed
18206 # as -z defs.
18207 no_undefined_flag_GCJ='${wl}-z,text'
18208 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18209 archive_cmds_need_lc_GCJ=no
18210 hardcode_shlibpath_var_GCJ=no
18211 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18212 hardcode_libdir_separator_GCJ=':'
18213 link_all_deplibs_GCJ=yes
18214 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18215 runpath_var='LD_RUN_PATH'
18217 if test "$GCC" = yes; then
18218 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18219 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18220 else
18221 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18222 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18226 uts4*)
18227 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18228 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18229 hardcode_shlibpath_var_GCJ=no
18233 ld_shlibs_GCJ=no
18235 esac
18238 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18239 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18240 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18243 # Do we need to explicitly link libc?
18245 case "x$archive_cmds_need_lc_GCJ" in
18246 x|xyes)
18247 # Assume -lc should be added
18248 archive_cmds_need_lc_GCJ=yes
18250 if test "$enable_shared" = yes && test "$GCC" = yes; then
18251 case $archive_cmds_GCJ in
18252 *'~'*)
18253 # FIXME: we may have to deal with multi-command sequences.
18255 '$CC '*)
18256 # Test whether the compiler implicitly links with -lc since on some
18257 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18258 # to ld, don't add -lc before -lgcc.
18259 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18260 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18261 $rm conftest*
18262 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18265 (eval $ac_compile) 2>&5
18266 ac_status=$?
18267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18268 (exit $ac_status); } 2>conftest.err; then
18269 soname=conftest
18270 lib=conftest
18271 libobjs=conftest.$ac_objext
18272 deplibs=
18273 wl=$lt_prog_compiler_wl_GCJ
18274 pic_flag=$lt_prog_compiler_pic_GCJ
18275 compiler_flags=-v
18276 linker_flags=-v
18277 verstring=
18278 output_objdir=.
18279 libname=conftest
18280 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18281 allow_undefined_flag_GCJ=
18282 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18283 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18284 ac_status=$?
18285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286 (exit $ac_status); }
18287 then
18288 archive_cmds_need_lc_GCJ=no
18289 else
18290 archive_cmds_need_lc_GCJ=yes
18292 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18293 else
18294 cat conftest.err 1>&5
18296 $rm conftest*
18297 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18298 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18300 esac
18303 esac
18305 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18306 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18307 library_names_spec=
18308 libname_spec='lib$name'
18309 soname_spec=
18310 shrext_cmds=".so"
18311 postinstall_cmds=
18312 postuninstall_cmds=
18313 finish_cmds=
18314 finish_eval=
18315 shlibpath_var=
18316 shlibpath_overrides_runpath=unknown
18317 version_type=none
18318 dynamic_linker="$host_os ld.so"
18319 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18321 need_lib_prefix=unknown
18322 hardcode_into_libs=no
18324 # when you set need_version to no, make sure it does not cause -set_version
18325 # flags to be left without arguments
18326 need_version=unknown
18328 case $host_os in
18329 aix3*)
18330 version_type=linux
18331 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18332 shlibpath_var=LIBPATH
18334 # AIX 3 has no versioning support, so we append a major version to the name.
18335 soname_spec='${libname}${release}${shared_ext}$major'
18338 aix[4-9]*)
18339 version_type=linux
18340 need_lib_prefix=no
18341 need_version=no
18342 hardcode_into_libs=yes
18343 if test "$host_cpu" = ia64; then
18344 # AIX 5 supports IA64
18345 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18346 shlibpath_var=LD_LIBRARY_PATH
18347 else
18348 # With GCC up to 2.95.x, collect2 would create an import file
18349 # for dependence libraries. The import file would start with
18350 # the line `#! .'. This would cause the generated library to
18351 # depend on `.', always an invalid library. This was fixed in
18352 # development snapshots of GCC prior to 3.0.
18353 case $host_os in
18354 aix4 | aix4.[01] | aix4.[01].*)
18355 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18356 echo ' yes '
18357 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18359 else
18360 can_build_shared=no
18363 esac
18364 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18365 # soname into executable. Probably we can add versioning support to
18366 # collect2, so additional links can be useful in future.
18367 if test "$aix_use_runtimelinking" = yes; then
18368 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18369 # instead of lib<name>.a to let people know that these are not
18370 # typical AIX shared libraries.
18371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18372 else
18373 # We preserve .a as extension for shared libraries through AIX4.2
18374 # and later when we are not doing run time linking.
18375 library_names_spec='${libname}${release}.a $libname.a'
18376 soname_spec='${libname}${release}${shared_ext}$major'
18378 shlibpath_var=LIBPATH
18382 amigaos*)
18383 library_names_spec='$libname.ixlibrary $libname.a'
18384 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18385 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'
18388 beos*)
18389 library_names_spec='${libname}${shared_ext}'
18390 dynamic_linker="$host_os ld.so"
18391 shlibpath_var=LIBRARY_PATH
18394 bsdi[45]*)
18395 version_type=linux
18396 need_version=no
18397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18398 soname_spec='${libname}${release}${shared_ext}$major'
18399 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18400 shlibpath_var=LD_LIBRARY_PATH
18401 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18402 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18403 # the default ld.so.conf also contains /usr/contrib/lib and
18404 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18405 # libtool to hard-code these into programs
18408 cygwin* | mingw* | pw32*)
18409 version_type=windows
18410 shrext_cmds=".dll"
18411 need_version=no
18412 need_lib_prefix=no
18414 case $GCC,$host_os in
18415 yes,cygwin* | yes,mingw* | yes,pw32*)
18416 library_names_spec='$libname.dll.a'
18417 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18418 postinstall_cmds='base_file=`basename \${file}`~
18419 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18420 dldir=$destdir/`dirname \$dlpath`~
18421 test -d \$dldir || mkdir -p \$dldir~
18422 $install_prog $dir/$dlname \$dldir/$dlname~
18423 chmod a+x \$dldir/$dlname'
18424 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18425 dlpath=$dir/\$dldll~
18426 $rm \$dlpath'
18427 shlibpath_overrides_runpath=yes
18429 case $host_os in
18430 cygwin*)
18431 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18432 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18433 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18435 mingw*)
18436 # MinGW DLLs use traditional 'lib' prefix
18437 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18438 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18439 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18440 # It is most probably a Windows format PATH printed by
18441 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18442 # path with ; separators, and with drive letters. We can handle the
18443 # drive letters (cygwin fileutils understands them), so leave them,
18444 # especially as we might pass files found there to a mingw objdump,
18445 # which wouldn't understand a cygwinified path. Ahh.
18446 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18447 else
18448 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18451 pw32*)
18452 # pw32 DLLs use 'pw' prefix rather than 'lib'
18453 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18455 esac
18459 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18461 esac
18462 dynamic_linker='Win32 ld.exe'
18463 # FIXME: first we should search . and the directory the executable is in
18464 shlibpath_var=PATH
18467 darwin* | rhapsody*)
18468 dynamic_linker="$host_os dyld"
18469 version_type=darwin
18470 need_lib_prefix=no
18471 need_version=no
18472 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18473 soname_spec='${libname}${release}${major}$shared_ext'
18474 shlibpath_overrides_runpath=yes
18475 shlibpath_var=DYLD_LIBRARY_PATH
18476 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18478 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18481 dgux*)
18482 version_type=linux
18483 need_lib_prefix=no
18484 need_version=no
18485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18486 soname_spec='${libname}${release}${shared_ext}$major'
18487 shlibpath_var=LD_LIBRARY_PATH
18490 freebsd1*)
18491 dynamic_linker=no
18494 freebsd* | dragonfly*)
18495 # DragonFly does not have aout. When/if they implement a new
18496 # versioning mechanism, adjust this.
18497 if test -x /usr/bin/objformat; then
18498 objformat=`/usr/bin/objformat`
18499 else
18500 case $host_os in
18501 freebsd[123]*) objformat=aout ;;
18502 *) objformat=elf ;;
18503 esac
18505 version_type=freebsd-$objformat
18506 case $version_type in
18507 freebsd-elf*)
18508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18509 need_version=no
18510 need_lib_prefix=no
18512 freebsd-*)
18513 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18514 need_version=yes
18516 esac
18517 shlibpath_var=LD_LIBRARY_PATH
18518 case $host_os in
18519 freebsd2*)
18520 shlibpath_overrides_runpath=yes
18522 freebsd3.[01]* | freebsdelf3.[01]*)
18523 shlibpath_overrides_runpath=yes
18524 hardcode_into_libs=yes
18526 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18527 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18528 shlibpath_overrides_runpath=no
18529 hardcode_into_libs=yes
18531 *) # from 4.6 on, and DragonFly
18532 shlibpath_overrides_runpath=yes
18533 hardcode_into_libs=yes
18535 esac
18538 gnu*)
18539 version_type=linux
18540 need_lib_prefix=no
18541 need_version=no
18542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18543 soname_spec='${libname}${release}${shared_ext}$major'
18544 shlibpath_var=LD_LIBRARY_PATH
18545 hardcode_into_libs=yes
18548 hpux9* | hpux10* | hpux11*)
18549 # Give a soname corresponding to the major version so that dld.sl refuses to
18550 # link against other versions.
18551 version_type=sunos
18552 need_lib_prefix=no
18553 need_version=no
18554 case $host_cpu in
18555 ia64*)
18556 shrext_cmds='.so'
18557 hardcode_into_libs=yes
18558 dynamic_linker="$host_os dld.so"
18559 shlibpath_var=LD_LIBRARY_PATH
18560 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18562 soname_spec='${libname}${release}${shared_ext}$major'
18563 if test "X$HPUX_IA64_MODE" = X32; then
18564 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18565 else
18566 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18568 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18570 hppa*64*)
18571 shrext_cmds='.sl'
18572 hardcode_into_libs=yes
18573 dynamic_linker="$host_os dld.sl"
18574 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18575 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18577 soname_spec='${libname}${release}${shared_ext}$major'
18578 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18579 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18582 shrext_cmds='.sl'
18583 dynamic_linker="$host_os dld.sl"
18584 shlibpath_var=SHLIB_PATH
18585 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18587 soname_spec='${libname}${release}${shared_ext}$major'
18589 esac
18590 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18591 postinstall_cmds='chmod 555 $lib'
18594 interix[3-9]*)
18595 version_type=linux
18596 need_lib_prefix=no
18597 need_version=no
18598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18599 soname_spec='${libname}${release}${shared_ext}$major'
18600 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18601 shlibpath_var=LD_LIBRARY_PATH
18602 shlibpath_overrides_runpath=no
18603 hardcode_into_libs=yes
18606 irix5* | irix6* | nonstopux*)
18607 case $host_os in
18608 nonstopux*) version_type=nonstopux ;;
18610 if test "$lt_cv_prog_gnu_ld" = yes; then
18611 version_type=linux
18612 else
18613 version_type=irix
18614 fi ;;
18615 esac
18616 need_lib_prefix=no
18617 need_version=no
18618 soname_spec='${libname}${release}${shared_ext}$major'
18619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18620 case $host_os in
18621 irix5* | nonstopux*)
18622 libsuff= shlibsuff=
18625 case $LD in # libtool.m4 will add one of these switches to LD
18626 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18627 libsuff= shlibsuff= libmagic=32-bit;;
18628 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18629 libsuff=32 shlibsuff=N32 libmagic=N32;;
18630 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18631 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18632 *) libsuff= shlibsuff= libmagic=never-match;;
18633 esac
18635 esac
18636 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18637 shlibpath_overrides_runpath=no
18638 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18639 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18640 hardcode_into_libs=yes
18643 # No shared lib support for Linux oldld, aout, or coff.
18644 linux*oldld* | linux*aout* | linux*coff*)
18645 dynamic_linker=no
18648 # This must be Linux ELF.
18649 linux* | k*bsd*-gnu)
18650 version_type=linux
18651 need_lib_prefix=no
18652 need_version=no
18653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18654 soname_spec='${libname}${release}${shared_ext}$major'
18655 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18656 shlibpath_var=LD_LIBRARY_PATH
18657 shlibpath_overrides_runpath=no
18658 # This implies no fast_install, which is unacceptable.
18659 # Some rework will be needed to allow for fast_install
18660 # before this can be enabled.
18661 hardcode_into_libs=yes
18663 # Append ld.so.conf contents to the search path
18664 if test -f /etc/ld.so.conf; then
18665 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' ' '`
18666 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18669 # We used to test for /lib/ld.so.1 and disable shared libraries on
18670 # powerpc, because MkLinux only supported shared libraries with the
18671 # GNU dynamic linker. Since this was broken with cross compilers,
18672 # most powerpc-linux boxes support dynamic linking these days and
18673 # people can always --disable-shared, the test was removed, and we
18674 # assume the GNU/Linux dynamic linker is in use.
18675 dynamic_linker='GNU/Linux ld.so'
18678 netbsd*)
18679 version_type=sunos
18680 need_lib_prefix=no
18681 need_version=no
18682 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18684 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18685 dynamic_linker='NetBSD (a.out) ld.so'
18686 else
18687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18688 soname_spec='${libname}${release}${shared_ext}$major'
18689 dynamic_linker='NetBSD ld.elf_so'
18691 shlibpath_var=LD_LIBRARY_PATH
18692 shlibpath_overrides_runpath=yes
18693 hardcode_into_libs=yes
18696 newsos6)
18697 version_type=linux
18698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18699 shlibpath_var=LD_LIBRARY_PATH
18700 shlibpath_overrides_runpath=yes
18703 nto-qnx*)
18704 version_type=linux
18705 need_lib_prefix=no
18706 need_version=no
18707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18708 soname_spec='${libname}${release}${shared_ext}$major'
18709 shlibpath_var=LD_LIBRARY_PATH
18710 shlibpath_overrides_runpath=yes
18713 openbsd*)
18714 version_type=sunos
18715 sys_lib_dlsearch_path_spec="/usr/lib"
18716 need_lib_prefix=no
18717 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18718 case $host_os in
18719 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18720 *) need_version=no ;;
18721 esac
18722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18723 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18724 shlibpath_var=LD_LIBRARY_PATH
18725 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18726 case $host_os in
18727 openbsd2.[89] | openbsd2.[89].*)
18728 shlibpath_overrides_runpath=no
18731 shlibpath_overrides_runpath=yes
18733 esac
18734 else
18735 shlibpath_overrides_runpath=yes
18739 os2*)
18740 libname_spec='$name'
18741 shrext_cmds=".dll"
18742 need_lib_prefix=no
18743 library_names_spec='$libname${shared_ext} $libname.a'
18744 dynamic_linker='OS/2 ld.exe'
18745 shlibpath_var=LIBPATH
18748 osf3* | osf4* | osf5*)
18749 version_type=osf
18750 need_lib_prefix=no
18751 need_version=no
18752 soname_spec='${libname}${release}${shared_ext}$major'
18753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18754 shlibpath_var=LD_LIBRARY_PATH
18755 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18756 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18759 rdos*)
18760 dynamic_linker=no
18763 solaris*)
18764 version_type=linux
18765 need_lib_prefix=no
18766 need_version=no
18767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18768 soname_spec='${libname}${release}${shared_ext}$major'
18769 shlibpath_var=LD_LIBRARY_PATH
18770 shlibpath_overrides_runpath=yes
18771 hardcode_into_libs=yes
18772 # ldd complains unless libraries are executable
18773 postinstall_cmds='chmod +x $lib'
18776 sunos4*)
18777 version_type=sunos
18778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18779 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18780 shlibpath_var=LD_LIBRARY_PATH
18781 shlibpath_overrides_runpath=yes
18782 if test "$with_gnu_ld" = yes; then
18783 need_lib_prefix=no
18785 need_version=yes
18788 sysv4 | sysv4.3*)
18789 version_type=linux
18790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18791 soname_spec='${libname}${release}${shared_ext}$major'
18792 shlibpath_var=LD_LIBRARY_PATH
18793 case $host_vendor in
18794 sni)
18795 shlibpath_overrides_runpath=no
18796 need_lib_prefix=no
18797 export_dynamic_flag_spec='${wl}-Blargedynsym'
18798 runpath_var=LD_RUN_PATH
18800 siemens)
18801 need_lib_prefix=no
18803 motorola)
18804 need_lib_prefix=no
18805 need_version=no
18806 shlibpath_overrides_runpath=no
18807 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18809 esac
18812 sysv4*MP*)
18813 if test -d /usr/nec ;then
18814 version_type=linux
18815 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18816 soname_spec='$libname${shared_ext}.$major'
18817 shlibpath_var=LD_LIBRARY_PATH
18821 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18822 version_type=freebsd-elf
18823 need_lib_prefix=no
18824 need_version=no
18825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18826 soname_spec='${libname}${release}${shared_ext}$major'
18827 shlibpath_var=LD_LIBRARY_PATH
18828 hardcode_into_libs=yes
18829 if test "$with_gnu_ld" = yes; then
18830 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18831 shlibpath_overrides_runpath=no
18832 else
18833 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18834 shlibpath_overrides_runpath=yes
18835 case $host_os in
18836 sco3.2v5*)
18837 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18839 esac
18841 sys_lib_dlsearch_path_spec='/usr/lib'
18844 uts4*)
18845 version_type=linux
18846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18847 soname_spec='${libname}${release}${shared_ext}$major'
18848 shlibpath_var=LD_LIBRARY_PATH
18852 dynamic_linker=no
18854 esac
18855 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18856 echo "${ECHO_T}$dynamic_linker" >&6; }
18857 test "$dynamic_linker" = no && can_build_shared=no
18859 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18860 echo $ECHO_N "(cached) $ECHO_C" >&6
18861 else
18862 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18865 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18866 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18867 echo $ECHO_N "(cached) $ECHO_C" >&6
18868 else
18869 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18872 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18874 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18875 if test "$GCC" = yes; then
18876 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18879 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18880 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18881 hardcode_action_GCJ=
18882 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18883 test -n "$runpath_var_GCJ" || \
18884 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18886 # We can hardcode non-existant directories.
18887 if test "$hardcode_direct_GCJ" != no &&
18888 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18889 # have to relink, otherwise we might link with an installed library
18890 # when we should be linking with a yet-to-be-installed one
18891 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18892 test "$hardcode_minus_L_GCJ" != no; then
18893 # Linking always hardcodes the temporary library directory.
18894 hardcode_action_GCJ=relink
18895 else
18896 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18897 hardcode_action_GCJ=immediate
18899 else
18900 # We cannot hardcode anything, or else we can only hardcode existing
18901 # directories.
18902 hardcode_action_GCJ=unsupported
18904 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18905 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18907 if test "$hardcode_action_GCJ" = relink; then
18908 # Fast installation is not supported
18909 enable_fast_install=no
18910 elif test "$shlibpath_overrides_runpath" = yes ||
18911 test "$enable_shared" = no; then
18912 # Fast installation is not necessary
18913 enable_fast_install=needless
18917 # The else clause should only fire when bootstrapping the
18918 # libtool distribution, otherwise you forgot to ship ltmain.sh
18919 # with your package, and you will get complaints that there are
18920 # no rules to generate ltmain.sh.
18921 if test -f "$ltmain"; then
18922 # See if we are running on zsh, and set the options which allow our commands through
18923 # without removal of \ escapes.
18924 if test -n "${ZSH_VERSION+set}" ; then
18925 setopt NO_GLOB_SUBST
18927 # Now quote all the things that may contain metacharacters while being
18928 # careful not to overquote the AC_SUBSTed values. We take copies of the
18929 # variables and quote the copies for generation of the libtool script.
18930 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18931 SED SHELL STRIP \
18932 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18933 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18934 deplibs_check_method reload_flag reload_cmds need_locks \
18935 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18936 lt_cv_sys_global_symbol_to_c_name_address \
18937 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18938 old_postinstall_cmds old_postuninstall_cmds \
18939 compiler_GCJ \
18940 CC_GCJ \
18941 LD_GCJ \
18942 lt_prog_compiler_wl_GCJ \
18943 lt_prog_compiler_pic_GCJ \
18944 lt_prog_compiler_static_GCJ \
18945 lt_prog_compiler_no_builtin_flag_GCJ \
18946 export_dynamic_flag_spec_GCJ \
18947 thread_safe_flag_spec_GCJ \
18948 whole_archive_flag_spec_GCJ \
18949 enable_shared_with_static_runtimes_GCJ \
18950 old_archive_cmds_GCJ \
18951 old_archive_from_new_cmds_GCJ \
18952 predep_objects_GCJ \
18953 postdep_objects_GCJ \
18954 predeps_GCJ \
18955 postdeps_GCJ \
18956 compiler_lib_search_path_GCJ \
18957 compiler_lib_search_dirs_GCJ \
18958 archive_cmds_GCJ \
18959 archive_expsym_cmds_GCJ \
18960 postinstall_cmds_GCJ \
18961 postuninstall_cmds_GCJ \
18962 old_archive_from_expsyms_cmds_GCJ \
18963 allow_undefined_flag_GCJ \
18964 no_undefined_flag_GCJ \
18965 export_symbols_cmds_GCJ \
18966 hardcode_libdir_flag_spec_GCJ \
18967 hardcode_libdir_flag_spec_ld_GCJ \
18968 hardcode_libdir_separator_GCJ \
18969 hardcode_automatic_GCJ \
18970 module_cmds_GCJ \
18971 module_expsym_cmds_GCJ \
18972 lt_cv_prog_compiler_c_o_GCJ \
18973 fix_srcfile_path_GCJ \
18974 exclude_expsyms_GCJ \
18975 include_expsyms_GCJ; do
18977 case $var in
18978 old_archive_cmds_GCJ | \
18979 old_archive_from_new_cmds_GCJ | \
18980 archive_cmds_GCJ | \
18981 archive_expsym_cmds_GCJ | \
18982 module_cmds_GCJ | \
18983 module_expsym_cmds_GCJ | \
18984 old_archive_from_expsyms_cmds_GCJ | \
18985 export_symbols_cmds_GCJ | \
18986 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18987 postinstall_cmds | postuninstall_cmds | \
18988 old_postinstall_cmds | old_postuninstall_cmds | \
18989 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18990 # Double-quote double-evaled strings.
18991 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18994 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18996 esac
18997 done
18999 case $lt_echo in
19000 *'\$0 --fallback-echo"')
19001 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19003 esac
19005 cfgfile="$ofile"
19007 cat <<__EOF__ >> "$cfgfile"
19008 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19010 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19012 # Shell to use when invoking shell scripts.
19013 SHELL=$lt_SHELL
19015 # Whether or not to build shared libraries.
19016 build_libtool_libs=$enable_shared
19018 # Whether or not to build static libraries.
19019 build_old_libs=$enable_static
19021 # Whether or not to add -lc for building shared libraries.
19022 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19024 # Whether or not to disallow shared libs when runtime libs are static
19025 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19027 # Whether or not to optimize for fast installation.
19028 fast_install=$enable_fast_install
19030 # The host system.
19031 host_alias=$host_alias
19032 host=$host
19033 host_os=$host_os
19035 # The build system.
19036 build_alias=$build_alias
19037 build=$build
19038 build_os=$build_os
19040 # An echo program that does not interpret backslashes.
19041 echo=$lt_echo
19043 # The archiver.
19044 AR=$lt_AR
19045 AR_FLAGS=$lt_AR_FLAGS
19047 # A C compiler.
19048 LTCC=$lt_LTCC
19050 # LTCC compiler flags.
19051 LTCFLAGS=$lt_LTCFLAGS
19053 # A language-specific compiler.
19054 CC=$lt_compiler_GCJ
19056 # Is the compiler the GNU C compiler?
19057 with_gcc=$GCC_GCJ
19059 # An ERE matcher.
19060 EGREP=$lt_EGREP
19062 # The linker used to build libraries.
19063 LD=$lt_LD_GCJ
19065 # Whether we need hard or soft links.
19066 LN_S=$lt_LN_S
19068 # A BSD-compatible nm program.
19069 NM=$lt_NM
19071 # A symbol stripping program
19072 STRIP=$lt_STRIP
19074 # Used to examine libraries when file_magic_cmd begins "file"
19075 MAGIC_CMD=$MAGIC_CMD
19077 # Used on cygwin: DLL creation program.
19078 DLLTOOL="$DLLTOOL"
19080 # Used on cygwin: object dumper.
19081 OBJDUMP="$OBJDUMP"
19083 # Used on cygwin: assembler.
19084 AS="$AS"
19086 # The name of the directory that contains temporary libtool files.
19087 objdir=$objdir
19089 # How to create reloadable object files.
19090 reload_flag=$lt_reload_flag
19091 reload_cmds=$lt_reload_cmds
19093 # How to pass a linker flag through the compiler.
19094 wl=$lt_lt_prog_compiler_wl_GCJ
19096 # Object file suffix (normally "o").
19097 objext="$ac_objext"
19099 # Old archive suffix (normally "a").
19100 libext="$libext"
19102 # Shared library suffix (normally ".so").
19103 shrext_cmds='$shrext_cmds'
19105 # Executable file suffix (normally "").
19106 exeext="$exeext"
19108 # Additional compiler flags for building library objects.
19109 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19110 pic_mode=$pic_mode
19112 # What is the maximum length of a command?
19113 max_cmd_len=$lt_cv_sys_max_cmd_len
19115 # Does compiler simultaneously support -c and -o options?
19116 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19118 # Must we lock files when doing compilation?
19119 need_locks=$lt_need_locks
19121 # Do we need the lib prefix for modules?
19122 need_lib_prefix=$need_lib_prefix
19124 # Do we need a version for libraries?
19125 need_version=$need_version
19127 # Whether dlopen is supported.
19128 dlopen_support=$enable_dlopen
19130 # Whether dlopen of programs is supported.
19131 dlopen_self=$enable_dlopen_self
19133 # Whether dlopen of statically linked programs is supported.
19134 dlopen_self_static=$enable_dlopen_self_static
19136 # Compiler flag to prevent dynamic linking.
19137 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19139 # Compiler flag to turn off builtin functions.
19140 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19142 # Compiler flag to allow reflexive dlopens.
19143 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19145 # Compiler flag to generate shared objects directly from archives.
19146 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19148 # Compiler flag to generate thread-safe objects.
19149 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19151 # Library versioning type.
19152 version_type=$version_type
19154 # Format of library name prefix.
19155 libname_spec=$lt_libname_spec
19157 # List of archive names. First name is the real one, the rest are links.
19158 # The last name is the one that the linker finds with -lNAME.
19159 library_names_spec=$lt_library_names_spec
19161 # The coded name of the library, if different from the real name.
19162 soname_spec=$lt_soname_spec
19164 # Commands used to build and install an old-style archive.
19165 RANLIB=$lt_RANLIB
19166 old_archive_cmds=$lt_old_archive_cmds_GCJ
19167 old_postinstall_cmds=$lt_old_postinstall_cmds
19168 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19170 # Create an old-style archive from a shared archive.
19171 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19173 # Create a temporary old-style archive to link instead of a shared archive.
19174 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19176 # Commands used to build and install a shared archive.
19177 archive_cmds=$lt_archive_cmds_GCJ
19178 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19179 postinstall_cmds=$lt_postinstall_cmds
19180 postuninstall_cmds=$lt_postuninstall_cmds
19182 # Commands used to build a loadable module (assumed same as above if empty)
19183 module_cmds=$lt_module_cmds_GCJ
19184 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19186 # Commands to strip libraries.
19187 old_striplib=$lt_old_striplib
19188 striplib=$lt_striplib
19190 # Dependencies to place before the objects being linked to create a
19191 # shared library.
19192 predep_objects=$lt_predep_objects_GCJ
19194 # Dependencies to place after the objects being linked to create a
19195 # shared library.
19196 postdep_objects=$lt_postdep_objects_GCJ
19198 # Dependencies to place before the objects being linked to create a
19199 # shared library.
19200 predeps=$lt_predeps_GCJ
19202 # Dependencies to place after the objects being linked to create a
19203 # shared library.
19204 postdeps=$lt_postdeps_GCJ
19206 # The directories searched by this compiler when creating a shared
19207 # library
19208 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19210 # The library search path used internally by the compiler when linking
19211 # a shared library.
19212 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19214 # Method to check whether dependent libraries are shared objects.
19215 deplibs_check_method=$lt_deplibs_check_method
19217 # Command to use when deplibs_check_method == file_magic.
19218 file_magic_cmd=$lt_file_magic_cmd
19220 # Flag that allows shared libraries with undefined symbols to be built.
19221 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19223 # Flag that forces no undefined symbols.
19224 no_undefined_flag=$lt_no_undefined_flag_GCJ
19226 # Commands used to finish a libtool library installation in a directory.
19227 finish_cmds=$lt_finish_cmds
19229 # Same as above, but a single script fragment to be evaled but not shown.
19230 finish_eval=$lt_finish_eval
19232 # Take the output of nm and produce a listing of raw symbols and C names.
19233 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19235 # Transform the output of nm in a proper C declaration
19236 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19238 # Transform the output of nm in a C name address pair
19239 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19241 # This is the shared library runtime path variable.
19242 runpath_var=$runpath_var
19244 # This is the shared library path variable.
19245 shlibpath_var=$shlibpath_var
19247 # Is shlibpath searched before the hard-coded library search path?
19248 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19250 # How to hardcode a shared library path into an executable.
19251 hardcode_action=$hardcode_action_GCJ
19253 # Whether we should hardcode library paths into libraries.
19254 hardcode_into_libs=$hardcode_into_libs
19256 # Flag to hardcode \$libdir into a binary during linking.
19257 # This must work even if \$libdir does not exist.
19258 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19260 # If ld is used when linking, flag to hardcode \$libdir into
19261 # a binary during linking. This must work even if \$libdir does
19262 # not exist.
19263 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19265 # Whether we need a single -rpath flag with a separated argument.
19266 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19268 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19269 # resulting binary.
19270 hardcode_direct=$hardcode_direct_GCJ
19272 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19273 # resulting binary.
19274 hardcode_minus_L=$hardcode_minus_L_GCJ
19276 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19277 # the resulting binary.
19278 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19280 # Set to yes if building a shared library automatically hardcodes DIR into the library
19281 # and all subsequent libraries and executables linked against it.
19282 hardcode_automatic=$hardcode_automatic_GCJ
19284 # Variables whose values should be saved in libtool wrapper scripts and
19285 # restored at relink time.
19286 variables_saved_for_relink="$variables_saved_for_relink"
19288 # Whether libtool must link a program against all its dependency libraries.
19289 link_all_deplibs=$link_all_deplibs_GCJ
19291 # Compile-time system search path for libraries
19292 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19294 # Run-time system search path for libraries
19295 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19297 # Fix the shell variable \$srcfile for the compiler.
19298 fix_srcfile_path=$lt_fix_srcfile_path
19300 # Set to yes if exported symbols are required.
19301 always_export_symbols=$always_export_symbols_GCJ
19303 # The commands to list exported symbols.
19304 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19306 # The commands to extract the exported symbol list from a shared archive.
19307 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19309 # Symbols that should not be listed in the preloaded symbols.
19310 exclude_expsyms=$lt_exclude_expsyms_GCJ
19312 # Symbols that must always be exported.
19313 include_expsyms=$lt_include_expsyms_GCJ
19315 # ### END LIBTOOL TAG CONFIG: $tagname
19317 __EOF__
19320 else
19321 # If there is no Makefile yet, we rely on a make rule to execute
19322 # `config.status --recheck' to rerun these tests and create the
19323 # libtool script then.
19324 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19325 if test -f "$ltmain_in"; then
19326 test -f Makefile && make "$ltmain"
19331 ac_ext=c
19332 ac_cpp='$CPP $CPPFLAGS'
19333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19337 CC="$lt_save_CC"
19339 else
19340 tagname=""
19347 # Source file extension for RC test sources.
19348 ac_ext=rc
19350 # Object file extension for compiled RC test sources.
19351 objext=o
19352 objext_RC=$objext
19354 # Code to be used in simple compile tests
19355 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19357 # Code to be used in simple link tests
19358 lt_simple_link_test_code="$lt_simple_compile_test_code"
19360 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19362 # If no C compiler was specified, use CC.
19363 LTCC=${LTCC-"$CC"}
19365 # If no C compiler flags were specified, use CFLAGS.
19366 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19368 # Allow CC to be a program name with arguments.
19369 compiler=$CC
19372 # save warnings/boilerplate of simple test code
19373 ac_outfile=conftest.$ac_objext
19374 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19375 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19376 _lt_compiler_boilerplate=`cat conftest.err`
19377 $rm conftest*
19379 ac_outfile=conftest.$ac_objext
19380 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19381 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19382 _lt_linker_boilerplate=`cat conftest.err`
19383 $rm -r conftest*
19386 # Allow CC to be a program name with arguments.
19387 lt_save_CC="$CC"
19388 CC=${RC-"windres"}
19389 compiler=$CC
19390 compiler_RC=$CC
19391 for cc_temp in $compiler""; do
19392 case $cc_temp in
19393 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19394 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19395 \-*) ;;
19396 *) break;;
19397 esac
19398 done
19399 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19401 lt_cv_prog_compiler_c_o_RC=yes
19403 # The else clause should only fire when bootstrapping the
19404 # libtool distribution, otherwise you forgot to ship ltmain.sh
19405 # with your package, and you will get complaints that there are
19406 # no rules to generate ltmain.sh.
19407 if test -f "$ltmain"; then
19408 # See if we are running on zsh, and set the options which allow our commands through
19409 # without removal of \ escapes.
19410 if test -n "${ZSH_VERSION+set}" ; then
19411 setopt NO_GLOB_SUBST
19413 # Now quote all the things that may contain metacharacters while being
19414 # careful not to overquote the AC_SUBSTed values. We take copies of the
19415 # variables and quote the copies for generation of the libtool script.
19416 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19417 SED SHELL STRIP \
19418 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19419 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19420 deplibs_check_method reload_flag reload_cmds need_locks \
19421 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19422 lt_cv_sys_global_symbol_to_c_name_address \
19423 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19424 old_postinstall_cmds old_postuninstall_cmds \
19425 compiler_RC \
19426 CC_RC \
19427 LD_RC \
19428 lt_prog_compiler_wl_RC \
19429 lt_prog_compiler_pic_RC \
19430 lt_prog_compiler_static_RC \
19431 lt_prog_compiler_no_builtin_flag_RC \
19432 export_dynamic_flag_spec_RC \
19433 thread_safe_flag_spec_RC \
19434 whole_archive_flag_spec_RC \
19435 enable_shared_with_static_runtimes_RC \
19436 old_archive_cmds_RC \
19437 old_archive_from_new_cmds_RC \
19438 predep_objects_RC \
19439 postdep_objects_RC \
19440 predeps_RC \
19441 postdeps_RC \
19442 compiler_lib_search_path_RC \
19443 compiler_lib_search_dirs_RC \
19444 archive_cmds_RC \
19445 archive_expsym_cmds_RC \
19446 postinstall_cmds_RC \
19447 postuninstall_cmds_RC \
19448 old_archive_from_expsyms_cmds_RC \
19449 allow_undefined_flag_RC \
19450 no_undefined_flag_RC \
19451 export_symbols_cmds_RC \
19452 hardcode_libdir_flag_spec_RC \
19453 hardcode_libdir_flag_spec_ld_RC \
19454 hardcode_libdir_separator_RC \
19455 hardcode_automatic_RC \
19456 module_cmds_RC \
19457 module_expsym_cmds_RC \
19458 lt_cv_prog_compiler_c_o_RC \
19459 fix_srcfile_path_RC \
19460 exclude_expsyms_RC \
19461 include_expsyms_RC; do
19463 case $var in
19464 old_archive_cmds_RC | \
19465 old_archive_from_new_cmds_RC | \
19466 archive_cmds_RC | \
19467 archive_expsym_cmds_RC | \
19468 module_cmds_RC | \
19469 module_expsym_cmds_RC | \
19470 old_archive_from_expsyms_cmds_RC | \
19471 export_symbols_cmds_RC | \
19472 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19473 postinstall_cmds | postuninstall_cmds | \
19474 old_postinstall_cmds | old_postuninstall_cmds | \
19475 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19476 # Double-quote double-evaled strings.
19477 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19480 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19482 esac
19483 done
19485 case $lt_echo in
19486 *'\$0 --fallback-echo"')
19487 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19489 esac
19491 cfgfile="$ofile"
19493 cat <<__EOF__ >> "$cfgfile"
19494 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19496 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19498 # Shell to use when invoking shell scripts.
19499 SHELL=$lt_SHELL
19501 # Whether or not to build shared libraries.
19502 build_libtool_libs=$enable_shared
19504 # Whether or not to build static libraries.
19505 build_old_libs=$enable_static
19507 # Whether or not to add -lc for building shared libraries.
19508 build_libtool_need_lc=$archive_cmds_need_lc_RC
19510 # Whether or not to disallow shared libs when runtime libs are static
19511 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19513 # Whether or not to optimize for fast installation.
19514 fast_install=$enable_fast_install
19516 # The host system.
19517 host_alias=$host_alias
19518 host=$host
19519 host_os=$host_os
19521 # The build system.
19522 build_alias=$build_alias
19523 build=$build
19524 build_os=$build_os
19526 # An echo program that does not interpret backslashes.
19527 echo=$lt_echo
19529 # The archiver.
19530 AR=$lt_AR
19531 AR_FLAGS=$lt_AR_FLAGS
19533 # A C compiler.
19534 LTCC=$lt_LTCC
19536 # LTCC compiler flags.
19537 LTCFLAGS=$lt_LTCFLAGS
19539 # A language-specific compiler.
19540 CC=$lt_compiler_RC
19542 # Is the compiler the GNU C compiler?
19543 with_gcc=$GCC_RC
19545 # An ERE matcher.
19546 EGREP=$lt_EGREP
19548 # The linker used to build libraries.
19549 LD=$lt_LD_RC
19551 # Whether we need hard or soft links.
19552 LN_S=$lt_LN_S
19554 # A BSD-compatible nm program.
19555 NM=$lt_NM
19557 # A symbol stripping program
19558 STRIP=$lt_STRIP
19560 # Used to examine libraries when file_magic_cmd begins "file"
19561 MAGIC_CMD=$MAGIC_CMD
19563 # Used on cygwin: DLL creation program.
19564 DLLTOOL="$DLLTOOL"
19566 # Used on cygwin: object dumper.
19567 OBJDUMP="$OBJDUMP"
19569 # Used on cygwin: assembler.
19570 AS="$AS"
19572 # The name of the directory that contains temporary libtool files.
19573 objdir=$objdir
19575 # How to create reloadable object files.
19576 reload_flag=$lt_reload_flag
19577 reload_cmds=$lt_reload_cmds
19579 # How to pass a linker flag through the compiler.
19580 wl=$lt_lt_prog_compiler_wl_RC
19582 # Object file suffix (normally "o").
19583 objext="$ac_objext"
19585 # Old archive suffix (normally "a").
19586 libext="$libext"
19588 # Shared library suffix (normally ".so").
19589 shrext_cmds='$shrext_cmds'
19591 # Executable file suffix (normally "").
19592 exeext="$exeext"
19594 # Additional compiler flags for building library objects.
19595 pic_flag=$lt_lt_prog_compiler_pic_RC
19596 pic_mode=$pic_mode
19598 # What is the maximum length of a command?
19599 max_cmd_len=$lt_cv_sys_max_cmd_len
19601 # Does compiler simultaneously support -c and -o options?
19602 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19604 # Must we lock files when doing compilation?
19605 need_locks=$lt_need_locks
19607 # Do we need the lib prefix for modules?
19608 need_lib_prefix=$need_lib_prefix
19610 # Do we need a version for libraries?
19611 need_version=$need_version
19613 # Whether dlopen is supported.
19614 dlopen_support=$enable_dlopen
19616 # Whether dlopen of programs is supported.
19617 dlopen_self=$enable_dlopen_self
19619 # Whether dlopen of statically linked programs is supported.
19620 dlopen_self_static=$enable_dlopen_self_static
19622 # Compiler flag to prevent dynamic linking.
19623 link_static_flag=$lt_lt_prog_compiler_static_RC
19625 # Compiler flag to turn off builtin functions.
19626 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19628 # Compiler flag to allow reflexive dlopens.
19629 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19631 # Compiler flag to generate shared objects directly from archives.
19632 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19634 # Compiler flag to generate thread-safe objects.
19635 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19637 # Library versioning type.
19638 version_type=$version_type
19640 # Format of library name prefix.
19641 libname_spec=$lt_libname_spec
19643 # List of archive names. First name is the real one, the rest are links.
19644 # The last name is the one that the linker finds with -lNAME.
19645 library_names_spec=$lt_library_names_spec
19647 # The coded name of the library, if different from the real name.
19648 soname_spec=$lt_soname_spec
19650 # Commands used to build and install an old-style archive.
19651 RANLIB=$lt_RANLIB
19652 old_archive_cmds=$lt_old_archive_cmds_RC
19653 old_postinstall_cmds=$lt_old_postinstall_cmds
19654 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19656 # Create an old-style archive from a shared archive.
19657 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19659 # Create a temporary old-style archive to link instead of a shared archive.
19660 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19662 # Commands used to build and install a shared archive.
19663 archive_cmds=$lt_archive_cmds_RC
19664 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19665 postinstall_cmds=$lt_postinstall_cmds
19666 postuninstall_cmds=$lt_postuninstall_cmds
19668 # Commands used to build a loadable module (assumed same as above if empty)
19669 module_cmds=$lt_module_cmds_RC
19670 module_expsym_cmds=$lt_module_expsym_cmds_RC
19672 # Commands to strip libraries.
19673 old_striplib=$lt_old_striplib
19674 striplib=$lt_striplib
19676 # Dependencies to place before the objects being linked to create a
19677 # shared library.
19678 predep_objects=$lt_predep_objects_RC
19680 # Dependencies to place after the objects being linked to create a
19681 # shared library.
19682 postdep_objects=$lt_postdep_objects_RC
19684 # Dependencies to place before the objects being linked to create a
19685 # shared library.
19686 predeps=$lt_predeps_RC
19688 # Dependencies to place after the objects being linked to create a
19689 # shared library.
19690 postdeps=$lt_postdeps_RC
19692 # The directories searched by this compiler when creating a shared
19693 # library
19694 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19696 # The library search path used internally by the compiler when linking
19697 # a shared library.
19698 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19700 # Method to check whether dependent libraries are shared objects.
19701 deplibs_check_method=$lt_deplibs_check_method
19703 # Command to use when deplibs_check_method == file_magic.
19704 file_magic_cmd=$lt_file_magic_cmd
19706 # Flag that allows shared libraries with undefined symbols to be built.
19707 allow_undefined_flag=$lt_allow_undefined_flag_RC
19709 # Flag that forces no undefined symbols.
19710 no_undefined_flag=$lt_no_undefined_flag_RC
19712 # Commands used to finish a libtool library installation in a directory.
19713 finish_cmds=$lt_finish_cmds
19715 # Same as above, but a single script fragment to be evaled but not shown.
19716 finish_eval=$lt_finish_eval
19718 # Take the output of nm and produce a listing of raw symbols and C names.
19719 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19721 # Transform the output of nm in a proper C declaration
19722 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19724 # Transform the output of nm in a C name address pair
19725 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19727 # This is the shared library runtime path variable.
19728 runpath_var=$runpath_var
19730 # This is the shared library path variable.
19731 shlibpath_var=$shlibpath_var
19733 # Is shlibpath searched before the hard-coded library search path?
19734 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19736 # How to hardcode a shared library path into an executable.
19737 hardcode_action=$hardcode_action_RC
19739 # Whether we should hardcode library paths into libraries.
19740 hardcode_into_libs=$hardcode_into_libs
19742 # Flag to hardcode \$libdir into a binary during linking.
19743 # This must work even if \$libdir does not exist.
19744 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19746 # If ld is used when linking, flag to hardcode \$libdir into
19747 # a binary during linking. This must work even if \$libdir does
19748 # not exist.
19749 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19751 # Whether we need a single -rpath flag with a separated argument.
19752 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19754 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19755 # resulting binary.
19756 hardcode_direct=$hardcode_direct_RC
19758 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19759 # resulting binary.
19760 hardcode_minus_L=$hardcode_minus_L_RC
19762 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19763 # the resulting binary.
19764 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19766 # Set to yes if building a shared library automatically hardcodes DIR into the library
19767 # and all subsequent libraries and executables linked against it.
19768 hardcode_automatic=$hardcode_automatic_RC
19770 # Variables whose values should be saved in libtool wrapper scripts and
19771 # restored at relink time.
19772 variables_saved_for_relink="$variables_saved_for_relink"
19774 # Whether libtool must link a program against all its dependency libraries.
19775 link_all_deplibs=$link_all_deplibs_RC
19777 # Compile-time system search path for libraries
19778 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19780 # Run-time system search path for libraries
19781 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19783 # Fix the shell variable \$srcfile for the compiler.
19784 fix_srcfile_path=$lt_fix_srcfile_path
19786 # Set to yes if exported symbols are required.
19787 always_export_symbols=$always_export_symbols_RC
19789 # The commands to list exported symbols.
19790 export_symbols_cmds=$lt_export_symbols_cmds_RC
19792 # The commands to extract the exported symbol list from a shared archive.
19793 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19795 # Symbols that should not be listed in the preloaded symbols.
19796 exclude_expsyms=$lt_exclude_expsyms_RC
19798 # Symbols that must always be exported.
19799 include_expsyms=$lt_include_expsyms_RC
19801 # ### END LIBTOOL TAG CONFIG: $tagname
19803 __EOF__
19806 else
19807 # If there is no Makefile yet, we rely on a make rule to execute
19808 # `config.status --recheck' to rerun these tests and create the
19809 # libtool script then.
19810 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19811 if test -f "$ltmain_in"; then
19812 test -f Makefile && make "$ltmain"
19817 ac_ext=c
19818 ac_cpp='$CPP $CPPFLAGS'
19819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19823 CC="$lt_save_CC"
19828 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19829 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19830 { (exit 1); exit 1; }; }
19832 esac
19834 # Append the new tag name to the list of available tags.
19835 if test -n "$tagname" ; then
19836 available_tags="$available_tags $tagname"
19839 done
19840 IFS="$lt_save_ifs"
19842 # Now substitute the updated list of available tags.
19843 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19844 mv "${ofile}T" "$ofile"
19845 chmod +x "$ofile"
19846 else
19847 rm -f "${ofile}T"
19848 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19849 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19850 { (exit 1); exit 1; }; }
19856 # This can be used to rebuild libtool when needed
19857 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19859 # Always use our own libtool.
19860 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19862 # Prevent multiple expansion
19884 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
19885 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
19886 # Check whether --enable-nls was given.
19887 if test "${enable_nls+set}" = set; then
19888 enableval=$enable_nls; USE_NLS=$enableval
19889 else
19890 USE_NLS=yes
19893 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
19894 echo "${ECHO_T}$USE_NLS" >&6; }
19899 case "$am__api_version" in
19900 1.01234)
19901 { { echo "$as_me:$LINENO: error: Automake 1.5 or newer is required to use intltool" >&5
19902 echo "$as_me: error: Automake 1.5 or newer is required to use intltool" >&2;}
19903 { (exit 1); exit 1; }; }
19907 esac
19909 if test -n "0.23"; then
19910 { echo "$as_me:$LINENO: checking for intltool >= 0.23" >&5
19911 echo $ECHO_N "checking for intltool >= 0.23... $ECHO_C" >&6; }
19913 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.23 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
19914 INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
19915 INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
19917 { echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
19918 echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found" >&6; }
19919 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
19920 { { echo "$as_me:$LINENO: error: Your intltool is too old. You need intltool 0.23 or later." >&5
19921 echo "$as_me: error: Your intltool is too old. You need intltool 0.23 or later." >&2;}
19922 { (exit 1); exit 1; }; }
19925 # Extract the first word of "intltool-update", so it can be a program name with args.
19926 set dummy intltool-update; ac_word=$2
19927 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19929 if test "${ac_cv_path_INTLTOOL_UPDATE+set}" = set; then
19930 echo $ECHO_N "(cached) $ECHO_C" >&6
19931 else
19932 case $INTLTOOL_UPDATE in
19933 [\\/]* | ?:[\\/]*)
19934 ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path.
19937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19938 for as_dir in $PATH
19940 IFS=$as_save_IFS
19941 test -z "$as_dir" && as_dir=.
19942 for ac_exec_ext in '' $ac_executable_extensions; do
19943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19944 ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext"
19945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19946 break 2
19948 done
19949 done
19950 IFS=$as_save_IFS
19953 esac
19955 INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE
19956 if test -n "$INTLTOOL_UPDATE"; then
19957 { echo "$as_me:$LINENO: result: $INTLTOOL_UPDATE" >&5
19958 echo "${ECHO_T}$INTLTOOL_UPDATE" >&6; }
19959 else
19960 { echo "$as_me:$LINENO: result: no" >&5
19961 echo "${ECHO_T}no" >&6; }
19965 # Extract the first word of "intltool-merge", so it can be a program name with args.
19966 set dummy intltool-merge; ac_word=$2
19967 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19969 if test "${ac_cv_path_INTLTOOL_MERGE+set}" = set; then
19970 echo $ECHO_N "(cached) $ECHO_C" >&6
19971 else
19972 case $INTLTOOL_MERGE in
19973 [\\/]* | ?:[\\/]*)
19974 ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path.
19977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19978 for as_dir in $PATH
19980 IFS=$as_save_IFS
19981 test -z "$as_dir" && as_dir=.
19982 for ac_exec_ext in '' $ac_executable_extensions; do
19983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19984 ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext"
19985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19986 break 2
19988 done
19989 done
19990 IFS=$as_save_IFS
19993 esac
19995 INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE
19996 if test -n "$INTLTOOL_MERGE"; then
19997 { echo "$as_me:$LINENO: result: $INTLTOOL_MERGE" >&5
19998 echo "${ECHO_T}$INTLTOOL_MERGE" >&6; }
19999 else
20000 { echo "$as_me:$LINENO: result: no" >&5
20001 echo "${ECHO_T}no" >&6; }
20005 # Extract the first word of "intltool-extract", so it can be a program name with args.
20006 set dummy intltool-extract; ac_word=$2
20007 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20009 if test "${ac_cv_path_INTLTOOL_EXTRACT+set}" = set; then
20010 echo $ECHO_N "(cached) $ECHO_C" >&6
20011 else
20012 case $INTLTOOL_EXTRACT in
20013 [\\/]* | ?:[\\/]*)
20014 ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path.
20017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20018 for as_dir in $PATH
20020 IFS=$as_save_IFS
20021 test -z "$as_dir" && as_dir=.
20022 for ac_exec_ext in '' $ac_executable_extensions; do
20023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20024 ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext"
20025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20026 break 2
20028 done
20029 done
20030 IFS=$as_save_IFS
20033 esac
20035 INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT
20036 if test -n "$INTLTOOL_EXTRACT"; then
20037 { echo "$as_me:$LINENO: result: $INTLTOOL_EXTRACT" >&5
20038 echo "${ECHO_T}$INTLTOOL_EXTRACT" >&6; }
20039 else
20040 { echo "$as_me:$LINENO: result: no" >&5
20041 echo "${ECHO_T}no" >&6; }
20045 if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
20046 { { echo "$as_me:$LINENO: error: The intltool scripts were not found. Please install intltool." >&5
20047 echo "$as_me: error: The intltool scripts were not found. Please install intltool." >&2;}
20048 { (exit 1); exit 1; }; }
20051 INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
20052 INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
20053 INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
20054 INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
20055 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@'
20056 INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
20057 INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
20058 INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
20059 INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
20060 INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
20061 INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
20062 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@'
20063 INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
20064 INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
20065 INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
20066 INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
20067 INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
20068 INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
20069 INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
20091 # Check the gettext tools to make sure they are GNU
20092 # Extract the first word of "xgettext", so it can be a program name with args.
20093 set dummy xgettext; ac_word=$2
20094 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20096 if test "${ac_cv_path_XGETTEXT+set}" = set; then
20097 echo $ECHO_N "(cached) $ECHO_C" >&6
20098 else
20099 case $XGETTEXT in
20100 [\\/]* | ?:[\\/]*)
20101 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
20104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20105 for as_dir in $PATH
20107 IFS=$as_save_IFS
20108 test -z "$as_dir" && as_dir=.
20109 for ac_exec_ext in '' $ac_executable_extensions; do
20110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20111 ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
20112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20113 break 2
20115 done
20116 done
20117 IFS=$as_save_IFS
20120 esac
20122 XGETTEXT=$ac_cv_path_XGETTEXT
20123 if test -n "$XGETTEXT"; then
20124 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
20125 echo "${ECHO_T}$XGETTEXT" >&6; }
20126 else
20127 { echo "$as_me:$LINENO: result: no" >&5
20128 echo "${ECHO_T}no" >&6; }
20132 # Extract the first word of "msgmerge", so it can be a program name with args.
20133 set dummy msgmerge; ac_word=$2
20134 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20136 if test "${ac_cv_path_MSGMERGE+set}" = set; then
20137 echo $ECHO_N "(cached) $ECHO_C" >&6
20138 else
20139 case $MSGMERGE in
20140 [\\/]* | ?:[\\/]*)
20141 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
20144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20145 for as_dir in $PATH
20147 IFS=$as_save_IFS
20148 test -z "$as_dir" && as_dir=.
20149 for ac_exec_ext in '' $ac_executable_extensions; do
20150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20151 ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
20152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20153 break 2
20155 done
20156 done
20157 IFS=$as_save_IFS
20160 esac
20162 MSGMERGE=$ac_cv_path_MSGMERGE
20163 if test -n "$MSGMERGE"; then
20164 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
20165 echo "${ECHO_T}$MSGMERGE" >&6; }
20166 else
20167 { echo "$as_me:$LINENO: result: no" >&5
20168 echo "${ECHO_T}no" >&6; }
20172 # Extract the first word of "msgfmt", so it can be a program name with args.
20173 set dummy msgfmt; ac_word=$2
20174 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20176 if test "${ac_cv_path_MSGFMT+set}" = set; then
20177 echo $ECHO_N "(cached) $ECHO_C" >&6
20178 else
20179 case $MSGFMT in
20180 [\\/]* | ?:[\\/]*)
20181 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
20184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20185 for as_dir in $PATH
20187 IFS=$as_save_IFS
20188 test -z "$as_dir" && as_dir=.
20189 for ac_exec_ext in '' $ac_executable_extensions; do
20190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20191 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
20192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20193 break 2
20195 done
20196 done
20197 IFS=$as_save_IFS
20200 esac
20202 MSGFMT=$ac_cv_path_MSGFMT
20203 if test -n "$MSGFMT"; then
20204 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
20205 echo "${ECHO_T}$MSGFMT" >&6; }
20206 else
20207 { echo "$as_me:$LINENO: result: no" >&5
20208 echo "${ECHO_T}no" >&6; }
20212 # Extract the first word of "gmsgfmt", so it can be a program name with args.
20213 set dummy gmsgfmt; ac_word=$2
20214 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20216 if test "${ac_cv_path_GMSGFMT+set}" = set; then
20217 echo $ECHO_N "(cached) $ECHO_C" >&6
20218 else
20219 case $GMSGFMT in
20220 [\\/]* | ?:[\\/]*)
20221 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
20224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20225 for as_dir in $PATH
20227 IFS=$as_save_IFS
20228 test -z "$as_dir" && as_dir=.
20229 for ac_exec_ext in '' $ac_executable_extensions; do
20230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20231 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
20232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20233 break 2
20235 done
20236 done
20237 IFS=$as_save_IFS
20239 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
20241 esac
20243 GMSGFMT=$ac_cv_path_GMSGFMT
20244 if test -n "$GMSGFMT"; then
20245 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
20246 echo "${ECHO_T}$GMSGFMT" >&6; }
20247 else
20248 { echo "$as_me:$LINENO: result: no" >&5
20249 echo "${ECHO_T}no" >&6; }
20253 if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
20254 { { echo "$as_me:$LINENO: error: GNU gettext tools not found; required for intltool" >&5
20255 echo "$as_me: error: GNU gettext tools not found; required for intltool" >&2;}
20256 { (exit 1); exit 1; }; }
20258 xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
20259 mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
20260 mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
20261 if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
20262 { { echo "$as_me:$LINENO: error: GNU gettext tools not found; required for intltool" >&5
20263 echo "$as_me: error: GNU gettext tools not found; required for intltool" >&2;}
20264 { (exit 1); exit 1; }; }
20267 # Extract the first word of "perl", so it can be a program name with args.
20268 set dummy perl; ac_word=$2
20269 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20271 if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
20272 echo $ECHO_N "(cached) $ECHO_C" >&6
20273 else
20274 case $INTLTOOL_PERL in
20275 [\\/]* | ?:[\\/]*)
20276 ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
20279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20280 for as_dir in $PATH
20282 IFS=$as_save_IFS
20283 test -z "$as_dir" && as_dir=.
20284 for ac_exec_ext in '' $ac_executable_extensions; do
20285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20286 ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
20287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20288 break 2
20290 done
20291 done
20292 IFS=$as_save_IFS
20295 esac
20297 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
20298 if test -n "$INTLTOOL_PERL"; then
20299 { echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
20300 echo "${ECHO_T}$INTLTOOL_PERL" >&6; }
20301 else
20302 { echo "$as_me:$LINENO: result: no" >&5
20303 echo "${ECHO_T}no" >&6; }
20307 if test -z "$INTLTOOL_PERL"; then
20308 { { echo "$as_me:$LINENO: error: perl not found; required for intltool" >&5
20309 echo "$as_me: error: perl not found; required for intltool" >&2;}
20310 { (exit 1); exit 1; }; }
20312 if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
20313 { { echo "$as_me:$LINENO: error: perl 5.x required for intltool" >&5
20314 echo "$as_me: error: perl 5.x required for intltool" >&2;}
20315 { (exit 1); exit 1; }; }
20317 if test "x" != "xno-xml"; then
20318 { echo "$as_me:$LINENO: checking for XML::Parser" >&5
20319 echo $ECHO_N "checking for XML::Parser... $ECHO_C" >&6; }
20320 if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
20321 { echo "$as_me:$LINENO: result: ok" >&5
20322 echo "${ECHO_T}ok" >&6; }
20323 else
20324 { { echo "$as_me:$LINENO: error: XML::Parser perl module is required for intltool" >&5
20325 echo "$as_me: error: XML::Parser perl module is required for intltool" >&2;}
20326 { (exit 1); exit 1; }; }
20330 # Substitute ALL_LINGUAS so we can use it in po/Makefile
20333 # Set DATADIRNAME correctly if it is not set yet
20334 # (copied from glib-gettext.m4)
20335 if test -z "$DATADIRNAME"; then
20336 cat >conftest.$ac_ext <<_ACEOF
20337 /* confdefs.h. */
20338 _ACEOF
20339 cat confdefs.h >>conftest.$ac_ext
20340 cat >>conftest.$ac_ext <<_ACEOF
20341 /* end confdefs.h. */
20344 main ()
20346 extern int _nl_msg_cat_cntr;
20347 return _nl_msg_cat_cntr
20349 return 0;
20351 _ACEOF
20352 rm -f conftest.$ac_objext conftest$ac_exeext
20353 if { (ac_try="$ac_link"
20354 case "(($ac_try" in
20355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20356 *) ac_try_echo=$ac_try;;
20357 esac
20358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20359 (eval "$ac_link") 2>conftest.er1
20360 ac_status=$?
20361 grep -v '^ *+' conftest.er1 >conftest.err
20362 rm -f conftest.er1
20363 cat conftest.err >&5
20364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365 (exit $ac_status); } && {
20366 test -z "$ac_c_werror_flag" ||
20367 test ! -s conftest.err
20368 } && test -s conftest$ac_exeext &&
20369 $as_test_x conftest$ac_exeext; then
20370 DATADIRNAME=share
20371 else
20372 echo "$as_me: failed program was:" >&5
20373 sed 's/^/| /' conftest.$ac_ext >&5
20375 case $host in
20376 *-*-solaris*)
20377 { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
20378 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
20379 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
20380 echo $ECHO_N "(cached) $ECHO_C" >&6
20381 else
20382 cat >conftest.$ac_ext <<_ACEOF
20383 /* confdefs.h. */
20384 _ACEOF
20385 cat confdefs.h >>conftest.$ac_ext
20386 cat >>conftest.$ac_ext <<_ACEOF
20387 /* end confdefs.h. */
20388 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
20389 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20390 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
20392 /* System header to define __stub macros and hopefully few prototypes,
20393 which can conflict with char bind_textdomain_codeset (); below.
20394 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20395 <limits.h> exists even on freestanding compilers. */
20397 #ifdef __STDC__
20398 # include <limits.h>
20399 #else
20400 # include <assert.h>
20401 #endif
20403 #undef bind_textdomain_codeset
20405 /* Override any GCC internal prototype to avoid an error.
20406 Use char because int might match the return type of a GCC
20407 builtin and then its argument prototype would still apply. */
20408 #ifdef __cplusplus
20409 extern "C"
20410 #endif
20411 char bind_textdomain_codeset ();
20412 /* The GNU C library defines this for functions which it implements
20413 to always fail with ENOSYS. Some functions are actually named
20414 something starting with __ and the normal name is an alias. */
20415 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
20416 choke me
20417 #endif
20420 main ()
20422 return bind_textdomain_codeset ();
20424 return 0;
20426 _ACEOF
20427 rm -f conftest.$ac_objext conftest$ac_exeext
20428 if { (ac_try="$ac_link"
20429 case "(($ac_try" in
20430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20431 *) ac_try_echo=$ac_try;;
20432 esac
20433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20434 (eval "$ac_link") 2>conftest.er1
20435 ac_status=$?
20436 grep -v '^ *+' conftest.er1 >conftest.err
20437 rm -f conftest.er1
20438 cat conftest.err >&5
20439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20440 (exit $ac_status); } && {
20441 test -z "$ac_c_werror_flag" ||
20442 test ! -s conftest.err
20443 } && test -s conftest$ac_exeext &&
20444 $as_test_x conftest$ac_exeext; then
20445 ac_cv_func_bind_textdomain_codeset=yes
20446 else
20447 echo "$as_me: failed program was:" >&5
20448 sed 's/^/| /' conftest.$ac_ext >&5
20450 ac_cv_func_bind_textdomain_codeset=no
20453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20454 conftest$ac_exeext conftest.$ac_ext
20456 { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
20457 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
20458 if test $ac_cv_func_bind_textdomain_codeset = yes; then
20459 DATADIRNAME=share
20460 else
20461 DATADIRNAME=lib
20466 DATADIRNAME=lib
20468 esac
20471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20472 conftest$ac_exeext conftest.$ac_ext
20479 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20480 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20481 if test "${ac_cv_header_stdc+set}" = set; then
20482 echo $ECHO_N "(cached) $ECHO_C" >&6
20483 else
20484 cat >conftest.$ac_ext <<_ACEOF
20485 /* confdefs.h. */
20486 _ACEOF
20487 cat confdefs.h >>conftest.$ac_ext
20488 cat >>conftest.$ac_ext <<_ACEOF
20489 /* end confdefs.h. */
20490 #include <stdlib.h>
20491 #include <stdarg.h>
20492 #include <string.h>
20493 #include <float.h>
20496 main ()
20500 return 0;
20502 _ACEOF
20503 rm -f conftest.$ac_objext
20504 if { (ac_try="$ac_compile"
20505 case "(($ac_try" in
20506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20507 *) ac_try_echo=$ac_try;;
20508 esac
20509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20510 (eval "$ac_compile") 2>conftest.er1
20511 ac_status=$?
20512 grep -v '^ *+' conftest.er1 >conftest.err
20513 rm -f conftest.er1
20514 cat conftest.err >&5
20515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20516 (exit $ac_status); } && {
20517 test -z "$ac_c_werror_flag" ||
20518 test ! -s conftest.err
20519 } && test -s conftest.$ac_objext; then
20520 ac_cv_header_stdc=yes
20521 else
20522 echo "$as_me: failed program was:" >&5
20523 sed 's/^/| /' conftest.$ac_ext >&5
20525 ac_cv_header_stdc=no
20528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20530 if test $ac_cv_header_stdc = yes; then
20531 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20532 cat >conftest.$ac_ext <<_ACEOF
20533 /* confdefs.h. */
20534 _ACEOF
20535 cat confdefs.h >>conftest.$ac_ext
20536 cat >>conftest.$ac_ext <<_ACEOF
20537 /* end confdefs.h. */
20538 #include <string.h>
20540 _ACEOF
20541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20542 $EGREP "memchr" >/dev/null 2>&1; then
20544 else
20545 ac_cv_header_stdc=no
20547 rm -f conftest*
20551 if test $ac_cv_header_stdc = yes; then
20552 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20553 cat >conftest.$ac_ext <<_ACEOF
20554 /* confdefs.h. */
20555 _ACEOF
20556 cat confdefs.h >>conftest.$ac_ext
20557 cat >>conftest.$ac_ext <<_ACEOF
20558 /* end confdefs.h. */
20559 #include <stdlib.h>
20561 _ACEOF
20562 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20563 $EGREP "free" >/dev/null 2>&1; then
20565 else
20566 ac_cv_header_stdc=no
20568 rm -f conftest*
20572 if test $ac_cv_header_stdc = yes; then
20573 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20574 if test "$cross_compiling" = yes; then
20576 else
20577 cat >conftest.$ac_ext <<_ACEOF
20578 /* confdefs.h. */
20579 _ACEOF
20580 cat confdefs.h >>conftest.$ac_ext
20581 cat >>conftest.$ac_ext <<_ACEOF
20582 /* end confdefs.h. */
20583 #include <ctype.h>
20584 #include <stdlib.h>
20585 #if ((' ' & 0x0FF) == 0x020)
20586 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20587 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20588 #else
20589 # define ISLOWER(c) \
20590 (('a' <= (c) && (c) <= 'i') \
20591 || ('j' <= (c) && (c) <= 'r') \
20592 || ('s' <= (c) && (c) <= 'z'))
20593 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20594 #endif
20596 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20598 main ()
20600 int i;
20601 for (i = 0; i < 256; i++)
20602 if (XOR (islower (i), ISLOWER (i))
20603 || toupper (i) != TOUPPER (i))
20604 return 2;
20605 return 0;
20607 _ACEOF
20608 rm -f conftest$ac_exeext
20609 if { (ac_try="$ac_link"
20610 case "(($ac_try" in
20611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20612 *) ac_try_echo=$ac_try;;
20613 esac
20614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20615 (eval "$ac_link") 2>&5
20616 ac_status=$?
20617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20618 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20619 { (case "(($ac_try" in
20620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20621 *) ac_try_echo=$ac_try;;
20622 esac
20623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20624 (eval "$ac_try") 2>&5
20625 ac_status=$?
20626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20627 (exit $ac_status); }; }; then
20629 else
20630 echo "$as_me: program exited with status $ac_status" >&5
20631 echo "$as_me: failed program was:" >&5
20632 sed 's/^/| /' conftest.$ac_ext >&5
20634 ( exit $ac_status )
20635 ac_cv_header_stdc=no
20637 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20643 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20644 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20645 if test $ac_cv_header_stdc = yes; then
20647 cat >>confdefs.h <<\_ACEOF
20648 #define STDC_HEADERS 1
20649 _ACEOF
20654 # Option to enable debugging
20655 # Check whether --enable-debug was given.
20656 if test "${enable_debug+set}" = set; then
20657 enableval=$enable_debug; with_debug=yes
20658 else
20659 with_debug=no
20663 if test "x$with_debug" == "xyes" ; then
20664 CFLAGS="$CFLAGS -ggdb -O0 -DDEBUG -Wall -ansi -pedantic"
20665 else
20666 # CFLAGS="$CFLAGS -O2 -Wall -ansi -pedantic"
20667 CFLAGS="$CFLAGS -O2 -Wall -ansi"
20670 # Hildon library dependencies
20673 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20674 if test -n "$ac_tool_prefix"; then
20675 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20676 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20679 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20680 echo $ECHO_N "(cached) $ECHO_C" >&6
20681 else
20682 case $PKG_CONFIG in
20683 [\\/]* | ?:[\\/]*)
20684 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20688 for as_dir in $PATH
20690 IFS=$as_save_IFS
20691 test -z "$as_dir" && as_dir=.
20692 for ac_exec_ext in '' $ac_executable_extensions; do
20693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20694 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20696 break 2
20698 done
20699 done
20700 IFS=$as_save_IFS
20703 esac
20705 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20706 if test -n "$PKG_CONFIG"; then
20707 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20708 echo "${ECHO_T}$PKG_CONFIG" >&6; }
20709 else
20710 { echo "$as_me:$LINENO: result: no" >&5
20711 echo "${ECHO_T}no" >&6; }
20716 if test -z "$ac_cv_path_PKG_CONFIG"; then
20717 ac_pt_PKG_CONFIG=$PKG_CONFIG
20718 # Extract the first word of "pkg-config", so it can be a program name with args.
20719 set dummy pkg-config; ac_word=$2
20720 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20722 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
20723 echo $ECHO_N "(cached) $ECHO_C" >&6
20724 else
20725 case $ac_pt_PKG_CONFIG in
20726 [\\/]* | ?:[\\/]*)
20727 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20731 for as_dir in $PATH
20733 IFS=$as_save_IFS
20734 test -z "$as_dir" && as_dir=.
20735 for ac_exec_ext in '' $ac_executable_extensions; do
20736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20737 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20739 break 2
20741 done
20742 done
20743 IFS=$as_save_IFS
20746 esac
20748 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20749 if test -n "$ac_pt_PKG_CONFIG"; then
20750 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
20751 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
20752 else
20753 { echo "$as_me:$LINENO: result: no" >&5
20754 echo "${ECHO_T}no" >&6; }
20757 if test "x$ac_pt_PKG_CONFIG" = x; then
20758 PKG_CONFIG=""
20759 else
20760 case $cross_compiling:$ac_tool_warned in
20761 yes:)
20762 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20763 whose name does not start with the host triplet. If you think this
20764 configuration is useful to you, please write to autoconf@gnu.org." >&5
20765 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20766 whose name does not start with the host triplet. If you think this
20767 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20768 ac_tool_warned=yes ;;
20769 esac
20770 PKG_CONFIG=$ac_pt_PKG_CONFIG
20772 else
20773 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20777 if test -n "$PKG_CONFIG"; then
20778 _pkg_min_version=0.9.0
20779 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20780 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
20781 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20782 { echo "$as_me:$LINENO: result: yes" >&5
20783 echo "${ECHO_T}yes" >&6; }
20784 else
20785 { echo "$as_me:$LINENO: result: no" >&5
20786 echo "${ECHO_T}no" >&6; }
20787 PKG_CONFIG=""
20792 pkg_failed=no
20793 { echo "$as_me:$LINENO: checking for HILDON" >&5
20794 echo $ECHO_N "checking for HILDON... $ECHO_C" >&6; }
20796 if test -n "$PKG_CONFIG"; then
20797 if test -n "$HILDON_CFLAGS"; then
20798 pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
20799 else
20800 if test -n "$PKG_CONFIG" && \
20801 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-1 >= 0.9.9 hildon-fm-2 wpeditor\"") >&5
20802 ($PKG_CONFIG --exists --print-errors "hildon-1 >= 0.9.9 hildon-fm-2 wpeditor") 2>&5
20803 ac_status=$?
20804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20805 (exit $ac_status); }; then
20806 pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-1 >= 0.9.9 hildon-fm-2 wpeditor" 2>/dev/null`
20807 else
20808 pkg_failed=yes
20811 else
20812 pkg_failed=untried
20814 if test -n "$PKG_CONFIG"; then
20815 if test -n "$HILDON_LIBS"; then
20816 pkg_cv_HILDON_LIBS="$HILDON_LIBS"
20817 else
20818 if test -n "$PKG_CONFIG" && \
20819 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-1 >= 0.9.9 hildon-fm-2 wpeditor\"") >&5
20820 ($PKG_CONFIG --exists --print-errors "hildon-1 >= 0.9.9 hildon-fm-2 wpeditor") 2>&5
20821 ac_status=$?
20822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823 (exit $ac_status); }; then
20824 pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-1 >= 0.9.9 hildon-fm-2 wpeditor" 2>/dev/null`
20825 else
20826 pkg_failed=yes
20829 else
20830 pkg_failed=untried
20835 if test $pkg_failed = yes; then
20837 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20838 _pkg_short_errors_supported=yes
20839 else
20840 _pkg_short_errors_supported=no
20842 if test $_pkg_short_errors_supported = yes; then
20843 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-1 >= 0.9.9 hildon-fm-2 wpeditor"`
20844 else
20845 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-1 >= 0.9.9 hildon-fm-2 wpeditor"`
20847 # Put the nasty error message in config.log where it belongs
20848 echo "$HILDON_PKG_ERRORS" >&5
20850 { { echo "$as_me:$LINENO: error: Package requirements (hildon-1 >= 0.9.9 hildon-fm-2 wpeditor) were not met:
20852 $HILDON_PKG_ERRORS
20854 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20855 installed software in a non-standard prefix.
20857 Alternatively, you may set the environment variables HILDON_CFLAGS
20858 and HILDON_LIBS to avoid the need to call pkg-config.
20859 See the pkg-config man page for more details.
20860 " >&5
20861 echo "$as_me: error: Package requirements (hildon-1 >= 0.9.9 hildon-fm-2 wpeditor) were not met:
20863 $HILDON_PKG_ERRORS
20865 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20866 installed software in a non-standard prefix.
20868 Alternatively, you may set the environment variables HILDON_CFLAGS
20869 and HILDON_LIBS to avoid the need to call pkg-config.
20870 See the pkg-config man page for more details.
20871 " >&2;}
20872 { (exit 1); exit 1; }; }
20873 elif test $pkg_failed = untried; then
20874 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
20875 is in your PATH or set the PKG_CONFIG environment variable to the full
20876 path to pkg-config.
20878 Alternatively, you may set the environment variables HILDON_CFLAGS
20879 and HILDON_LIBS to avoid the need to call pkg-config.
20880 See the pkg-config man page for more details.
20882 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20883 See \`config.log' for more details." >&5
20884 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
20885 is in your PATH or set the PKG_CONFIG environment variable to the full
20886 path to pkg-config.
20888 Alternatively, you may set the environment variables HILDON_CFLAGS
20889 and HILDON_LIBS to avoid the need to call pkg-config.
20890 See the pkg-config man page for more details.
20892 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20893 See \`config.log' for more details." >&2;}
20894 { (exit 1); exit 1; }; }
20895 else
20896 HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
20897 HILDON_LIBS=$pkg_cv_HILDON_LIBS
20898 { echo "$as_me:$LINENO: result: yes" >&5
20899 echo "${ECHO_T}yes" >&6; }
20905 # Only used for the .service file path
20907 pkg_failed=no
20908 { echo "$as_me:$LINENO: checking for DBUS" >&5
20909 echo $ECHO_N "checking for DBUS... $ECHO_C" >&6; }
20911 if test -n "$PKG_CONFIG"; then
20912 if test -n "$DBUS_CFLAGS"; then
20913 pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
20914 else
20915 if test -n "$PKG_CONFIG" && \
20916 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-glib-1 >= 0.23.4\"") >&5
20917 ($PKG_CONFIG --exists --print-errors "dbus-glib-1 >= 0.23.4") 2>&5
20918 ac_status=$?
20919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20920 (exit $ac_status); }; then
20921 pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-glib-1 >= 0.23.4" 2>/dev/null`
20922 else
20923 pkg_failed=yes
20926 else
20927 pkg_failed=untried
20929 if test -n "$PKG_CONFIG"; then
20930 if test -n "$DBUS_LIBS"; then
20931 pkg_cv_DBUS_LIBS="$DBUS_LIBS"
20932 else
20933 if test -n "$PKG_CONFIG" && \
20934 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-glib-1 >= 0.23.4\"") >&5
20935 ($PKG_CONFIG --exists --print-errors "dbus-glib-1 >= 0.23.4") 2>&5
20936 ac_status=$?
20937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20938 (exit $ac_status); }; then
20939 pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-glib-1 >= 0.23.4" 2>/dev/null`
20940 else
20941 pkg_failed=yes
20944 else
20945 pkg_failed=untried
20950 if test $pkg_failed = yes; then
20952 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20953 _pkg_short_errors_supported=yes
20954 else
20955 _pkg_short_errors_supported=no
20957 if test $_pkg_short_errors_supported = yes; then
20958 DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "dbus-glib-1 >= 0.23.4"`
20959 else
20960 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-glib-1 >= 0.23.4"`
20962 # Put the nasty error message in config.log where it belongs
20963 echo "$DBUS_PKG_ERRORS" >&5
20965 { { echo "$as_me:$LINENO: error: Package requirements (dbus-glib-1 >= 0.23.4) were not met:
20967 $DBUS_PKG_ERRORS
20969 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20970 installed software in a non-standard prefix.
20972 Alternatively, you may set the environment variables DBUS_CFLAGS
20973 and DBUS_LIBS to avoid the need to call pkg-config.
20974 See the pkg-config man page for more details.
20975 " >&5
20976 echo "$as_me: error: Package requirements (dbus-glib-1 >= 0.23.4) were not met:
20978 $DBUS_PKG_ERRORS
20980 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20981 installed software in a non-standard prefix.
20983 Alternatively, you may set the environment variables DBUS_CFLAGS
20984 and DBUS_LIBS to avoid the need to call pkg-config.
20985 See the pkg-config man page for more details.
20986 " >&2;}
20987 { (exit 1); exit 1; }; }
20988 elif test $pkg_failed = untried; then
20989 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
20990 is in your PATH or set the PKG_CONFIG environment variable to the full
20991 path to pkg-config.
20993 Alternatively, you may set the environment variables DBUS_CFLAGS
20994 and DBUS_LIBS to avoid the need to call pkg-config.
20995 See the pkg-config man page for more details.
20997 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20998 See \`config.log' for more details." >&5
20999 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
21000 is in your PATH or set the PKG_CONFIG environment variable to the full
21001 path to pkg-config.
21003 Alternatively, you may set the environment variables DBUS_CFLAGS
21004 and DBUS_LIBS to avoid the need to call pkg-config.
21005 See the pkg-config man page for more details.
21007 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21008 See \`config.log' for more details." >&2;}
21009 { (exit 1); exit 1; }; }
21010 else
21011 DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
21012 DBUS_LIBS=$pkg_cv_DBUS_LIBS
21013 { echo "$as_me:$LINENO: result: yes" >&5
21014 echo "${ECHO_T}yes" >&6; }
21018 # OSSO application framework dependencies
21020 pkg_failed=no
21021 { echo "$as_me:$LINENO: checking for OSSO" >&5
21022 echo $ECHO_N "checking for OSSO... $ECHO_C" >&6; }
21024 if test -n "$PKG_CONFIG"; then
21025 if test -n "$OSSO_CFLAGS"; then
21026 pkg_cv_OSSO_CFLAGS="$OSSO_CFLAGS"
21027 else
21028 if test -n "$PKG_CONFIG" && \
21029 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libosso >= 0.9.17 gnome-vfs-2.0 >= 2.8.4.11 gnome-vfs-module-2.0 >= 2.8.4.11\"") >&5
21030 ($PKG_CONFIG --exists --print-errors "libosso >= 0.9.17 gnome-vfs-2.0 >= 2.8.4.11 gnome-vfs-module-2.0 >= 2.8.4.11") 2>&5
21031 ac_status=$?
21032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21033 (exit $ac_status); }; then
21034 pkg_cv_OSSO_CFLAGS=`$PKG_CONFIG --cflags "libosso >= 0.9.17 gnome-vfs-2.0 >= 2.8.4.11 gnome-vfs-module-2.0 >= 2.8.4.11" 2>/dev/null`
21035 else
21036 pkg_failed=yes
21039 else
21040 pkg_failed=untried
21042 if test -n "$PKG_CONFIG"; then
21043 if test -n "$OSSO_LIBS"; then
21044 pkg_cv_OSSO_LIBS="$OSSO_LIBS"
21045 else
21046 if test -n "$PKG_CONFIG" && \
21047 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libosso >= 0.9.17 gnome-vfs-2.0 >= 2.8.4.11 gnome-vfs-module-2.0 >= 2.8.4.11\"") >&5
21048 ($PKG_CONFIG --exists --print-errors "libosso >= 0.9.17 gnome-vfs-2.0 >= 2.8.4.11 gnome-vfs-module-2.0 >= 2.8.4.11") 2>&5
21049 ac_status=$?
21050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21051 (exit $ac_status); }; then
21052 pkg_cv_OSSO_LIBS=`$PKG_CONFIG --libs "libosso >= 0.9.17 gnome-vfs-2.0 >= 2.8.4.11 gnome-vfs-module-2.0 >= 2.8.4.11" 2>/dev/null`
21053 else
21054 pkg_failed=yes
21057 else
21058 pkg_failed=untried
21063 if test $pkg_failed = yes; then
21065 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21066 _pkg_short_errors_supported=yes
21067 else
21068 _pkg_short_errors_supported=no
21070 if test $_pkg_short_errors_supported = yes; then
21071 OSSO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libosso >= 0.9.17 gnome-vfs-2.0 >= 2.8.4.11 gnome-vfs-module-2.0 >= 2.8.4.11"`
21072 else
21073 OSSO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libosso >= 0.9.17 gnome-vfs-2.0 >= 2.8.4.11 gnome-vfs-module-2.0 >= 2.8.4.11"`
21075 # Put the nasty error message in config.log where it belongs
21076 echo "$OSSO_PKG_ERRORS" >&5
21078 { { echo "$as_me:$LINENO: error: Package requirements (libosso >= 0.9.17 gnome-vfs-2.0 >= 2.8.4.11 gnome-vfs-module-2.0 >= 2.8.4.11) were not met:
21080 $OSSO_PKG_ERRORS
21082 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21083 installed software in a non-standard prefix.
21085 Alternatively, you may set the environment variables OSSO_CFLAGS
21086 and OSSO_LIBS to avoid the need to call pkg-config.
21087 See the pkg-config man page for more details.
21088 " >&5
21089 echo "$as_me: error: Package requirements (libosso >= 0.9.17 gnome-vfs-2.0 >= 2.8.4.11 gnome-vfs-module-2.0 >= 2.8.4.11) were not met:
21091 $OSSO_PKG_ERRORS
21093 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21094 installed software in a non-standard prefix.
21096 Alternatively, you may set the environment variables OSSO_CFLAGS
21097 and OSSO_LIBS to avoid the need to call pkg-config.
21098 See the pkg-config man page for more details.
21099 " >&2;}
21100 { (exit 1); exit 1; }; }
21101 elif test $pkg_failed = untried; then
21102 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
21103 is in your PATH or set the PKG_CONFIG environment variable to the full
21104 path to pkg-config.
21106 Alternatively, you may set the environment variables OSSO_CFLAGS
21107 and OSSO_LIBS to avoid the need to call pkg-config.
21108 See the pkg-config man page for more details.
21110 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21111 See \`config.log' for more details." >&5
21112 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
21113 is in your PATH or set the PKG_CONFIG environment variable to the full
21114 path to pkg-config.
21116 Alternatively, you may set the environment variables OSSO_CFLAGS
21117 and OSSO_LIBS to avoid the need to call pkg-config.
21118 See the pkg-config man page for more details.
21120 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21121 See \`config.log' for more details." >&2;}
21122 { (exit 1); exit 1; }; }
21123 else
21124 OSSO_CFLAGS=$pkg_cv_OSSO_CFLAGS
21125 OSSO_LIBS=$pkg_cv_OSSO_LIBS
21126 { echo "$as_me:$LINENO: result: yes" >&5
21127 echo "${ECHO_T}yes" >&6; }
21133 # libxml2
21134 #PKG_CHECK_MODULES(XML2, libxml-2.0 >= 2.6.0)
21135 #AC_SUBST(XML2_LIBS)
21136 #AC_SUBST(XML2_CFLAGS)
21138 # sqlite3
21140 pkg_failed=no
21141 { echo "$as_me:$LINENO: checking for SQL3" >&5
21142 echo $ECHO_N "checking for SQL3... $ECHO_C" >&6; }
21144 if test -n "$PKG_CONFIG"; then
21145 if test -n "$SQL3_CFLAGS"; then
21146 pkg_cv_SQL3_CFLAGS="$SQL3_CFLAGS"
21147 else
21148 if test -n "$PKG_CONFIG" && \
21149 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= 3.0\"") >&5
21150 ($PKG_CONFIG --exists --print-errors "sqlite3 >= 3.0") 2>&5
21151 ac_status=$?
21152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21153 (exit $ac_status); }; then
21154 pkg_cv_SQL3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3 >= 3.0" 2>/dev/null`
21155 else
21156 pkg_failed=yes
21159 else
21160 pkg_failed=untried
21162 if test -n "$PKG_CONFIG"; then
21163 if test -n "$SQL3_LIBS"; then
21164 pkg_cv_SQL3_LIBS="$SQL3_LIBS"
21165 else
21166 if test -n "$PKG_CONFIG" && \
21167 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= 3.0\"") >&5
21168 ($PKG_CONFIG --exists --print-errors "sqlite3 >= 3.0") 2>&5
21169 ac_status=$?
21170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171 (exit $ac_status); }; then
21172 pkg_cv_SQL3_LIBS=`$PKG_CONFIG --libs "sqlite3 >= 3.0" 2>/dev/null`
21173 else
21174 pkg_failed=yes
21177 else
21178 pkg_failed=untried
21183 if test $pkg_failed = yes; then
21185 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21186 _pkg_short_errors_supported=yes
21187 else
21188 _pkg_short_errors_supported=no
21190 if test $_pkg_short_errors_supported = yes; then
21191 SQL3_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sqlite3 >= 3.0"`
21192 else
21193 SQL3_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sqlite3 >= 3.0"`
21195 # Put the nasty error message in config.log where it belongs
21196 echo "$SQL3_PKG_ERRORS" >&5
21198 { { echo "$as_me:$LINENO: error: Package requirements (sqlite3 >= 3.0) were not met:
21200 $SQL3_PKG_ERRORS
21202 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21203 installed software in a non-standard prefix.
21205 Alternatively, you may set the environment variables SQL3_CFLAGS
21206 and SQL3_LIBS to avoid the need to call pkg-config.
21207 See the pkg-config man page for more details.
21208 " >&5
21209 echo "$as_me: error: Package requirements (sqlite3 >= 3.0) were not met:
21211 $SQL3_PKG_ERRORS
21213 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21214 installed software in a non-standard prefix.
21216 Alternatively, you may set the environment variables SQL3_CFLAGS
21217 and SQL3_LIBS to avoid the need to call pkg-config.
21218 See the pkg-config man page for more details.
21219 " >&2;}
21220 { (exit 1); exit 1; }; }
21221 elif test $pkg_failed = untried; then
21222 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
21223 is in your PATH or set the PKG_CONFIG environment variable to the full
21224 path to pkg-config.
21226 Alternatively, you may set the environment variables SQL3_CFLAGS
21227 and SQL3_LIBS to avoid the need to call pkg-config.
21228 See the pkg-config man page for more details.
21230 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21231 See \`config.log' for more details." >&5
21232 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
21233 is in your PATH or set the PKG_CONFIG environment variable to the full
21234 path to pkg-config.
21236 Alternatively, you may set the environment variables SQL3_CFLAGS
21237 and SQL3_LIBS to avoid the need to call pkg-config.
21238 See the pkg-config man page for more details.
21240 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21241 See \`config.log' for more details." >&2;}
21242 { (exit 1); exit 1; }; }
21243 else
21244 SQL3_CFLAGS=$pkg_cv_SQL3_CFLAGS
21245 SQL3_LIBS=$pkg_cv_SQL3_LIBS
21246 { echo "$as_me:$LINENO: result: yes" >&5
21247 echo "${ECHO_T}yes" >&6; }
21253 # sharing-dialog
21255 pkg_failed=no
21256 { echo "$as_me:$LINENO: checking for SHARINGDIALOG" >&5
21257 echo $ECHO_N "checking for SHARINGDIALOG... $ECHO_C" >&6; }
21259 if test -n "$PKG_CONFIG"; then
21260 if test -n "$SHARINGDIALOG_CFLAGS"; then
21261 pkg_cv_SHARINGDIALOG_CFLAGS="$SHARINGDIALOG_CFLAGS"
21262 else
21263 if test -n "$PKG_CONFIG" && \
21264 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sharingdialog >= 1.1\"") >&5
21265 ($PKG_CONFIG --exists --print-errors "sharingdialog >= 1.1") 2>&5
21266 ac_status=$?
21267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21268 (exit $ac_status); }; then
21269 pkg_cv_SHARINGDIALOG_CFLAGS=`$PKG_CONFIG --cflags "sharingdialog >= 1.1" 2>/dev/null`
21270 else
21271 pkg_failed=yes
21274 else
21275 pkg_failed=untried
21277 if test -n "$PKG_CONFIG"; then
21278 if test -n "$SHARINGDIALOG_LIBS"; then
21279 pkg_cv_SHARINGDIALOG_LIBS="$SHARINGDIALOG_LIBS"
21280 else
21281 if test -n "$PKG_CONFIG" && \
21282 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sharingdialog >= 1.1\"") >&5
21283 ($PKG_CONFIG --exists --print-errors "sharingdialog >= 1.1") 2>&5
21284 ac_status=$?
21285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21286 (exit $ac_status); }; then
21287 pkg_cv_SHARINGDIALOG_LIBS=`$PKG_CONFIG --libs "sharingdialog >= 1.1" 2>/dev/null`
21288 else
21289 pkg_failed=yes
21292 else
21293 pkg_failed=untried
21298 if test $pkg_failed = yes; then
21300 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21301 _pkg_short_errors_supported=yes
21302 else
21303 _pkg_short_errors_supported=no
21305 if test $_pkg_short_errors_supported = yes; then
21306 SHARINGDIALOG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sharingdialog >= 1.1"`
21307 else
21308 SHARINGDIALOG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sharingdialog >= 1.1"`
21310 # Put the nasty error message in config.log where it belongs
21311 echo "$SHARINGDIALOG_PKG_ERRORS" >&5
21313 { { echo "$as_me:$LINENO: error: Package requirements (sharingdialog >= 1.1) were not met:
21315 $SHARINGDIALOG_PKG_ERRORS
21317 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21318 installed software in a non-standard prefix.
21320 Alternatively, you may set the environment variables SHARINGDIALOG_CFLAGS
21321 and SHARINGDIALOG_LIBS to avoid the need to call pkg-config.
21322 See the pkg-config man page for more details.
21323 " >&5
21324 echo "$as_me: error: Package requirements (sharingdialog >= 1.1) were not met:
21326 $SHARINGDIALOG_PKG_ERRORS
21328 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21329 installed software in a non-standard prefix.
21331 Alternatively, you may set the environment variables SHARINGDIALOG_CFLAGS
21332 and SHARINGDIALOG_LIBS to avoid the need to call pkg-config.
21333 See the pkg-config man page for more details.
21334 " >&2;}
21335 { (exit 1); exit 1; }; }
21336 elif test $pkg_failed = untried; then
21337 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
21338 is in your PATH or set the PKG_CONFIG environment variable to the full
21339 path to pkg-config.
21341 Alternatively, you may set the environment variables SHARINGDIALOG_CFLAGS
21342 and SHARINGDIALOG_LIBS to avoid the need to call pkg-config.
21343 See the pkg-config man page for more details.
21345 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21346 See \`config.log' for more details." >&5
21347 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
21348 is in your PATH or set the PKG_CONFIG environment variable to the full
21349 path to pkg-config.
21351 Alternatively, you may set the environment variables SHARINGDIALOG_CFLAGS
21352 and SHARINGDIALOG_LIBS to avoid the need to call pkg-config.
21353 See the pkg-config man page for more details.
21355 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21356 See \`config.log' for more details." >&2;}
21357 { (exit 1); exit 1; }; }
21358 else
21359 SHARINGDIALOG_CFLAGS=$pkg_cv_SHARINGDIALOG_CFLAGS
21360 SHARINGDIALOG_LIBS=$pkg_cv_SHARINGDIALOG_LIBS
21361 { echo "$as_me:$LINENO: result: yes" >&5
21362 echo "${ECHO_T}yes" >&6; }
21368 # Localisation
21369 GETTEXT_PACKAGE=$PACKAGE
21372 cat >>confdefs.h <<_ACEOF
21373 #define GETTEXT_PACKAGE "${GETTEXT_PACKAGE}"
21374 _ACEOF
21376 ALL_LINGUAS="de_DE en_GB fi_FI hu ru sv_SE"
21379 for ac_header in locale.h
21381 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21382 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21383 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21385 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21386 echo $ECHO_N "(cached) $ECHO_C" >&6
21388 ac_res=`eval echo '${'$as_ac_Header'}'`
21389 { echo "$as_me:$LINENO: result: $ac_res" >&5
21390 echo "${ECHO_T}$ac_res" >&6; }
21391 else
21392 # Is the header compilable?
21393 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21394 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21395 cat >conftest.$ac_ext <<_ACEOF
21396 /* confdefs.h. */
21397 _ACEOF
21398 cat confdefs.h >>conftest.$ac_ext
21399 cat >>conftest.$ac_ext <<_ACEOF
21400 /* end confdefs.h. */
21401 $ac_includes_default
21402 #include <$ac_header>
21403 _ACEOF
21404 rm -f conftest.$ac_objext
21405 if { (ac_try="$ac_compile"
21406 case "(($ac_try" in
21407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21408 *) ac_try_echo=$ac_try;;
21409 esac
21410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21411 (eval "$ac_compile") 2>conftest.er1
21412 ac_status=$?
21413 grep -v '^ *+' conftest.er1 >conftest.err
21414 rm -f conftest.er1
21415 cat conftest.err >&5
21416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21417 (exit $ac_status); } && {
21418 test -z "$ac_c_werror_flag" ||
21419 test ! -s conftest.err
21420 } && test -s conftest.$ac_objext; then
21421 ac_header_compiler=yes
21422 else
21423 echo "$as_me: failed program was:" >&5
21424 sed 's/^/| /' conftest.$ac_ext >&5
21426 ac_header_compiler=no
21429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21430 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21431 echo "${ECHO_T}$ac_header_compiler" >&6; }
21433 # Is the header present?
21434 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21435 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21436 cat >conftest.$ac_ext <<_ACEOF
21437 /* confdefs.h. */
21438 _ACEOF
21439 cat confdefs.h >>conftest.$ac_ext
21440 cat >>conftest.$ac_ext <<_ACEOF
21441 /* end confdefs.h. */
21442 #include <$ac_header>
21443 _ACEOF
21444 if { (ac_try="$ac_cpp conftest.$ac_ext"
21445 case "(($ac_try" in
21446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21447 *) ac_try_echo=$ac_try;;
21448 esac
21449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21450 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21451 ac_status=$?
21452 grep -v '^ *+' conftest.er1 >conftest.err
21453 rm -f conftest.er1
21454 cat conftest.err >&5
21455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21456 (exit $ac_status); } >/dev/null && {
21457 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21458 test ! -s conftest.err
21459 }; then
21460 ac_header_preproc=yes
21461 else
21462 echo "$as_me: failed program was:" >&5
21463 sed 's/^/| /' conftest.$ac_ext >&5
21465 ac_header_preproc=no
21468 rm -f conftest.err conftest.$ac_ext
21469 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21470 echo "${ECHO_T}$ac_header_preproc" >&6; }
21472 # So? What about this header?
21473 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21474 yes:no: )
21475 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21476 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21478 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21479 ac_header_preproc=yes
21481 no:yes:* )
21482 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21483 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21484 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21485 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21486 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21487 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21488 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21489 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21491 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21492 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21493 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21496 esac
21497 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21500 echo $ECHO_N "(cached) $ECHO_C" >&6
21501 else
21502 eval "$as_ac_Header=\$ac_header_preproc"
21504 ac_res=`eval echo '${'$as_ac_Header'}'`
21505 { echo "$as_me:$LINENO: result: $ac_res" >&5
21506 echo "${ECHO_T}$ac_res" >&6; }
21509 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21510 cat >>confdefs.h <<_ACEOF
21511 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21512 _ACEOF
21516 done
21518 if test $ac_cv_header_locale_h = yes; then
21519 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
21520 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
21521 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
21522 echo $ECHO_N "(cached) $ECHO_C" >&6
21523 else
21524 cat >conftest.$ac_ext <<_ACEOF
21525 /* confdefs.h. */
21526 _ACEOF
21527 cat confdefs.h >>conftest.$ac_ext
21528 cat >>conftest.$ac_ext <<_ACEOF
21529 /* end confdefs.h. */
21530 #include <locale.h>
21532 main ()
21534 return LC_MESSAGES
21536 return 0;
21538 _ACEOF
21539 rm -f conftest.$ac_objext conftest$ac_exeext
21540 if { (ac_try="$ac_link"
21541 case "(($ac_try" in
21542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21543 *) ac_try_echo=$ac_try;;
21544 esac
21545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21546 (eval "$ac_link") 2>conftest.er1
21547 ac_status=$?
21548 grep -v '^ *+' conftest.er1 >conftest.err
21549 rm -f conftest.er1
21550 cat conftest.err >&5
21551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21552 (exit $ac_status); } && {
21553 test -z "$ac_c_werror_flag" ||
21554 test ! -s conftest.err
21555 } && test -s conftest$ac_exeext &&
21556 $as_test_x conftest$ac_exeext; then
21557 am_cv_val_LC_MESSAGES=yes
21558 else
21559 echo "$as_me: failed program was:" >&5
21560 sed 's/^/| /' conftest.$ac_ext >&5
21562 am_cv_val_LC_MESSAGES=no
21565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21566 conftest$ac_exeext conftest.$ac_ext
21568 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
21569 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
21570 if test $am_cv_val_LC_MESSAGES = yes; then
21572 cat >>confdefs.h <<\_ACEOF
21573 #define HAVE_LC_MESSAGES 1
21574 _ACEOF
21578 USE_NLS=yes
21581 gt_cv_have_gettext=no
21583 CATOBJEXT=NONE
21584 XGETTEXT=:
21585 INTLLIBS=
21587 if test "${ac_cv_header_libintl_h+set}" = set; then
21588 { echo "$as_me:$LINENO: checking for libintl.h" >&5
21589 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
21590 if test "${ac_cv_header_libintl_h+set}" = set; then
21591 echo $ECHO_N "(cached) $ECHO_C" >&6
21593 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
21594 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
21595 else
21596 # Is the header compilable?
21597 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
21598 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
21599 cat >conftest.$ac_ext <<_ACEOF
21600 /* confdefs.h. */
21601 _ACEOF
21602 cat confdefs.h >>conftest.$ac_ext
21603 cat >>conftest.$ac_ext <<_ACEOF
21604 /* end confdefs.h. */
21605 $ac_includes_default
21606 #include <libintl.h>
21607 _ACEOF
21608 rm -f conftest.$ac_objext
21609 if { (ac_try="$ac_compile"
21610 case "(($ac_try" in
21611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21612 *) ac_try_echo=$ac_try;;
21613 esac
21614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21615 (eval "$ac_compile") 2>conftest.er1
21616 ac_status=$?
21617 grep -v '^ *+' conftest.er1 >conftest.err
21618 rm -f conftest.er1
21619 cat conftest.err >&5
21620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21621 (exit $ac_status); } && {
21622 test -z "$ac_c_werror_flag" ||
21623 test ! -s conftest.err
21624 } && test -s conftest.$ac_objext; then
21625 ac_header_compiler=yes
21626 else
21627 echo "$as_me: failed program was:" >&5
21628 sed 's/^/| /' conftest.$ac_ext >&5
21630 ac_header_compiler=no
21633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21634 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21635 echo "${ECHO_T}$ac_header_compiler" >&6; }
21637 # Is the header present?
21638 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
21639 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
21640 cat >conftest.$ac_ext <<_ACEOF
21641 /* confdefs.h. */
21642 _ACEOF
21643 cat confdefs.h >>conftest.$ac_ext
21644 cat >>conftest.$ac_ext <<_ACEOF
21645 /* end confdefs.h. */
21646 #include <libintl.h>
21647 _ACEOF
21648 if { (ac_try="$ac_cpp conftest.$ac_ext"
21649 case "(($ac_try" in
21650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21651 *) ac_try_echo=$ac_try;;
21652 esac
21653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21654 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21655 ac_status=$?
21656 grep -v '^ *+' conftest.er1 >conftest.err
21657 rm -f conftest.er1
21658 cat conftest.err >&5
21659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21660 (exit $ac_status); } >/dev/null && {
21661 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21662 test ! -s conftest.err
21663 }; then
21664 ac_header_preproc=yes
21665 else
21666 echo "$as_me: failed program was:" >&5
21667 sed 's/^/| /' conftest.$ac_ext >&5
21669 ac_header_preproc=no
21672 rm -f conftest.err conftest.$ac_ext
21673 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21674 echo "${ECHO_T}$ac_header_preproc" >&6; }
21676 # So? What about this header?
21677 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21678 yes:no: )
21679 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
21680 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21681 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
21682 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
21683 ac_header_preproc=yes
21685 no:yes:* )
21686 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
21687 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
21688 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
21689 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
21690 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
21691 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
21692 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
21693 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
21694 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
21695 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
21696 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
21697 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
21700 esac
21701 { echo "$as_me:$LINENO: checking for libintl.h" >&5
21702 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
21703 if test "${ac_cv_header_libintl_h+set}" = set; then
21704 echo $ECHO_N "(cached) $ECHO_C" >&6
21705 else
21706 ac_cv_header_libintl_h=$ac_header_preproc
21708 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
21709 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
21712 if test $ac_cv_header_libintl_h = yes; then
21713 gt_cv_func_dgettext_libintl="no"
21714 libintl_extra_libs=""
21717 # First check in libc
21719 { echo "$as_me:$LINENO: checking for ngettext in libc" >&5
21720 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; }
21721 if test "${gt_cv_func_ngettext_libc+set}" = set; then
21722 echo $ECHO_N "(cached) $ECHO_C" >&6
21723 else
21724 cat >conftest.$ac_ext <<_ACEOF
21725 /* confdefs.h. */
21726 _ACEOF
21727 cat confdefs.h >>conftest.$ac_ext
21728 cat >>conftest.$ac_ext <<_ACEOF
21729 /* end confdefs.h. */
21731 #include <libintl.h>
21734 main ()
21736 return !ngettext ("","", 1)
21738 return 0;
21740 _ACEOF
21741 rm -f conftest.$ac_objext conftest$ac_exeext
21742 if { (ac_try="$ac_link"
21743 case "(($ac_try" in
21744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21745 *) ac_try_echo=$ac_try;;
21746 esac
21747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21748 (eval "$ac_link") 2>conftest.er1
21749 ac_status=$?
21750 grep -v '^ *+' conftest.er1 >conftest.err
21751 rm -f conftest.er1
21752 cat conftest.err >&5
21753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21754 (exit $ac_status); } && {
21755 test -z "$ac_c_werror_flag" ||
21756 test ! -s conftest.err
21757 } && test -s conftest$ac_exeext &&
21758 $as_test_x conftest$ac_exeext; then
21759 gt_cv_func_ngettext_libc=yes
21760 else
21761 echo "$as_me: failed program was:" >&5
21762 sed 's/^/| /' conftest.$ac_ext >&5
21764 gt_cv_func_ngettext_libc=no
21767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21768 conftest$ac_exeext conftest.$ac_ext
21771 { echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
21772 echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; }
21774 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
21775 { echo "$as_me:$LINENO: checking for dgettext in libc" >&5
21776 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; }
21777 if test "${gt_cv_func_dgettext_libc+set}" = set; then
21778 echo $ECHO_N "(cached) $ECHO_C" >&6
21779 else
21780 cat >conftest.$ac_ext <<_ACEOF
21781 /* confdefs.h. */
21782 _ACEOF
21783 cat confdefs.h >>conftest.$ac_ext
21784 cat >>conftest.$ac_ext <<_ACEOF
21785 /* end confdefs.h. */
21787 #include <libintl.h>
21790 main ()
21792 return !dgettext ("","")
21794 return 0;
21796 _ACEOF
21797 rm -f conftest.$ac_objext conftest$ac_exeext
21798 if { (ac_try="$ac_link"
21799 case "(($ac_try" in
21800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21801 *) ac_try_echo=$ac_try;;
21802 esac
21803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21804 (eval "$ac_link") 2>conftest.er1
21805 ac_status=$?
21806 grep -v '^ *+' conftest.er1 >conftest.err
21807 rm -f conftest.er1
21808 cat conftest.err >&5
21809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21810 (exit $ac_status); } && {
21811 test -z "$ac_c_werror_flag" ||
21812 test ! -s conftest.err
21813 } && test -s conftest$ac_exeext &&
21814 $as_test_x conftest$ac_exeext; then
21815 gt_cv_func_dgettext_libc=yes
21816 else
21817 echo "$as_me: failed program was:" >&5
21818 sed 's/^/| /' conftest.$ac_ext >&5
21820 gt_cv_func_dgettext_libc=no
21823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21824 conftest$ac_exeext conftest.$ac_ext
21827 { echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
21828 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; }
21831 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
21833 for ac_func in bind_textdomain_codeset
21835 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21836 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21837 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21838 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21839 echo $ECHO_N "(cached) $ECHO_C" >&6
21840 else
21841 cat >conftest.$ac_ext <<_ACEOF
21842 /* confdefs.h. */
21843 _ACEOF
21844 cat confdefs.h >>conftest.$ac_ext
21845 cat >>conftest.$ac_ext <<_ACEOF
21846 /* end confdefs.h. */
21847 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21848 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21849 #define $ac_func innocuous_$ac_func
21851 /* System header to define __stub macros and hopefully few prototypes,
21852 which can conflict with char $ac_func (); below.
21853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21854 <limits.h> exists even on freestanding compilers. */
21856 #ifdef __STDC__
21857 # include <limits.h>
21858 #else
21859 # include <assert.h>
21860 #endif
21862 #undef $ac_func
21864 /* Override any GCC internal prototype to avoid an error.
21865 Use char because int might match the return type of a GCC
21866 builtin and then its argument prototype would still apply. */
21867 #ifdef __cplusplus
21868 extern "C"
21869 #endif
21870 char $ac_func ();
21871 /* The GNU C library defines this for functions which it implements
21872 to always fail with ENOSYS. Some functions are actually named
21873 something starting with __ and the normal name is an alias. */
21874 #if defined __stub_$ac_func || defined __stub___$ac_func
21875 choke me
21876 #endif
21879 main ()
21881 return $ac_func ();
21883 return 0;
21885 _ACEOF
21886 rm -f conftest.$ac_objext conftest$ac_exeext
21887 if { (ac_try="$ac_link"
21888 case "(($ac_try" in
21889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21890 *) ac_try_echo=$ac_try;;
21891 esac
21892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21893 (eval "$ac_link") 2>conftest.er1
21894 ac_status=$?
21895 grep -v '^ *+' conftest.er1 >conftest.err
21896 rm -f conftest.er1
21897 cat conftest.err >&5
21898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21899 (exit $ac_status); } && {
21900 test -z "$ac_c_werror_flag" ||
21901 test ! -s conftest.err
21902 } && test -s conftest$ac_exeext &&
21903 $as_test_x conftest$ac_exeext; then
21904 eval "$as_ac_var=yes"
21905 else
21906 echo "$as_me: failed program was:" >&5
21907 sed 's/^/| /' conftest.$ac_ext >&5
21909 eval "$as_ac_var=no"
21912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21913 conftest$ac_exeext conftest.$ac_ext
21915 ac_res=`eval echo '${'$as_ac_var'}'`
21916 { echo "$as_me:$LINENO: result: $ac_res" >&5
21917 echo "${ECHO_T}$ac_res" >&6; }
21918 if test `eval echo '${'$as_ac_var'}'` = yes; then
21919 cat >>confdefs.h <<_ACEOF
21920 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21921 _ACEOF
21924 done
21929 # If we don't have everything we want, check in libintl
21931 if test "$gt_cv_func_dgettext_libc" != "yes" \
21932 || test "$gt_cv_func_ngettext_libc" != "yes" \
21933 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
21935 { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
21936 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
21937 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
21938 echo $ECHO_N "(cached) $ECHO_C" >&6
21939 else
21940 ac_check_lib_save_LIBS=$LIBS
21941 LIBS="-lintl $LIBS"
21942 cat >conftest.$ac_ext <<_ACEOF
21943 /* confdefs.h. */
21944 _ACEOF
21945 cat confdefs.h >>conftest.$ac_ext
21946 cat >>conftest.$ac_ext <<_ACEOF
21947 /* end confdefs.h. */
21949 /* Override any GCC internal prototype to avoid an error.
21950 Use char because int might match the return type of a GCC
21951 builtin and then its argument prototype would still apply. */
21952 #ifdef __cplusplus
21953 extern "C"
21954 #endif
21955 char bindtextdomain ();
21957 main ()
21959 return bindtextdomain ();
21961 return 0;
21963 _ACEOF
21964 rm -f conftest.$ac_objext conftest$ac_exeext
21965 if { (ac_try="$ac_link"
21966 case "(($ac_try" in
21967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21968 *) ac_try_echo=$ac_try;;
21969 esac
21970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21971 (eval "$ac_link") 2>conftest.er1
21972 ac_status=$?
21973 grep -v '^ *+' conftest.er1 >conftest.err
21974 rm -f conftest.er1
21975 cat conftest.err >&5
21976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21977 (exit $ac_status); } && {
21978 test -z "$ac_c_werror_flag" ||
21979 test ! -s conftest.err
21980 } && test -s conftest$ac_exeext &&
21981 $as_test_x conftest$ac_exeext; then
21982 ac_cv_lib_intl_bindtextdomain=yes
21983 else
21984 echo "$as_me: failed program was:" >&5
21985 sed 's/^/| /' conftest.$ac_ext >&5
21987 ac_cv_lib_intl_bindtextdomain=no
21990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21991 conftest$ac_exeext conftest.$ac_ext
21992 LIBS=$ac_check_lib_save_LIBS
21994 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
21995 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
21996 if test $ac_cv_lib_intl_bindtextdomain = yes; then
21997 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
21998 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
21999 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
22000 echo $ECHO_N "(cached) $ECHO_C" >&6
22001 else
22002 ac_check_lib_save_LIBS=$LIBS
22003 LIBS="-lintl $LIBS"
22004 cat >conftest.$ac_ext <<_ACEOF
22005 /* confdefs.h. */
22006 _ACEOF
22007 cat confdefs.h >>conftest.$ac_ext
22008 cat >>conftest.$ac_ext <<_ACEOF
22009 /* end confdefs.h. */
22011 /* Override any GCC internal prototype to avoid an error.
22012 Use char because int might match the return type of a GCC
22013 builtin and then its argument prototype would still apply. */
22014 #ifdef __cplusplus
22015 extern "C"
22016 #endif
22017 char ngettext ();
22019 main ()
22021 return ngettext ();
22023 return 0;
22025 _ACEOF
22026 rm -f conftest.$ac_objext conftest$ac_exeext
22027 if { (ac_try="$ac_link"
22028 case "(($ac_try" in
22029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22030 *) ac_try_echo=$ac_try;;
22031 esac
22032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22033 (eval "$ac_link") 2>conftest.er1
22034 ac_status=$?
22035 grep -v '^ *+' conftest.er1 >conftest.err
22036 rm -f conftest.er1
22037 cat conftest.err >&5
22038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22039 (exit $ac_status); } && {
22040 test -z "$ac_c_werror_flag" ||
22041 test ! -s conftest.err
22042 } && test -s conftest$ac_exeext &&
22043 $as_test_x conftest$ac_exeext; then
22044 ac_cv_lib_intl_ngettext=yes
22045 else
22046 echo "$as_me: failed program was:" >&5
22047 sed 's/^/| /' conftest.$ac_ext >&5
22049 ac_cv_lib_intl_ngettext=no
22052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22053 conftest$ac_exeext conftest.$ac_ext
22054 LIBS=$ac_check_lib_save_LIBS
22056 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
22057 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
22058 if test $ac_cv_lib_intl_ngettext = yes; then
22059 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
22060 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
22061 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
22062 echo $ECHO_N "(cached) $ECHO_C" >&6
22063 else
22064 ac_check_lib_save_LIBS=$LIBS
22065 LIBS="-lintl $LIBS"
22066 cat >conftest.$ac_ext <<_ACEOF
22067 /* confdefs.h. */
22068 _ACEOF
22069 cat confdefs.h >>conftest.$ac_ext
22070 cat >>conftest.$ac_ext <<_ACEOF
22071 /* end confdefs.h. */
22073 /* Override any GCC internal prototype to avoid an error.
22074 Use char because int might match the return type of a GCC
22075 builtin and then its argument prototype would still apply. */
22076 #ifdef __cplusplus
22077 extern "C"
22078 #endif
22079 char dgettext ();
22081 main ()
22083 return dgettext ();
22085 return 0;
22087 _ACEOF
22088 rm -f conftest.$ac_objext conftest$ac_exeext
22089 if { (ac_try="$ac_link"
22090 case "(($ac_try" in
22091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22092 *) ac_try_echo=$ac_try;;
22093 esac
22094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22095 (eval "$ac_link") 2>conftest.er1
22096 ac_status=$?
22097 grep -v '^ *+' conftest.er1 >conftest.err
22098 rm -f conftest.er1
22099 cat conftest.err >&5
22100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22101 (exit $ac_status); } && {
22102 test -z "$ac_c_werror_flag" ||
22103 test ! -s conftest.err
22104 } && test -s conftest$ac_exeext &&
22105 $as_test_x conftest$ac_exeext; then
22106 ac_cv_lib_intl_dgettext=yes
22107 else
22108 echo "$as_me: failed program was:" >&5
22109 sed 's/^/| /' conftest.$ac_ext >&5
22111 ac_cv_lib_intl_dgettext=no
22114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22115 conftest$ac_exeext conftest.$ac_ext
22116 LIBS=$ac_check_lib_save_LIBS
22118 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
22119 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22120 if test $ac_cv_lib_intl_dgettext = yes; then
22121 gt_cv_func_dgettext_libintl=yes
22129 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
22130 { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
22131 echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; }
22132 { echo "$as_me:$LINENO: result: " >&5
22133 echo "${ECHO_T}" >&6; }
22134 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
22135 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
22136 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
22137 echo $ECHO_N "(cached) $ECHO_C" >&6
22138 else
22139 ac_check_lib_save_LIBS=$LIBS
22140 LIBS="-lintl -liconv $LIBS"
22141 cat >conftest.$ac_ext <<_ACEOF
22142 /* confdefs.h. */
22143 _ACEOF
22144 cat confdefs.h >>conftest.$ac_ext
22145 cat >>conftest.$ac_ext <<_ACEOF
22146 /* end confdefs.h. */
22148 /* Override any GCC internal prototype to avoid an error.
22149 Use char because int might match the return type of a GCC
22150 builtin and then its argument prototype would still apply. */
22151 #ifdef __cplusplus
22152 extern "C"
22153 #endif
22154 char ngettext ();
22156 main ()
22158 return ngettext ();
22160 return 0;
22162 _ACEOF
22163 rm -f conftest.$ac_objext conftest$ac_exeext
22164 if { (ac_try="$ac_link"
22165 case "(($ac_try" in
22166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22167 *) ac_try_echo=$ac_try;;
22168 esac
22169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22170 (eval "$ac_link") 2>conftest.er1
22171 ac_status=$?
22172 grep -v '^ *+' conftest.er1 >conftest.err
22173 rm -f conftest.er1
22174 cat conftest.err >&5
22175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22176 (exit $ac_status); } && {
22177 test -z "$ac_c_werror_flag" ||
22178 test ! -s conftest.err
22179 } && test -s conftest$ac_exeext &&
22180 $as_test_x conftest$ac_exeext; then
22181 ac_cv_lib_intl_ngettext=yes
22182 else
22183 echo "$as_me: failed program was:" >&5
22184 sed 's/^/| /' conftest.$ac_ext >&5
22186 ac_cv_lib_intl_ngettext=no
22189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22190 conftest$ac_exeext conftest.$ac_ext
22191 LIBS=$ac_check_lib_save_LIBS
22193 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
22194 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
22195 if test $ac_cv_lib_intl_ngettext = yes; then
22196 { echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
22197 echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; }
22198 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
22199 echo $ECHO_N "(cached) $ECHO_C" >&6
22200 else
22201 ac_check_lib_save_LIBS=$LIBS
22202 LIBS="-lintl -liconv $LIBS"
22203 cat >conftest.$ac_ext <<_ACEOF
22204 /* confdefs.h. */
22205 _ACEOF
22206 cat confdefs.h >>conftest.$ac_ext
22207 cat >>conftest.$ac_ext <<_ACEOF
22208 /* end confdefs.h. */
22210 /* Override any GCC internal prototype to avoid an error.
22211 Use char because int might match the return type of a GCC
22212 builtin and then its argument prototype would still apply. */
22213 #ifdef __cplusplus
22214 extern "C"
22215 #endif
22216 char dcgettext ();
22218 main ()
22220 return dcgettext ();
22222 return 0;
22224 _ACEOF
22225 rm -f conftest.$ac_objext conftest$ac_exeext
22226 if { (ac_try="$ac_link"
22227 case "(($ac_try" in
22228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22229 *) ac_try_echo=$ac_try;;
22230 esac
22231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22232 (eval "$ac_link") 2>conftest.er1
22233 ac_status=$?
22234 grep -v '^ *+' conftest.er1 >conftest.err
22235 rm -f conftest.er1
22236 cat conftest.err >&5
22237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22238 (exit $ac_status); } && {
22239 test -z "$ac_c_werror_flag" ||
22240 test ! -s conftest.err
22241 } && test -s conftest$ac_exeext &&
22242 $as_test_x conftest$ac_exeext; then
22243 ac_cv_lib_intl_dcgettext=yes
22244 else
22245 echo "$as_me: failed program was:" >&5
22246 sed 's/^/| /' conftest.$ac_ext >&5
22248 ac_cv_lib_intl_dcgettext=no
22251 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22252 conftest$ac_exeext conftest.$ac_ext
22253 LIBS=$ac_check_lib_save_LIBS
22255 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
22256 echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; }
22257 if test $ac_cv_lib_intl_dcgettext = yes; then
22258 gt_cv_func_dgettext_libintl=yes
22259 libintl_extra_libs=-liconv
22260 else
22264 else
22271 # If we found libintl, then check in it for bind_textdomain_codeset();
22272 # we'll prefer libc if neither have bind_textdomain_codeset(),
22273 # and both have dgettext and ngettext
22275 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
22276 glib_save_LIBS="$LIBS"
22277 LIBS="$LIBS -lintl $libintl_extra_libs"
22278 unset ac_cv_func_bind_textdomain_codeset
22280 for ac_func in bind_textdomain_codeset
22282 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22283 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22284 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22285 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22286 echo $ECHO_N "(cached) $ECHO_C" >&6
22287 else
22288 cat >conftest.$ac_ext <<_ACEOF
22289 /* confdefs.h. */
22290 _ACEOF
22291 cat confdefs.h >>conftest.$ac_ext
22292 cat >>conftest.$ac_ext <<_ACEOF
22293 /* end confdefs.h. */
22294 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22295 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22296 #define $ac_func innocuous_$ac_func
22298 /* System header to define __stub macros and hopefully few prototypes,
22299 which can conflict with char $ac_func (); below.
22300 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22301 <limits.h> exists even on freestanding compilers. */
22303 #ifdef __STDC__
22304 # include <limits.h>
22305 #else
22306 # include <assert.h>
22307 #endif
22309 #undef $ac_func
22311 /* Override any GCC internal prototype to avoid an error.
22312 Use char because int might match the return type of a GCC
22313 builtin and then its argument prototype would still apply. */
22314 #ifdef __cplusplus
22315 extern "C"
22316 #endif
22317 char $ac_func ();
22318 /* The GNU C library defines this for functions which it implements
22319 to always fail with ENOSYS. Some functions are actually named
22320 something starting with __ and the normal name is an alias. */
22321 #if defined __stub_$ac_func || defined __stub___$ac_func
22322 choke me
22323 #endif
22326 main ()
22328 return $ac_func ();
22330 return 0;
22332 _ACEOF
22333 rm -f conftest.$ac_objext conftest$ac_exeext
22334 if { (ac_try="$ac_link"
22335 case "(($ac_try" in
22336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22337 *) ac_try_echo=$ac_try;;
22338 esac
22339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22340 (eval "$ac_link") 2>conftest.er1
22341 ac_status=$?
22342 grep -v '^ *+' conftest.er1 >conftest.err
22343 rm -f conftest.er1
22344 cat conftest.err >&5
22345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22346 (exit $ac_status); } && {
22347 test -z "$ac_c_werror_flag" ||
22348 test ! -s conftest.err
22349 } && test -s conftest$ac_exeext &&
22350 $as_test_x conftest$ac_exeext; then
22351 eval "$as_ac_var=yes"
22352 else
22353 echo "$as_me: failed program was:" >&5
22354 sed 's/^/| /' conftest.$ac_ext >&5
22356 eval "$as_ac_var=no"
22359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22360 conftest$ac_exeext conftest.$ac_ext
22362 ac_res=`eval echo '${'$as_ac_var'}'`
22363 { echo "$as_me:$LINENO: result: $ac_res" >&5
22364 echo "${ECHO_T}$ac_res" >&6; }
22365 if test `eval echo '${'$as_ac_var'}'` = yes; then
22366 cat >>confdefs.h <<_ACEOF
22367 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22368 _ACEOF
22371 done
22373 LIBS="$glib_save_LIBS"
22375 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
22376 gt_cv_func_dgettext_libc=no
22377 else
22378 if test "$gt_cv_func_dgettext_libc" = "yes" \
22379 && test "$gt_cv_func_ngettext_libc" = "yes"; then
22380 gt_cv_func_dgettext_libintl=no
22386 if test "$gt_cv_func_dgettext_libc" = "yes" \
22387 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
22388 gt_cv_have_gettext=yes
22391 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
22392 INTLLIBS="-lintl $libintl_extra_libs"
22395 if test "$gt_cv_have_gettext" = "yes"; then
22397 cat >>confdefs.h <<\_ACEOF
22398 #define HAVE_GETTEXT 1
22399 _ACEOF
22401 # Extract the first word of "msgfmt", so it can be a program name with args.
22402 set dummy msgfmt; ac_word=$2
22403 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22405 if test "${ac_cv_path_MSGFMT+set}" = set; then
22406 echo $ECHO_N "(cached) $ECHO_C" >&6
22407 else
22408 case "$MSGFMT" in
22410 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
22413 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
22414 for ac_dir in $PATH; do
22415 test -z "$ac_dir" && ac_dir=.
22416 if test -f $ac_dir/$ac_word; then
22417 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
22418 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
22419 break
22422 done
22423 IFS="$ac_save_ifs"
22424 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
22426 esac
22428 MSGFMT="$ac_cv_path_MSGFMT"
22429 if test "$MSGFMT" != "no"; then
22430 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
22431 echo "${ECHO_T}$MSGFMT" >&6; }
22432 else
22433 { echo "$as_me:$LINENO: result: no" >&5
22434 echo "${ECHO_T}no" >&6; }
22436 if test "$MSGFMT" != "no"; then
22437 glib_save_LIBS="$LIBS"
22438 LIBS="$LIBS $INTLLIBS"
22440 for ac_func in dcgettext
22442 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22443 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22444 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22445 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22446 echo $ECHO_N "(cached) $ECHO_C" >&6
22447 else
22448 cat >conftest.$ac_ext <<_ACEOF
22449 /* confdefs.h. */
22450 _ACEOF
22451 cat confdefs.h >>conftest.$ac_ext
22452 cat >>conftest.$ac_ext <<_ACEOF
22453 /* end confdefs.h. */
22454 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22455 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22456 #define $ac_func innocuous_$ac_func
22458 /* System header to define __stub macros and hopefully few prototypes,
22459 which can conflict with char $ac_func (); below.
22460 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22461 <limits.h> exists even on freestanding compilers. */
22463 #ifdef __STDC__
22464 # include <limits.h>
22465 #else
22466 # include <assert.h>
22467 #endif
22469 #undef $ac_func
22471 /* Override any GCC internal prototype to avoid an error.
22472 Use char because int might match the return type of a GCC
22473 builtin and then its argument prototype would still apply. */
22474 #ifdef __cplusplus
22475 extern "C"
22476 #endif
22477 char $ac_func ();
22478 /* The GNU C library defines this for functions which it implements
22479 to always fail with ENOSYS. Some functions are actually named
22480 something starting with __ and the normal name is an alias. */
22481 #if defined __stub_$ac_func || defined __stub___$ac_func
22482 choke me
22483 #endif
22486 main ()
22488 return $ac_func ();
22490 return 0;
22492 _ACEOF
22493 rm -f conftest.$ac_objext conftest$ac_exeext
22494 if { (ac_try="$ac_link"
22495 case "(($ac_try" in
22496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22497 *) ac_try_echo=$ac_try;;
22498 esac
22499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22500 (eval "$ac_link") 2>conftest.er1
22501 ac_status=$?
22502 grep -v '^ *+' conftest.er1 >conftest.err
22503 rm -f conftest.er1
22504 cat conftest.err >&5
22505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22506 (exit $ac_status); } && {
22507 test -z "$ac_c_werror_flag" ||
22508 test ! -s conftest.err
22509 } && test -s conftest$ac_exeext &&
22510 $as_test_x conftest$ac_exeext; then
22511 eval "$as_ac_var=yes"
22512 else
22513 echo "$as_me: failed program was:" >&5
22514 sed 's/^/| /' conftest.$ac_ext >&5
22516 eval "$as_ac_var=no"
22519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22520 conftest$ac_exeext conftest.$ac_ext
22522 ac_res=`eval echo '${'$as_ac_var'}'`
22523 { echo "$as_me:$LINENO: result: $ac_res" >&5
22524 echo "${ECHO_T}$ac_res" >&6; }
22525 if test `eval echo '${'$as_ac_var'}'` = yes; then
22526 cat >>confdefs.h <<_ACEOF
22527 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22528 _ACEOF
22531 done
22533 MSGFMT_OPTS=
22534 { echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
22535 echo $ECHO_N "checking if msgfmt accepts -c... $ECHO_C" >&6; }
22536 cat >conftest.foo <<_ACEOF
22538 msgid ""
22539 msgstr ""
22540 "Content-Type: text/plain; charset=UTF-8\n"
22541 "Project-Id-Version: test 1.0\n"
22542 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
22543 "Last-Translator: test <foo@bar.xx>\n"
22544 "Language-Team: C <LL@li.org>\n"
22545 "MIME-Version: 1.0\n"
22546 "Content-Transfer-Encoding: 8bit\n"
22548 _ACEOF
22549 if { (echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
22550 ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
22551 ac_status=$?
22552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22553 (exit $ac_status); }; then
22554 MSGFMT_OPTS=-c; { echo "$as_me:$LINENO: result: yes" >&5
22555 echo "${ECHO_T}yes" >&6; }
22556 else { echo "$as_me:$LINENO: result: no" >&5
22557 echo "${ECHO_T}no" >&6; }
22558 echo "$as_me: failed input was:" >&5
22559 sed 's/^/| /' conftest.foo >&5
22562 # Extract the first word of "gmsgfmt", so it can be a program name with args.
22563 set dummy gmsgfmt; ac_word=$2
22564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22566 if test "${ac_cv_path_GMSGFMT+set}" = set; then
22567 echo $ECHO_N "(cached) $ECHO_C" >&6
22568 else
22569 case $GMSGFMT in
22570 [\\/]* | ?:[\\/]*)
22571 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
22574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22575 for as_dir in $PATH
22577 IFS=$as_save_IFS
22578 test -z "$as_dir" && as_dir=.
22579 for ac_exec_ext in '' $ac_executable_extensions; do
22580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22581 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
22582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22583 break 2
22585 done
22586 done
22587 IFS=$as_save_IFS
22589 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
22591 esac
22593 GMSGFMT=$ac_cv_path_GMSGFMT
22594 if test -n "$GMSGFMT"; then
22595 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
22596 echo "${ECHO_T}$GMSGFMT" >&6; }
22597 else
22598 { echo "$as_me:$LINENO: result: no" >&5
22599 echo "${ECHO_T}no" >&6; }
22603 # Extract the first word of "xgettext", so it can be a program name with args.
22604 set dummy xgettext; ac_word=$2
22605 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22607 if test "${ac_cv_path_XGETTEXT+set}" = set; then
22608 echo $ECHO_N "(cached) $ECHO_C" >&6
22609 else
22610 case "$XGETTEXT" in
22612 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
22615 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
22616 for ac_dir in $PATH; do
22617 test -z "$ac_dir" && ac_dir=.
22618 if test -f $ac_dir/$ac_word; then
22619 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
22620 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
22621 break
22624 done
22625 IFS="$ac_save_ifs"
22626 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
22628 esac
22630 XGETTEXT="$ac_cv_path_XGETTEXT"
22631 if test "$XGETTEXT" != ":"; then
22632 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
22633 echo "${ECHO_T}$XGETTEXT" >&6; }
22634 else
22635 { echo "$as_me:$LINENO: result: no" >&5
22636 echo "${ECHO_T}no" >&6; }
22639 cat >conftest.$ac_ext <<_ACEOF
22640 /* confdefs.h. */
22641 _ACEOF
22642 cat confdefs.h >>conftest.$ac_ext
22643 cat >>conftest.$ac_ext <<_ACEOF
22644 /* end confdefs.h. */
22647 main ()
22649 extern int _nl_msg_cat_cntr;
22650 return _nl_msg_cat_cntr
22652 return 0;
22654 _ACEOF
22655 rm -f conftest.$ac_objext conftest$ac_exeext
22656 if { (ac_try="$ac_link"
22657 case "(($ac_try" in
22658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22659 *) ac_try_echo=$ac_try;;
22660 esac
22661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22662 (eval "$ac_link") 2>conftest.er1
22663 ac_status=$?
22664 grep -v '^ *+' conftest.er1 >conftest.err
22665 rm -f conftest.er1
22666 cat conftest.err >&5
22667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22668 (exit $ac_status); } && {
22669 test -z "$ac_c_werror_flag" ||
22670 test ! -s conftest.err
22671 } && test -s conftest$ac_exeext &&
22672 $as_test_x conftest$ac_exeext; then
22673 CATOBJEXT=.gmo
22674 DATADIRNAME=share
22675 else
22676 echo "$as_me: failed program was:" >&5
22677 sed 's/^/| /' conftest.$ac_ext >&5
22679 case $host in
22680 *-*-solaris*)
22681 { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
22682 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
22683 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
22684 echo $ECHO_N "(cached) $ECHO_C" >&6
22685 else
22686 cat >conftest.$ac_ext <<_ACEOF
22687 /* confdefs.h. */
22688 _ACEOF
22689 cat confdefs.h >>conftest.$ac_ext
22690 cat >>conftest.$ac_ext <<_ACEOF
22691 /* end confdefs.h. */
22692 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
22693 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22694 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
22696 /* System header to define __stub macros and hopefully few prototypes,
22697 which can conflict with char bind_textdomain_codeset (); below.
22698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22699 <limits.h> exists even on freestanding compilers. */
22701 #ifdef __STDC__
22702 # include <limits.h>
22703 #else
22704 # include <assert.h>
22705 #endif
22707 #undef bind_textdomain_codeset
22709 /* Override any GCC internal prototype to avoid an error.
22710 Use char because int might match the return type of a GCC
22711 builtin and then its argument prototype would still apply. */
22712 #ifdef __cplusplus
22713 extern "C"
22714 #endif
22715 char bind_textdomain_codeset ();
22716 /* The GNU C library defines this for functions which it implements
22717 to always fail with ENOSYS. Some functions are actually named
22718 something starting with __ and the normal name is an alias. */
22719 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
22720 choke me
22721 #endif
22724 main ()
22726 return bind_textdomain_codeset ();
22728 return 0;
22730 _ACEOF
22731 rm -f conftest.$ac_objext conftest$ac_exeext
22732 if { (ac_try="$ac_link"
22733 case "(($ac_try" in
22734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22735 *) ac_try_echo=$ac_try;;
22736 esac
22737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22738 (eval "$ac_link") 2>conftest.er1
22739 ac_status=$?
22740 grep -v '^ *+' conftest.er1 >conftest.err
22741 rm -f conftest.er1
22742 cat conftest.err >&5
22743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22744 (exit $ac_status); } && {
22745 test -z "$ac_c_werror_flag" ||
22746 test ! -s conftest.err
22747 } && test -s conftest$ac_exeext &&
22748 $as_test_x conftest$ac_exeext; then
22749 ac_cv_func_bind_textdomain_codeset=yes
22750 else
22751 echo "$as_me: failed program was:" >&5
22752 sed 's/^/| /' conftest.$ac_ext >&5
22754 ac_cv_func_bind_textdomain_codeset=no
22757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22758 conftest$ac_exeext conftest.$ac_ext
22760 { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
22761 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
22762 if test $ac_cv_func_bind_textdomain_codeset = yes; then
22763 CATOBJEXT=.gmo
22764 DATADIRNAME=share
22765 else
22766 CATOBJEXT=.mo
22767 DATADIRNAME=lib
22772 CATOBJEXT=.mo
22773 DATADIRNAME=lib
22775 esac
22778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22779 conftest$ac_exeext conftest.$ac_ext
22780 LIBS="$glib_save_LIBS"
22781 INSTOBJEXT=.mo
22782 else
22783 gt_cv_have_gettext=no
22791 if test "$gt_cv_have_gettext" = "yes" ; then
22793 cat >>confdefs.h <<\_ACEOF
22794 #define ENABLE_NLS 1
22795 _ACEOF
22799 if test "$XGETTEXT" != ":"; then
22800 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
22802 else
22803 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
22804 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
22805 XGETTEXT=":"
22809 # We need to process the po/ directory.
22810 POSUB=po
22812 ac_config_commands="$ac_config_commands default-1"
22815 for lang in $ALL_LINGUAS; do
22816 GMOFILES="$GMOFILES $lang.gmo"
22817 POFILES="$POFILES $lang.po"
22818 done
22832 if test "$gt_cv_have_gettext" = "yes"; then
22833 if test "x$ALL_LINGUAS" = "x"; then
22834 LINGUAS=
22835 else
22836 { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
22837 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
22838 NEW_LINGUAS=
22839 for presentlang in $ALL_LINGUAS; do
22840 useit=no
22841 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
22842 desiredlanguages="$LINGUAS"
22843 else
22844 desiredlanguages="$ALL_LINGUAS"
22846 for desiredlang in $desiredlanguages; do
22847 # Use the presentlang catalog if desiredlang is
22848 # a. equal to presentlang, or
22849 # b. a variant of presentlang (because in this case,
22850 # presentlang can be used as a fallback for messages
22851 # which are not translated in the desiredlang catalog).
22852 case "$desiredlang" in
22853 "$presentlang"*) useit=yes;;
22854 esac
22855 done
22856 if test $useit = yes; then
22857 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
22859 done
22860 LINGUAS=$NEW_LINGUAS
22861 { echo "$as_me:$LINENO: result: $LINGUAS" >&5
22862 echo "${ECHO_T}$LINGUAS" >&6; }
22865 if test -n "$LINGUAS"; then
22866 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
22870 MKINSTALLDIRS=
22871 if test -n "$ac_aux_dir"; then
22872 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
22874 if test -z "$MKINSTALLDIRS"; then
22875 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
22879 test -d po || mkdir po
22880 if test "x$srcdir" != "x."; then
22881 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
22882 posrcprefix="$srcdir/"
22883 else
22884 posrcprefix="../$srcdir/"
22886 else
22887 posrcprefix="../"
22889 rm -f po/POTFILES
22890 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
22891 < $srcdir/po/POTFILES.in > po/POTFILES
22894 # To make application visible in maemo Task Navigator it needs a Desktop
22895 # file for the application.
22896 # D-BUS service file is needed to be able to launch the maemo application
22897 # and connect it to D-BUS services.
22898 # The following line defines install directories for these files.
22899 desktopentrydir=/usr/share/applications/hildon
22900 serviceentrydir=/usr/share/dbus-1/services
22902 # Application locale install directory
22903 localedir=/usr/share/locale
22905 # Application pixmaps install directory
22906 pixmapdir=/usr/share/pixmaps/$PACKAGE
22908 # Application icon install directories
22909 icon_26x26dir=$datadir/icons/hicolor/26x26/hildon
22910 icon_34x34dir=$datadir/icons/hicolor/34x34/hildon
22911 icon_40x40dir=$datadir/icons/hicolor/40x40/hildon
22912 icon_50x50dir=$datadir/icons/hicolor/50x50/hildon
22913 icon_scalabledir=$datadir/icons/hicolor/scalable/hildon
22915 # Hildon control panel plugin install directories
22916 pluginlibdir=`$PKG_CONFIG hildon-control-panel --variable=plugindir`
22917 plugindesktopentrydir=`$PKG_CONFIG hildon-control-panel --variable=plugindesktopentrydir`
22919 # Define as variables in Makefiles
22932 # Application Installer uses alternative root prefix /var/lib/install
22933 # where packages are installed. Build time and run time are different.
22934 # Define runtime paths to applications in config.h.
22935 #runtime_root=/var/lib/install
22936 #runtime_localedir=$runtime_root$localedir
22937 #runtime_pixmapdir=$runtime_root$pixmapdir
22940 cat >>confdefs.h <<_ACEOF
22941 #define LOCALEDIR "${localedir}"
22942 _ACEOF
22945 cat >>confdefs.h <<_ACEOF
22946 #define PIXMAPDIR "${pixmapdir}"
22947 _ACEOF
22950 # Produce output files
22951 ac_config_files="$ac_config_files Makefile src/Makefile data/Makefile po/Makefile.in po/Makefile"
22953 cat >confcache <<\_ACEOF
22954 # This file is a shell script that caches the results of configure
22955 # tests run on this system so they can be shared between configure
22956 # scripts and configure runs, see configure's option --config-cache.
22957 # It is not useful on other systems. If it contains results you don't
22958 # want to keep, you may remove or edit it.
22960 # config.status only pays attention to the cache file if you give it
22961 # the --recheck option to rerun configure.
22963 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22964 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22965 # following values.
22967 _ACEOF
22969 # The following way of writing the cache mishandles newlines in values,
22970 # but we know of no workaround that is simple, portable, and efficient.
22971 # So, we kill variables containing newlines.
22972 # Ultrix sh set writes to stderr and can't be redirected directly,
22973 # and sets the high bit in the cache file unless we assign to the vars.
22975 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22976 eval ac_val=\$$ac_var
22977 case $ac_val in #(
22978 *${as_nl}*)
22979 case $ac_var in #(
22980 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22981 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22982 esac
22983 case $ac_var in #(
22984 _ | IFS | as_nl) ;; #(
22985 *) $as_unset $ac_var ;;
22986 esac ;;
22987 esac
22988 done
22990 (set) 2>&1 |
22991 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22992 *${as_nl}ac_space=\ *)
22993 # `set' does not quote correctly, so add quotes (double-quote
22994 # substitution turns \\\\ into \\, and sed turns \\ into \).
22995 sed -n \
22996 "s/'/'\\\\''/g;
22997 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22998 ;; #(
23000 # `set' quotes correctly as required by POSIX, so do not add quotes.
23001 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23003 esac |
23004 sort
23006 sed '
23007 /^ac_cv_env_/b end
23008 t clear
23009 :clear
23010 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23011 t end
23012 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23013 :end' >>confcache
23014 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23015 if test -w "$cache_file"; then
23016 test "x$cache_file" != "x/dev/null" &&
23017 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23018 echo "$as_me: updating cache $cache_file" >&6;}
23019 cat confcache >$cache_file
23020 else
23021 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23022 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23025 rm -f confcache
23027 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23028 # Let make expand exec_prefix.
23029 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23031 DEFS=-DHAVE_CONFIG_H
23033 ac_libobjs=
23034 ac_ltlibobjs=
23035 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23036 # 1. Remove the extension, and $U if already installed.
23037 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23038 ac_i=`echo "$ac_i" | sed "$ac_script"`
23039 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23040 # will be set to the directory where LIBOBJS objects are built.
23041 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23042 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23043 done
23044 LIBOBJS=$ac_libobjs
23046 LTLIBOBJS=$ac_ltlibobjs
23049 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23050 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23051 Usually this means the macro was only invoked conditionally." >&5
23052 echo "$as_me: error: conditional \"AMDEP\" was never defined.
23053 Usually this means the macro was only invoked conditionally." >&2;}
23054 { (exit 1); exit 1; }; }
23056 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23057 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23058 Usually this means the macro was only invoked conditionally." >&5
23059 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23060 Usually this means the macro was only invoked conditionally." >&2;}
23061 { (exit 1); exit 1; }; }
23063 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23064 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23065 Usually this means the macro was only invoked conditionally." >&5
23066 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23067 Usually this means the macro was only invoked conditionally." >&2;}
23068 { (exit 1); exit 1; }; }
23071 ac_config_commands="$ac_config_commands po/stamp-it"
23075 : ${CONFIG_STATUS=./config.status}
23076 ac_clean_files_save=$ac_clean_files
23077 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23078 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23079 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23080 cat >$CONFIG_STATUS <<_ACEOF
23081 #! $SHELL
23082 # Generated by $as_me.
23083 # Run this file to recreate the current configuration.
23084 # Compiler output produced by configure, useful for debugging
23085 # configure, is in config.log if it exists.
23087 debug=false
23088 ac_cs_recheck=false
23089 ac_cs_silent=false
23090 SHELL=\${CONFIG_SHELL-$SHELL}
23091 _ACEOF
23093 cat >>$CONFIG_STATUS <<\_ACEOF
23094 ## --------------------- ##
23095 ## M4sh Initialization. ##
23096 ## --------------------- ##
23098 # Be more Bourne compatible
23099 DUALCASE=1; export DUALCASE # for MKS sh
23100 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23101 emulate sh
23102 NULLCMD=:
23103 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23104 # is contrary to our usage. Disable this feature.
23105 alias -g '${1+"$@"}'='"$@"'
23106 setopt NO_GLOB_SUBST
23107 else
23108 case `(set -o) 2>/dev/null` in
23109 *posix*) set -o posix ;;
23110 esac
23117 # PATH needs CR
23118 # Avoid depending upon Character Ranges.
23119 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23120 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23121 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23122 as_cr_digits='0123456789'
23123 as_cr_alnum=$as_cr_Letters$as_cr_digits
23125 # The user is always right.
23126 if test "${PATH_SEPARATOR+set}" != set; then
23127 echo "#! /bin/sh" >conf$$.sh
23128 echo "exit 0" >>conf$$.sh
23129 chmod +x conf$$.sh
23130 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23131 PATH_SEPARATOR=';'
23132 else
23133 PATH_SEPARATOR=:
23135 rm -f conf$$.sh
23138 # Support unset when possible.
23139 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23140 as_unset=unset
23141 else
23142 as_unset=false
23146 # IFS
23147 # We need space, tab and new line, in precisely that order. Quoting is
23148 # there to prevent editors from complaining about space-tab.
23149 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23150 # splitting by setting IFS to empty value.)
23151 as_nl='
23153 IFS=" "" $as_nl"
23155 # Find who we are. Look in the path if we contain no directory separator.
23156 case $0 in
23157 *[\\/]* ) as_myself=$0 ;;
23158 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23159 for as_dir in $PATH
23161 IFS=$as_save_IFS
23162 test -z "$as_dir" && as_dir=.
23163 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23164 done
23165 IFS=$as_save_IFS
23168 esac
23169 # We did not find ourselves, most probably we were run as `sh COMMAND'
23170 # in which case we are not to be found in the path.
23171 if test "x$as_myself" = x; then
23172 as_myself=$0
23174 if test ! -f "$as_myself"; then
23175 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23176 { (exit 1); exit 1; }
23179 # Work around bugs in pre-3.0 UWIN ksh.
23180 for as_var in ENV MAIL MAILPATH
23181 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23182 done
23183 PS1='$ '
23184 PS2='> '
23185 PS4='+ '
23187 # NLS nuisances.
23188 for as_var in \
23189 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23190 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23191 LC_TELEPHONE LC_TIME
23193 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23194 eval $as_var=C; export $as_var
23195 else
23196 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23198 done
23200 # Required to use basename.
23201 if expr a : '\(a\)' >/dev/null 2>&1 &&
23202 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23203 as_expr=expr
23204 else
23205 as_expr=false
23208 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23209 as_basename=basename
23210 else
23211 as_basename=false
23215 # Name of the executable.
23216 as_me=`$as_basename -- "$0" ||
23217 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23218 X"$0" : 'X\(//\)$' \| \
23219 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23220 echo X/"$0" |
23221 sed '/^.*\/\([^/][^/]*\)\/*$/{
23222 s//\1/
23225 /^X\/\(\/\/\)$/{
23226 s//\1/
23229 /^X\/\(\/\).*/{
23230 s//\1/
23233 s/.*/./; q'`
23235 # CDPATH.
23236 $as_unset CDPATH
23240 as_lineno_1=$LINENO
23241 as_lineno_2=$LINENO
23242 test "x$as_lineno_1" != "x$as_lineno_2" &&
23243 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23245 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23246 # uniformly replaced by the line number. The first 'sed' inserts a
23247 # line-number line after each line using $LINENO; the second 'sed'
23248 # does the real work. The second script uses 'N' to pair each
23249 # line-number line with the line containing $LINENO, and appends
23250 # trailing '-' during substitution so that $LINENO is not a special
23251 # case at line end.
23252 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23253 # scripts with optimization help from Paolo Bonzini. Blame Lee
23254 # E. McMahon (1931-1989) for sed's syntax. :-)
23255 sed -n '
23257 /[$]LINENO/=
23258 ' <$as_myself |
23259 sed '
23260 s/[$]LINENO.*/&-/
23261 t lineno
23263 :lineno
23265 :loop
23266 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23267 t loop
23268 s/-\n.*//
23269 ' >$as_me.lineno &&
23270 chmod +x "$as_me.lineno" ||
23271 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23272 { (exit 1); exit 1; }; }
23274 # Don't try to exec as it changes $[0], causing all sort of problems
23275 # (the dirname of $[0] is not the place where we might find the
23276 # original and so on. Autoconf is especially sensitive to this).
23277 . "./$as_me.lineno"
23278 # Exit status is that of the last command.
23279 exit
23283 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23284 as_dirname=dirname
23285 else
23286 as_dirname=false
23289 ECHO_C= ECHO_N= ECHO_T=
23290 case `echo -n x` in
23291 -n*)
23292 case `echo 'x\c'` in
23293 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23294 *) ECHO_C='\c';;
23295 esac;;
23297 ECHO_N='-n';;
23298 esac
23300 if expr a : '\(a\)' >/dev/null 2>&1 &&
23301 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23302 as_expr=expr
23303 else
23304 as_expr=false
23307 rm -f conf$$ conf$$.exe conf$$.file
23308 if test -d conf$$.dir; then
23309 rm -f conf$$.dir/conf$$.file
23310 else
23311 rm -f conf$$.dir
23312 mkdir conf$$.dir
23314 echo >conf$$.file
23315 if ln -s conf$$.file conf$$ 2>/dev/null; then
23316 as_ln_s='ln -s'
23317 # ... but there are two gotchas:
23318 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23319 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23320 # In both cases, we have to default to `cp -p'.
23321 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23322 as_ln_s='cp -p'
23323 elif ln conf$$.file conf$$ 2>/dev/null; then
23324 as_ln_s=ln
23325 else
23326 as_ln_s='cp -p'
23328 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23329 rmdir conf$$.dir 2>/dev/null
23331 if mkdir -p . 2>/dev/null; then
23332 as_mkdir_p=:
23333 else
23334 test -d ./-p && rmdir ./-p
23335 as_mkdir_p=false
23338 if test -x / >/dev/null 2>&1; then
23339 as_test_x='test -x'
23340 else
23341 if ls -dL / >/dev/null 2>&1; then
23342 as_ls_L_option=L
23343 else
23344 as_ls_L_option=
23346 as_test_x='
23347 eval sh -c '\''
23348 if test -d "$1"; then
23349 test -d "$1/.";
23350 else
23351 case $1 in
23352 -*)set "./$1";;
23353 esac;
23354 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23355 ???[sx]*):;;*)false;;esac;fi
23356 '\'' sh
23359 as_executable_p=$as_test_x
23361 # Sed expression to map a string onto a valid CPP name.
23362 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23364 # Sed expression to map a string onto a valid variable name.
23365 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23368 exec 6>&1
23370 # Save the log message, to keep $[0] and so on meaningful, and to
23371 # report actual input values of CONFIG_FILES etc. instead of their
23372 # values after options handling.
23373 ac_log="
23374 This file was extended by $as_me, which was
23375 generated by GNU Autoconf 2.61. Invocation command line was
23377 CONFIG_FILES = $CONFIG_FILES
23378 CONFIG_HEADERS = $CONFIG_HEADERS
23379 CONFIG_LINKS = $CONFIG_LINKS
23380 CONFIG_COMMANDS = $CONFIG_COMMANDS
23381 $ $0 $@
23383 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23386 _ACEOF
23388 cat >>$CONFIG_STATUS <<_ACEOF
23389 # Files that config.status was made for.
23390 config_files="$ac_config_files"
23391 config_headers="$ac_config_headers"
23392 config_commands="$ac_config_commands"
23394 _ACEOF
23396 cat >>$CONFIG_STATUS <<\_ACEOF
23397 ac_cs_usage="\
23398 \`$as_me' instantiates files from templates according to the
23399 current configuration.
23401 Usage: $0 [OPTIONS] [FILE]...
23403 -h, --help print this help, then exit
23404 -V, --version print version number and configuration settings, then exit
23405 -q, --quiet do not print progress messages
23406 -d, --debug don't remove temporary files
23407 --recheck update $as_me by reconfiguring in the same conditions
23408 --file=FILE[:TEMPLATE]
23409 instantiate the configuration file FILE
23410 --header=FILE[:TEMPLATE]
23411 instantiate the configuration header FILE
23413 Configuration files:
23414 $config_files
23416 Configuration headers:
23417 $config_headers
23419 Configuration commands:
23420 $config_commands
23422 Report bugs to <bug-autoconf@gnu.org>."
23424 _ACEOF
23425 cat >>$CONFIG_STATUS <<_ACEOF
23426 ac_cs_version="\\
23427 config.status
23428 configured by $0, generated by GNU Autoconf 2.61,
23429 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23431 Copyright (C) 2006 Free Software Foundation, Inc.
23432 This config.status script is free software; the Free Software Foundation
23433 gives unlimited permission to copy, distribute and modify it."
23435 ac_pwd='$ac_pwd'
23436 srcdir='$srcdir'
23437 INSTALL='$INSTALL'
23438 _ACEOF
23440 cat >>$CONFIG_STATUS <<\_ACEOF
23441 # If no file are specified by the user, then we need to provide default
23442 # value. By we need to know if files were specified by the user.
23443 ac_need_defaults=:
23444 while test $# != 0
23446 case $1 in
23447 --*=*)
23448 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23449 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23450 ac_shift=:
23453 ac_option=$1
23454 ac_optarg=$2
23455 ac_shift=shift
23457 esac
23459 case $ac_option in
23460 # Handling of the options.
23461 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23462 ac_cs_recheck=: ;;
23463 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23464 echo "$ac_cs_version"; exit ;;
23465 --debug | --debu | --deb | --de | --d | -d )
23466 debug=: ;;
23467 --file | --fil | --fi | --f )
23468 $ac_shift
23469 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23470 ac_need_defaults=false;;
23471 --header | --heade | --head | --hea )
23472 $ac_shift
23473 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23474 ac_need_defaults=false;;
23475 --he | --h)
23476 # Conflict between --help and --header
23477 { echo "$as_me: error: ambiguous option: $1
23478 Try \`$0 --help' for more information." >&2
23479 { (exit 1); exit 1; }; };;
23480 --help | --hel | -h )
23481 echo "$ac_cs_usage"; exit ;;
23482 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23483 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23484 ac_cs_silent=: ;;
23486 # This is an error.
23487 -*) { echo "$as_me: error: unrecognized option: $1
23488 Try \`$0 --help' for more information." >&2
23489 { (exit 1); exit 1; }; } ;;
23491 *) ac_config_targets="$ac_config_targets $1"
23492 ac_need_defaults=false ;;
23494 esac
23495 shift
23496 done
23498 ac_configure_extra_args=
23500 if $ac_cs_silent; then
23501 exec 6>/dev/null
23502 ac_configure_extra_args="$ac_configure_extra_args --silent"
23505 _ACEOF
23506 cat >>$CONFIG_STATUS <<_ACEOF
23507 if \$ac_cs_recheck; then
23508 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23509 CONFIG_SHELL=$SHELL
23510 export CONFIG_SHELL
23511 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23514 _ACEOF
23515 cat >>$CONFIG_STATUS <<\_ACEOF
23516 exec 5>>config.log
23518 echo
23519 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23520 ## Running $as_me. ##
23521 _ASBOX
23522 echo "$ac_log"
23523 } >&5
23525 _ACEOF
23526 cat >>$CONFIG_STATUS <<_ACEOF
23528 # INIT-COMMANDS
23530 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23533 _ACEOF
23535 cat >>$CONFIG_STATUS <<\_ACEOF
23537 # Handling of arguments.
23538 for ac_config_target in $ac_config_targets
23540 case $ac_config_target in
23541 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23542 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23543 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
23544 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23545 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23546 "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
23547 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
23548 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
23549 "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
23551 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23552 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23553 { (exit 1); exit 1; }; };;
23554 esac
23555 done
23558 # If the user did not use the arguments to specify the items to instantiate,
23559 # then the envvar interface is used. Set only those that are not.
23560 # We use the long form for the default assignment because of an extremely
23561 # bizarre bug on SunOS 4.1.3.
23562 if $ac_need_defaults; then
23563 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23564 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23565 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23568 # Have a temporary directory for convenience. Make it in the build tree
23569 # simply because there is no reason against having it here, and in addition,
23570 # creating and moving files from /tmp can sometimes cause problems.
23571 # Hook for its removal unless debugging.
23572 # Note that there is a small window in which the directory will not be cleaned:
23573 # after its creation but before its name has been assigned to `$tmp'.
23574 $debug ||
23576 tmp=
23577 trap 'exit_status=$?
23578 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23580 trap '{ (exit 1); exit 1; }' 1 2 13 15
23582 # Create a (secure) tmp directory for tmp files.
23585 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23586 test -n "$tmp" && test -d "$tmp"
23587 } ||
23589 tmp=./conf$$-$RANDOM
23590 (umask 077 && mkdir "$tmp")
23591 } ||
23593 echo "$me: cannot create a temporary directory in ." >&2
23594 { (exit 1); exit 1; }
23598 # Set up the sed scripts for CONFIG_FILES section.
23601 # No need to generate the scripts if there are no CONFIG_FILES.
23602 # This happens for instance when ./config.status config.h
23603 if test -n "$CONFIG_FILES"; then
23605 _ACEOF
23609 ac_delim='%!_!# '
23610 for ac_last_try in false false false false false :; do
23611 cat >conf$$subs.sed <<_ACEOF
23612 SHELL!$SHELL$ac_delim
23613 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23614 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23615 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23616 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23617 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23618 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23619 exec_prefix!$exec_prefix$ac_delim
23620 prefix!$prefix$ac_delim
23621 program_transform_name!$program_transform_name$ac_delim
23622 bindir!$bindir$ac_delim
23623 sbindir!$sbindir$ac_delim
23624 libexecdir!$libexecdir$ac_delim
23625 datarootdir!$datarootdir$ac_delim
23626 datadir!$datadir$ac_delim
23627 sysconfdir!$sysconfdir$ac_delim
23628 sharedstatedir!$sharedstatedir$ac_delim
23629 localstatedir!$localstatedir$ac_delim
23630 includedir!$includedir$ac_delim
23631 oldincludedir!$oldincludedir$ac_delim
23632 docdir!$docdir$ac_delim
23633 infodir!$infodir$ac_delim
23634 htmldir!$htmldir$ac_delim
23635 dvidir!$dvidir$ac_delim
23636 pdfdir!$pdfdir$ac_delim
23637 psdir!$psdir$ac_delim
23638 libdir!$libdir$ac_delim
23639 localedir!$localedir$ac_delim
23640 mandir!$mandir$ac_delim
23641 DEFS!$DEFS$ac_delim
23642 ECHO_C!$ECHO_C$ac_delim
23643 ECHO_N!$ECHO_N$ac_delim
23644 ECHO_T!$ECHO_T$ac_delim
23645 LIBS!$LIBS$ac_delim
23646 build_alias!$build_alias$ac_delim
23647 host_alias!$host_alias$ac_delim
23648 target_alias!$target_alias$ac_delim
23649 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23650 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23651 INSTALL_DATA!$INSTALL_DATA$ac_delim
23652 CYGPATH_W!$CYGPATH_W$ac_delim
23653 PACKAGE!$PACKAGE$ac_delim
23654 VERSION!$VERSION$ac_delim
23655 ACLOCAL!$ACLOCAL$ac_delim
23656 AUTOCONF!$AUTOCONF$ac_delim
23657 AUTOMAKE!$AUTOMAKE$ac_delim
23658 AUTOHEADER!$AUTOHEADER$ac_delim
23659 MAKEINFO!$MAKEINFO$ac_delim
23660 AMTAR!$AMTAR$ac_delim
23661 install_sh!$install_sh$ac_delim
23662 STRIP!$STRIP$ac_delim
23663 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
23664 AWK!$AWK$ac_delim
23665 SET_MAKE!$SET_MAKE$ac_delim
23666 am__leading_dot!$am__leading_dot$ac_delim
23667 build!$build$ac_delim
23668 build_cpu!$build_cpu$ac_delim
23669 build_vendor!$build_vendor$ac_delim
23670 build_os!$build_os$ac_delim
23671 host!$host$ac_delim
23672 host_cpu!$host_cpu$ac_delim
23673 host_vendor!$host_vendor$ac_delim
23674 host_os!$host_os$ac_delim
23675 CC!$CC$ac_delim
23676 CFLAGS!$CFLAGS$ac_delim
23677 LDFLAGS!$LDFLAGS$ac_delim
23678 CPPFLAGS!$CPPFLAGS$ac_delim
23679 ac_ct_CC!$ac_ct_CC$ac_delim
23680 EXEEXT!$EXEEXT$ac_delim
23681 OBJEXT!$OBJEXT$ac_delim
23682 DEPDIR!$DEPDIR$ac_delim
23683 am__include!$am__include$ac_delim
23684 am__quote!$am__quote$ac_delim
23685 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
23686 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
23687 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
23688 CCDEPMODE!$CCDEPMODE$ac_delim
23689 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
23690 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
23691 CPP!$CPP$ac_delim
23692 RANLIB!$RANLIB$ac_delim
23693 SED!$SED$ac_delim
23694 GREP!$GREP$ac_delim
23695 EGREP!$EGREP$ac_delim
23696 LN_S!$LN_S$ac_delim
23697 ECHO!$ECHO$ac_delim
23698 AR!$AR$ac_delim
23699 DSYMUTIL!$DSYMUTIL$ac_delim
23700 NMEDIT!$NMEDIT$ac_delim
23701 CXX!$CXX$ac_delim
23702 CXXFLAGS!$CXXFLAGS$ac_delim
23703 ac_ct_CXX!$ac_ct_CXX$ac_delim
23704 CXXDEPMODE!$CXXDEPMODE$ac_delim
23705 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
23706 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
23707 CXXCPP!$CXXCPP$ac_delim
23708 F77!$F77$ac_delim
23709 _ACEOF
23711 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23712 break
23713 elif $ac_last_try; then
23714 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23715 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23716 { (exit 1); exit 1; }; }
23717 else
23718 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23720 done
23722 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23723 if test -n "$ac_eof"; then
23724 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23725 ac_eof=`expr $ac_eof + 1`
23728 cat >>$CONFIG_STATUS <<_ACEOF
23729 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23730 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23731 _ACEOF
23732 sed '
23733 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23734 s/^/s,@/; s/!/@,|#_!!_#|/
23737 s/'"$ac_delim"'$/,g/; t
23738 s/$/\\/; p
23739 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23740 ' >>$CONFIG_STATUS <conf$$subs.sed
23741 rm -f conf$$subs.sed
23742 cat >>$CONFIG_STATUS <<_ACEOF
23743 CEOF$ac_eof
23744 _ACEOF
23747 ac_delim='%!_!# '
23748 for ac_last_try in false false false false false :; do
23749 cat >conf$$subs.sed <<_ACEOF
23750 FFLAGS!$FFLAGS$ac_delim
23751 ac_ct_F77!$ac_ct_F77$ac_delim
23752 LIBTOOL!$LIBTOOL$ac_delim
23753 USE_NLS!$USE_NLS$ac_delim
23754 INTLTOOL_UPDATE!$INTLTOOL_UPDATE$ac_delim
23755 INTLTOOL_MERGE!$INTLTOOL_MERGE$ac_delim
23756 INTLTOOL_EXTRACT!$INTLTOOL_EXTRACT$ac_delim
23757 INTLTOOL_DESKTOP_RULE!$INTLTOOL_DESKTOP_RULE$ac_delim
23758 INTLTOOL_DIRECTORY_RULE!$INTLTOOL_DIRECTORY_RULE$ac_delim
23759 INTLTOOL_KEYS_RULE!$INTLTOOL_KEYS_RULE$ac_delim
23760 INTLTOOL_PROP_RULE!$INTLTOOL_PROP_RULE$ac_delim
23761 INTLTOOL_OAF_RULE!$INTLTOOL_OAF_RULE$ac_delim
23762 INTLTOOL_PONG_RULE!$INTLTOOL_PONG_RULE$ac_delim
23763 INTLTOOL_SERVER_RULE!$INTLTOOL_SERVER_RULE$ac_delim
23764 INTLTOOL_SHEET_RULE!$INTLTOOL_SHEET_RULE$ac_delim
23765 INTLTOOL_SOUNDLIST_RULE!$INTLTOOL_SOUNDLIST_RULE$ac_delim
23766 INTLTOOL_UI_RULE!$INTLTOOL_UI_RULE$ac_delim
23767 INTLTOOL_XAM_RULE!$INTLTOOL_XAM_RULE$ac_delim
23768 INTLTOOL_KBD_RULE!$INTLTOOL_KBD_RULE$ac_delim
23769 INTLTOOL_XML_RULE!$INTLTOOL_XML_RULE$ac_delim
23770 INTLTOOL_XML_NOMERGE_RULE!$INTLTOOL_XML_NOMERGE_RULE$ac_delim
23771 INTLTOOL_CAVES_RULE!$INTLTOOL_CAVES_RULE$ac_delim
23772 INTLTOOL_SCHEMAS_RULE!$INTLTOOL_SCHEMAS_RULE$ac_delim
23773 INTLTOOL_THEME_RULE!$INTLTOOL_THEME_RULE$ac_delim
23774 INTLTOOL_SERVICE_RULE!$INTLTOOL_SERVICE_RULE$ac_delim
23775 INTLTOOL_POLICY_RULE!$INTLTOOL_POLICY_RULE$ac_delim
23776 XGETTEXT!$XGETTEXT$ac_delim
23777 MSGMERGE!$MSGMERGE$ac_delim
23778 MSGFMT!$MSGFMT$ac_delim
23779 GMSGFMT!$GMSGFMT$ac_delim
23780 INTLTOOL_PERL!$INTLTOOL_PERL$ac_delim
23781 ALL_LINGUAS!$ALL_LINGUAS$ac_delim
23782 DATADIRNAME!$DATADIRNAME$ac_delim
23783 PKG_CONFIG!$PKG_CONFIG$ac_delim
23784 HILDON_CFLAGS!$HILDON_CFLAGS$ac_delim
23785 HILDON_LIBS!$HILDON_LIBS$ac_delim
23786 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
23787 DBUS_LIBS!$DBUS_LIBS$ac_delim
23788 OSSO_CFLAGS!$OSSO_CFLAGS$ac_delim
23789 OSSO_LIBS!$OSSO_LIBS$ac_delim
23790 SQL3_CFLAGS!$SQL3_CFLAGS$ac_delim
23791 SQL3_LIBS!$SQL3_LIBS$ac_delim
23792 SHARINGDIALOG_CFLAGS!$SHARINGDIALOG_CFLAGS$ac_delim
23793 SHARINGDIALOG_LIBS!$SHARINGDIALOG_LIBS$ac_delim
23794 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
23795 MSGFMT_OPTS!$MSGFMT_OPTS$ac_delim
23796 CATALOGS!$CATALOGS$ac_delim
23797 CATOBJEXT!$CATOBJEXT$ac_delim
23798 GMOFILES!$GMOFILES$ac_delim
23799 INSTOBJEXT!$INSTOBJEXT$ac_delim
23800 INTLLIBS!$INTLLIBS$ac_delim
23801 PO_IN_DATADIR_TRUE!$PO_IN_DATADIR_TRUE$ac_delim
23802 PO_IN_DATADIR_FALSE!$PO_IN_DATADIR_FALSE$ac_delim
23803 POFILES!$POFILES$ac_delim
23804 POSUB!$POSUB$ac_delim
23805 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
23806 desktopentrydir!$desktopentrydir$ac_delim
23807 serviceentrydir!$serviceentrydir$ac_delim
23808 pixmapdir!$pixmapdir$ac_delim
23809 icon_26x26dir!$icon_26x26dir$ac_delim
23810 icon_34x34dir!$icon_34x34dir$ac_delim
23811 icon_40x40dir!$icon_40x40dir$ac_delim
23812 icon_50x50dir!$icon_50x50dir$ac_delim
23813 icon_scalabledir!$icon_scalabledir$ac_delim
23814 pluginlibdir!$pluginlibdir$ac_delim
23815 plugindesktopentrydir!$plugindesktopentrydir$ac_delim
23816 LIBOBJS!$LIBOBJS$ac_delim
23817 LTLIBOBJS!$LTLIBOBJS$ac_delim
23818 _ACEOF
23820 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 68; then
23821 break
23822 elif $ac_last_try; then
23823 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23824 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23825 { (exit 1); exit 1; }; }
23826 else
23827 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23829 done
23831 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23832 if test -n "$ac_eof"; then
23833 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23834 ac_eof=`expr $ac_eof + 1`
23837 cat >>$CONFIG_STATUS <<_ACEOF
23838 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23839 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23840 _ACEOF
23841 sed '
23842 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23843 s/^/s,@/; s/!/@,|#_!!_#|/
23846 s/'"$ac_delim"'$/,g/; t
23847 s/$/\\/; p
23848 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23849 ' >>$CONFIG_STATUS <conf$$subs.sed
23850 rm -f conf$$subs.sed
23851 cat >>$CONFIG_STATUS <<_ACEOF
23852 :end
23853 s/|#_!!_#|//g
23854 CEOF$ac_eof
23855 _ACEOF
23858 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23859 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23860 # trailing colons and then remove the whole line if VPATH becomes empty
23861 # (actually we leave an empty line to preserve line numbers).
23862 if test "x$srcdir" = x.; then
23863 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23864 s/:*\$(srcdir):*/:/
23865 s/:*\${srcdir}:*/:/
23866 s/:*@srcdir@:*/:/
23867 s/^\([^=]*=[ ]*\):*/\1/
23868 s/:*$//
23869 s/^[^=]*=[ ]*$//
23873 cat >>$CONFIG_STATUS <<\_ACEOF
23874 fi # test -n "$CONFIG_FILES"
23877 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23879 case $ac_tag in
23880 :[FHLC]) ac_mode=$ac_tag; continue;;
23881 esac
23882 case $ac_mode$ac_tag in
23883 :[FHL]*:*);;
23884 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23885 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23886 { (exit 1); exit 1; }; };;
23887 :[FH]-) ac_tag=-:-;;
23888 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23889 esac
23890 ac_save_IFS=$IFS
23891 IFS=:
23892 set x $ac_tag
23893 IFS=$ac_save_IFS
23894 shift
23895 ac_file=$1
23896 shift
23898 case $ac_mode in
23899 :L) ac_source=$1;;
23900 :[FH])
23901 ac_file_inputs=
23902 for ac_f
23904 case $ac_f in
23905 -) ac_f="$tmp/stdin";;
23906 *) # Look for the file first in the build tree, then in the source tree
23907 # (if the path is not absolute). The absolute path cannot be DOS-style,
23908 # because $ac_f cannot contain `:'.
23909 test -f "$ac_f" ||
23910 case $ac_f in
23911 [\\/$]*) false;;
23912 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23913 esac ||
23914 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23915 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23916 { (exit 1); exit 1; }; };;
23917 esac
23918 ac_file_inputs="$ac_file_inputs $ac_f"
23919 done
23921 # Let's still pretend it is `configure' which instantiates (i.e., don't
23922 # use $as_me), people would be surprised to read:
23923 # /* config.h. Generated by config.status. */
23924 configure_input="Generated from "`IFS=:
23925 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23926 if test x"$ac_file" != x-; then
23927 configure_input="$ac_file. $configure_input"
23928 { echo "$as_me:$LINENO: creating $ac_file" >&5
23929 echo "$as_me: creating $ac_file" >&6;}
23932 case $ac_tag in
23933 *:-:* | *:-) cat >"$tmp/stdin";;
23934 esac
23936 esac
23938 ac_dir=`$as_dirname -- "$ac_file" ||
23939 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23940 X"$ac_file" : 'X\(//\)[^/]' \| \
23941 X"$ac_file" : 'X\(//\)$' \| \
23942 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23943 echo X"$ac_file" |
23944 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23945 s//\1/
23948 /^X\(\/\/\)[^/].*/{
23949 s//\1/
23952 /^X\(\/\/\)$/{
23953 s//\1/
23956 /^X\(\/\).*/{
23957 s//\1/
23960 s/.*/./; q'`
23961 { as_dir="$ac_dir"
23962 case $as_dir in #(
23963 -*) as_dir=./$as_dir;;
23964 esac
23965 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23966 as_dirs=
23967 while :; do
23968 case $as_dir in #(
23969 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23970 *) as_qdir=$as_dir;;
23971 esac
23972 as_dirs="'$as_qdir' $as_dirs"
23973 as_dir=`$as_dirname -- "$as_dir" ||
23974 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23975 X"$as_dir" : 'X\(//\)[^/]' \| \
23976 X"$as_dir" : 'X\(//\)$' \| \
23977 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23978 echo X"$as_dir" |
23979 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23980 s//\1/
23983 /^X\(\/\/\)[^/].*/{
23984 s//\1/
23987 /^X\(\/\/\)$/{
23988 s//\1/
23991 /^X\(\/\).*/{
23992 s//\1/
23995 s/.*/./; q'`
23996 test -d "$as_dir" && break
23997 done
23998 test -z "$as_dirs" || eval "mkdir $as_dirs"
23999 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24000 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24001 { (exit 1); exit 1; }; }; }
24002 ac_builddir=.
24004 case "$ac_dir" in
24005 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24007 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24008 # A ".." for each directory in $ac_dir_suffix.
24009 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24010 case $ac_top_builddir_sub in
24011 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24012 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24013 esac ;;
24014 esac
24015 ac_abs_top_builddir=$ac_pwd
24016 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24017 # for backward compatibility:
24018 ac_top_builddir=$ac_top_build_prefix
24020 case $srcdir in
24021 .) # We are building in place.
24022 ac_srcdir=.
24023 ac_top_srcdir=$ac_top_builddir_sub
24024 ac_abs_top_srcdir=$ac_pwd ;;
24025 [\\/]* | ?:[\\/]* ) # Absolute name.
24026 ac_srcdir=$srcdir$ac_dir_suffix;
24027 ac_top_srcdir=$srcdir
24028 ac_abs_top_srcdir=$srcdir ;;
24029 *) # Relative name.
24030 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24031 ac_top_srcdir=$ac_top_build_prefix$srcdir
24032 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24033 esac
24034 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24037 case $ac_mode in
24040 # CONFIG_FILE
24043 case $INSTALL in
24044 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24045 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24046 esac
24047 _ACEOF
24049 cat >>$CONFIG_STATUS <<\_ACEOF
24050 # If the template does not know about datarootdir, expand it.
24051 # FIXME: This hack should be removed a few years after 2.60.
24052 ac_datarootdir_hack=; ac_datarootdir_seen=
24054 case `sed -n '/datarootdir/ {
24058 /@datadir@/p
24059 /@docdir@/p
24060 /@infodir@/p
24061 /@localedir@/p
24062 /@mandir@/p
24063 ' $ac_file_inputs` in
24064 *datarootdir*) ac_datarootdir_seen=yes;;
24065 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24066 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24067 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24068 _ACEOF
24069 cat >>$CONFIG_STATUS <<_ACEOF
24070 ac_datarootdir_hack='
24071 s&@datadir@&$datadir&g
24072 s&@docdir@&$docdir&g
24073 s&@infodir@&$infodir&g
24074 s&@localedir@&$localedir&g
24075 s&@mandir@&$mandir&g
24076 s&\\\${datarootdir}&$datarootdir&g' ;;
24077 esac
24078 _ACEOF
24080 # Neutralize VPATH when `$srcdir' = `.'.
24081 # Shell code in configure.ac might set extrasub.
24082 # FIXME: do we really want to maintain this feature?
24083 cat >>$CONFIG_STATUS <<_ACEOF
24084 sed "$ac_vpsub
24085 $extrasub
24086 _ACEOF
24087 cat >>$CONFIG_STATUS <<\_ACEOF
24089 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24090 s&@configure_input@&$configure_input&;t t
24091 s&@top_builddir@&$ac_top_builddir_sub&;t t
24092 s&@srcdir@&$ac_srcdir&;t t
24093 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24094 s&@top_srcdir@&$ac_top_srcdir&;t t
24095 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24096 s&@builddir@&$ac_builddir&;t t
24097 s&@abs_builddir@&$ac_abs_builddir&;t t
24098 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24099 s&@INSTALL@&$ac_INSTALL&;t t
24100 $ac_datarootdir_hack
24101 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24103 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24104 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24105 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24106 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24107 which seems to be undefined. Please make sure it is defined." >&5
24108 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24109 which seems to be undefined. Please make sure it is defined." >&2;}
24111 rm -f "$tmp/stdin"
24112 case $ac_file in
24113 -) cat "$tmp/out"; rm -f "$tmp/out";;
24114 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24115 esac
24119 # CONFIG_HEADER
24121 _ACEOF
24123 # Transform confdefs.h into a sed script `conftest.defines', that
24124 # substitutes the proper values into config.h.in to produce config.h.
24125 rm -f conftest.defines conftest.tail
24126 # First, append a space to every undef/define line, to ease matching.
24127 echo 's/$/ /' >conftest.defines
24128 # Then, protect against being on the right side of a sed subst, or in
24129 # an unquoted here document, in config.status. If some macros were
24130 # called several times there might be several #defines for the same
24131 # symbol, which is useless. But do not sort them, since the last
24132 # AC_DEFINE must be honored.
24133 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24134 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24135 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24136 # PARAMS is the parameter list in the macro definition--in most cases, it's
24137 # just an empty string.
24138 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24139 ac_dB='\\)[ (].*,\\1define\\2'
24140 ac_dC=' '
24141 ac_dD=' ,'
24143 uniq confdefs.h |
24144 sed -n '
24145 t rset
24146 :rset
24147 s/^[ ]*#[ ]*define[ ][ ]*//
24148 t ok
24151 s/[\\&,]/\\&/g
24152 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24153 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24154 ' >>conftest.defines
24156 # Remove the space that was appended to ease matching.
24157 # Then replace #undef with comments. This is necessary, for
24158 # example, in the case of _POSIX_SOURCE, which is predefined and required
24159 # on some systems where configure will not decide to define it.
24160 # (The regexp can be short, since the line contains either #define or #undef.)
24161 echo 's/ $//
24162 s,^[ #]*u.*,/* & */,' >>conftest.defines
24164 # Break up conftest.defines:
24165 ac_max_sed_lines=50
24167 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24168 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24169 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24170 # et cetera.
24171 ac_in='$ac_file_inputs'
24172 ac_out='"$tmp/out1"'
24173 ac_nxt='"$tmp/out2"'
24175 while :
24177 # Write a here document:
24178 cat >>$CONFIG_STATUS <<_ACEOF
24179 # First, check the format of the line:
24180 cat >"\$tmp/defines.sed" <<\\CEOF
24181 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24182 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24184 :def
24185 _ACEOF
24186 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24187 echo 'CEOF
24188 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24189 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24190 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24191 grep . conftest.tail >/dev/null || break
24192 rm -f conftest.defines
24193 mv conftest.tail conftest.defines
24194 done
24195 rm -f conftest.defines conftest.tail
24197 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24198 cat >>$CONFIG_STATUS <<\_ACEOF
24199 if test x"$ac_file" != x-; then
24200 echo "/* $configure_input */" >"$tmp/config.h"
24201 cat "$ac_result" >>"$tmp/config.h"
24202 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24203 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24204 echo "$as_me: $ac_file is unchanged" >&6;}
24205 else
24206 rm -f $ac_file
24207 mv "$tmp/config.h" $ac_file
24209 else
24210 echo "/* $configure_input */"
24211 cat "$ac_result"
24213 rm -f "$tmp/out12"
24214 # Compute $ac_file's index in $config_headers.
24215 _am_stamp_count=1
24216 for _am_header in $config_headers :; do
24217 case $_am_header in
24218 $ac_file | $ac_file:* )
24219 break ;;
24221 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24222 esac
24223 done
24224 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
24225 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24226 X$ac_file : 'X\(//\)[^/]' \| \
24227 X$ac_file : 'X\(//\)$' \| \
24228 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
24229 echo X$ac_file |
24230 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24231 s//\1/
24234 /^X\(\/\/\)[^/].*/{
24235 s//\1/
24238 /^X\(\/\/\)$/{
24239 s//\1/
24242 /^X\(\/\).*/{
24243 s//\1/
24246 s/.*/./; q'`/stamp-h$_am_stamp_count
24249 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24250 echo "$as_me: executing $ac_file commands" >&6;}
24252 esac
24255 case $ac_file$ac_mode in
24256 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24257 # Strip MF so we end up with the name of the file.
24258 mf=`echo "$mf" | sed -e 's/:.*$//'`
24259 # Check whether this is an Automake generated Makefile or not.
24260 # We used to match only the files named `Makefile.in', but
24261 # some people rename them; so instead we look at the file content.
24262 # Grep'ing the first line is not enough: some people post-process
24263 # each Makefile.in and add a new line on top of each file to say so.
24264 # So let's grep whole file.
24265 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
24266 dirpart=`$as_dirname -- "$mf" ||
24267 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24268 X"$mf" : 'X\(//\)[^/]' \| \
24269 X"$mf" : 'X\(//\)$' \| \
24270 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24271 echo X"$mf" |
24272 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24273 s//\1/
24276 /^X\(\/\/\)[^/].*/{
24277 s//\1/
24280 /^X\(\/\/\)$/{
24281 s//\1/
24284 /^X\(\/\).*/{
24285 s//\1/
24288 s/.*/./; q'`
24289 else
24290 continue
24292 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
24293 # Extract the definition of DEP_FILES from the Makefile without
24294 # running `make'.
24295 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
24296 test -z "$DEPDIR" && continue
24297 # When using ansi2knr, U may be empty or an underscore; expand it
24298 U=`sed -n -e '/^U = / s///p' < "$mf"`
24299 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
24300 # We invoke sed twice because it is the simplest approach to
24301 # changing $(DEPDIR) to its actual value in the expansion.
24302 for file in `sed -n -e '
24303 /^DEP_FILES = .*\\\\$/ {
24304 s/^DEP_FILES = //
24305 :loop
24306 s/\\\\$//
24309 /\\\\$/ b loop
24312 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
24313 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24314 # Make sure the directory exists.
24315 test -f "$dirpart/$file" && continue
24316 fdir=`$as_dirname -- "$file" ||
24317 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24318 X"$file" : 'X\(//\)[^/]' \| \
24319 X"$file" : 'X\(//\)$' \| \
24320 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24321 echo X"$file" |
24322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24323 s//\1/
24326 /^X\(\/\/\)[^/].*/{
24327 s//\1/
24330 /^X\(\/\/\)$/{
24331 s//\1/
24334 /^X\(\/\).*/{
24335 s//\1/
24338 s/.*/./; q'`
24339 { as_dir=$dirpart/$fdir
24340 case $as_dir in #(
24341 -*) as_dir=./$as_dir;;
24342 esac
24343 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24344 as_dirs=
24345 while :; do
24346 case $as_dir in #(
24347 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24348 *) as_qdir=$as_dir;;
24349 esac
24350 as_dirs="'$as_qdir' $as_dirs"
24351 as_dir=`$as_dirname -- "$as_dir" ||
24352 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24353 X"$as_dir" : 'X\(//\)[^/]' \| \
24354 X"$as_dir" : 'X\(//\)$' \| \
24355 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24356 echo X"$as_dir" |
24357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24358 s//\1/
24361 /^X\(\/\/\)[^/].*/{
24362 s//\1/
24365 /^X\(\/\/\)$/{
24366 s//\1/
24369 /^X\(\/\).*/{
24370 s//\1/
24373 s/.*/./; q'`
24374 test -d "$as_dir" && break
24375 done
24376 test -z "$as_dirs" || eval "mkdir $as_dirs"
24377 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24378 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24379 { (exit 1); exit 1; }; }; }
24380 # echo "creating $dirpart/$file"
24381 echo '# dummy' > "$dirpart/$file"
24382 done
24383 done
24385 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
24386 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
24387 esac ;;
24388 "po/stamp-it":C)
24389 if ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" ; then
24390 { { echo "$as_me:$LINENO: error: po/Makefile.in.in was not created by intltoolize." >&5
24391 echo "$as_me: error: po/Makefile.in.in was not created by intltoolize." >&2;}
24392 { (exit 1); exit 1; }; }
24394 rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
24395 >"po/stamp-it.tmp"
24396 sed '/^#/d
24397 s/^[[].*] *//
24398 /^[ ]*$/d
24399 '"s|^| $ac_top_srcdir/|" \
24400 "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
24402 sed '/^POTFILES =/,/[^\\]$/ {
24403 /^POTFILES =/!d
24404 r po/POTFILES
24406 ' "po/Makefile.in" >"po/Makefile"
24407 rm -f "po/Makefile.tmp"
24408 mv "po/stamp-it.tmp" "po/stamp-it"
24411 esac
24412 done # for ac_tag
24415 { (exit 0); exit 0; }
24416 _ACEOF
24417 chmod +x $CONFIG_STATUS
24418 ac_clean_files=$ac_clean_files_save
24421 # configure is writing to config.log, and then calls config.status.
24422 # config.status does its own redirection, appending to config.log.
24423 # Unfortunately, on DOS this fails, as config.log is still kept open
24424 # by configure, so config.status won't be able to write to it; its
24425 # output is simply discarded. So we exec the FD to /dev/null,
24426 # effectively closing config.log, so it can be properly (re)opened and
24427 # appended to by config.status. When coming back to configure, we
24428 # need to make the FD available again.
24429 if test "$no_create" != yes; then
24430 ac_cs_success=:
24431 ac_config_status_args=
24432 test "$silent" = yes &&
24433 ac_config_status_args="$ac_config_status_args --quiet"
24434 exec 5>/dev/null
24435 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24436 exec 5>>config.log
24437 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24438 # would make configure fail if this is the last instruction.
24439 $ac_cs_success || { (exit 1); exit 1; }